Create an order from items in the authenticated shopper’s cart.
| 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. |
| 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. |
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.
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
If no parameters provided, entire cart will be converted to order.