Create Cart
POST
/store/:storeCode/cartsCreate a cart.
Path Parameters
storeCoderequiredstringStore slug in the URL (first argument to every SDK store method).
Query Parameters
fieldsstringComma-separated fields to include. Prefix with `*` to expand a relation (e.g. `id,*variants`).
Request Body
Schema
CopyHttpTypes.StoreCreateCart
Properties
region_idstringRegion for the cart.
emailstringCustomer email.
currency_codestringCurrency code.
shipping_addressStoreAddAddressShipping address object.
billing_addressStoreAddAddressBilling address object.
itemsStoreAddCartLineItem[]Initial line items.
sales_channel_idstringSales channel ID.
promo_codesstring[]Promotion codes to apply.
metadataRecord<string, unknown>Custom metadata.
Response
Status
200OK
Schema
CopyHttpTypes.StoreCartResponse
Properties
cartrequiredStoreCartThe created cart.