Prepares a checkout session based on the provided cart and user information
Endpoint Details
POST/checkout/prepare
Headers
Header
Value
Content-Type
application/json
Authorization
Bearer <YOUR_ACCESS_TOKEN>
Body
Parameter
Type
Description
Required
cartId
string
ID of the cart to checkout
customer
Customer information
billingAddress
Billing address details
hasSubstitutionPolicy
boolean
Whether substitution policy is accepted
isGift
boolean
When the order is set as gift (isGift is set to true), the system adds gift messaging, special packaging, and gift receipts with optional sender anonymity
hasAgeVerify
boolean
Should the checkout verify age
billingSameAsShipping
boolean
Whether billing address is same as shipping
giftOptions
Gift options if applicable
marketingPreferences
Marketing preferences
deliveryTips
Array of delivery tip objects
acceptedAccountCreation
boolean
Whether customer accepted account creation
scheduledDelivery
string
Scheduled delivery datetime (ISO format)
payment
string
Payment method identifier
promoCode
string
Promotional code to apply a discount to the checkout
giftCards
array<string>
Array of gift card codes to apply as payment methods
isLegacy
boolean
Whether to return legacy identifiers
refresh
boolean
When set to true, a new access token will be generated and returned
Response Details
Field
Type
Description
statusCode
number
Internal status code of the response
message
string
A brief message describing the result of the API call