Create order from cart
Orders
Create order from cart
Create an order from items in the authenticated shopper’s cart.
POST
Create order from cart
Request
Headers
| Header | Type | Description |
|---|---|---|
Authorization | string | Provide the customer token as Bearer <jwt>. |
x-shop-id | string | Identify the shop that owns the order. |
Content-Type | string | Always set to application/json. |
Body parameters
You can create an order using one of the following methods:| Field | Type | Required | Description |
|---|---|---|---|
productIds | array | No | Array of product IDs to include (any variants of these products). |
items | array | No | Array of explicit items with productId and optional variantId. |
indices | array | No | Array of 0-based cart item positions to include. |
If no body parameters are provided, the entire cart will be converted into an order.
Food and service cart items have no
productId, so select them with indices
(0-based cart positions) or send an empty body to include the whole cart. The
resulting order items carry an itemType of product, food, or service;
service items reference service and include any selectedAddons. Service
(business) orders are non-shippable, so shippingCost is 0 and no shipment is
created.Request examples
Create order from entire cart
Create order from selected products
Create order from explicit items
Create order from cart indices
Successful response
Error response
Authorizations
JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Headers
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Body
application/json
If no parameters provided, entire cart will be converted to order.

