POST

Create Checkout From Current Cart


Creates a checkout from the current site visitor's cart.

If a checkout was already created from the current cart, that checkout will be updated with any new information from the cart.

Note:

Permissions
Manage eCommerce - all permissions
Manage Stores - all permissions
Manage Orders
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/ecom/v1/carts/current/create-checkout

Body Params
channelTypestring

Required. Sales channel type.


shippingAddressShippingAddress

Shipping address. Used for calculating tax and shipping (when applicable).


billingAddressBillingAddress

Billing address. Used for calculating tax if all the items in the cart are not shippable.


selectedShippingOptionSelectedShippingOption

Selected shipping option.


emailstringformat EMAIL

Mandatory when setting billing or shipping address and user is not logged in.

Response Object
checkoutIdstring

The newly created checkout's ID.

Create a checkout from the current site visitor's cart
Request
cURL
Response
JSON
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?