POST/v1/tenants/{tenantId}/ecom_stores/{eComStoreId}/carts/{cartId}/checkout
Check out a cart Experimental
Creates an ordinary ecom sales order from the cart's lines at SnowBee's current prices and deletes the cart. Repeating the call for a cart that was already checked out returns the same order. A store that takes web payments requires the completed payment session; the authorisation is verified against the cart's current total.
Parameters
tenantIdrequiredeComStoreIdrequiredcartIdrequired
Request body (required)
application/jsonTurn the cart into an order. The cart is re-quoted and its lines are handed to order intake priced, with the campaign each line was sold under; the cart id becomes the order's external id.
customerIdoptionalCustomer to place the order for; the store's default customer when omitted
deliveryAddressrequiredShow child fields
cityrequired- Example
"Oslo" countryIsoCoderequiredISO 3166-1 alpha-2 country code
Example"NO"emailoptionalContact email for delivery notifications
Example"ola.nordmann@example.com"namerequiredRecipient name
Example"Ola Nordmann"phoneoptionalContact phone for delivery
Example"+4790123456"postCoderequired- Example
"0123" streetrequiredStreet address including house number
Example"Storgata 1"
externalOrderNumberoptionalOrder number shown to the shopper by the storefront, if any
freightoptionalFreight as chosen and priced in the carrier's checkout UI: carrier codes, net amount and VAT rate. Omit for orders without freight.
Show child fields
carrierAgreementCoderequired- Example
"6838716034162098000" carrierCoderequired- Example
"porterbuddy" carrierNameoptional- Example
"Porterbuddy" carrierProductCoderequired- Example
"8747679326213767168" carrierProductNameoptional- Example
"Evening delivery" carrierProductPayloadoptionalProvider-specific extra data
Show child fields
partnerNameoptionalPartner name from provider
partnerNumberoptionalPartner number from provider
freightVatRateoptionalVAT rate for freight as a percentage
- Format: BigDecimal
Example"25.00"netFreightAmountoptionalNet freight/shipping cost amount (excl. VAT)
- Format: BigDecimal
Example"49.00"
invoiceAddressrequiredShow child fields
cityrequired- Example
"Oslo" countryIsoCoderequiredISO 3166-1 alpha-2 country code
Example"NO"emailrequiredEmail for invoice delivery
Example"ola.nordmann@example.com"namerequiredRecipient name
Example"Ola Nordmann"postCoderequired- Example
"0123" streetrequiredStreet address including house number
Example"Storgata 1"
paymentoptionalThe payment session the shopper completed. Required when the store takes web payments, rejected otherwise.
Show child fields
paymentIdrequiredpaymentId from POST /carts/{cartId}/payment_session
sessionResultrequiredsessionResult the Drop-in reported on completion
Responses
application/jsonThe order a cart became. The cart itself is deleted.
orderIdrequiredSales order ID; read it with GET /orders/{orderId}
orderNumberoptionalSnowBee's order number, the one to show the shopper
400Response
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
401Response
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
403Response
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
404Response
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
409The cart is expired
The cart is expired
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
422Empty or unpriced cart, unknown SKU or customer, or incomplete freight
Empty or unpriced cart, unknown SKU or customer, or incomplete freight
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"