StorePostCartsCartReq
The details to update of the cart.
Properties
region_id
stringThe ID of the Region to create the Cart in. Setting the cart's region can affect the pricing of the items in the cart as well as the used currency.
country_code
stringThe 2 character ISO country code to create the Cart in. Setting this parameter will set the country code of the shipping address.
email
stringAn email to be used on the Cart.
billing_address
string | AddressPayloadThe Address to be used for billing purposes.
shipping_address
string | AddressPayloadThe Address to be used for shipping purposes.
gift_cards
GiftCard[]An array of Gift Card codes to add to the Cart.
gift_cards
GiftCard[]discounts
Discount[]An array of Discount codes to add to the Cart.
discounts
Discount[]customer_id
stringThe ID of the Customer to associate the Cart with.
context
objectAn object to provide context to the Cart. The
context
field is automatically populated with ip
and user\_agent
sales_channel_id
stringThe ID of the Sales channel to create the Cart in. The cart's sales channel affects which products can be added to the cart. If a product does not exist in the cart's sales channel, it cannot be added to the cart. If you add a publishable API key in the header of this request and specify a sales channel ID, the specified sales channel must be within the scope of the publishable API key's resources.
Was this section helpful?