To return product options add one of the following include:
lineItems.physicalItems.options: The Cart returns an abbreviated result. Use this to return physical items product options. Can also be used in a /POST to have the extended Cart object return.
lineItems.digitalItems.options: The Cart returns an abbreviated result. Use this to return digital items product options. Can also be used in a /POST to have the extended Cart object return.
lineItems.digitalItems.options,lineItems.physicalItems.options: The Cart returns an abbreviated result. Use this to return digital and physical options. Can also be used in a /POST to have the extended Cart object return.
Body
object | application/json
Cart object used in add items requests.
One of:Option 2Option 3
lineItemsarray[object]
required
One of:Option 1Option 2Option 3
lineItemsarray[object]
required
With Option Selections
JSONJavaScript: FetchJavaScript: Axios
With Gift Wrapping
JSONJavaScript: FetchJavaScript: Axios
Response
200
Body
object | application/json
Cart object used in REST Storefront API cart responses.
idstring
Cart ID, provided after creating a cart with a POST.
customerIdinteger
ID of the customer to which the cart belongs.
emailstring
The cart's email. This is the same email that is used in the billing address
currencyobject
This will always be the same between cart and checkout.
isTaxIncludedboolean
Whether this item is taxable.
baseAmountnumber
Cost of cart’s contents, before applying discounts.
discountAmountnumber
Order based discounted amount only - Coupon discounts and product based discounts are excluded.
cartAmountnumber
Sum of line-items amounts, minus cart-level discounts and coupons. This amount includes taxes (where applicable).
Updates a Cart line item. Updates an existing, single line item quantity and the price of custom items in a cart.
If a modified product or variant needs to be changed or updated, you can remove and re-add the product to the cart with the correct variants using the Delete Cart Line Item and the Add Cart Line Items endpoints. You can also use carts mutations that are part of the GraphQL Storefront API.
Notes
Substitute your storefront domain for yourstore.example.com.
The Send a Test Request feature is not currently supported for this endpoint.
Please note that this API endpoint is not concurrent safe, meaning multiple simultaneous requests could result in unexpected and inconsistent results.
Parameters
store_domain in path - string
Content-Type in header with default of application/json - string
To return product options add one of the following include:
lineItems.physicalItems.options: The Cart returns an abbreviated result. Use this to return physical items product options. Can also be used in a /POST to have the extended Cart object return.
lineItems.digitalItems.options: The Cart returns an abbreviated result. Use this to return digital items product options. Can also be used in a /POST to have the extended Cart object return.
lineItems.digitalItems.options,lineItems.physicalItems.options: The Cart returns an abbreviated result. Use this to return digital and physical options. Can also be used in a /POST to have the extended Cart object return.
example
JavaScript: FetchJavaScript: Axios
Response
200
NOTE: Discounted line items are re-evaluated on cart actions and may be automatically added back to your cart with a new line item ID to satisfy promotional requirements.
Body
object | application/json
Cart object used in REST Storefront API cart responses.
idstring
Cart ID, provided after creating a cart with a POST.
customerIdinteger
ID of the customer to which the cart belongs.
emailstring
The cart's email. This is the same email that is used in the billing address
currencyobject
This will always be the same between cart and checkout.
isTaxIncludedboolean
Whether this item is taxable.
baseAmountnumber
Cost of cart’s contents, before applying discounts.
discountAmountnumber
Order based discounted amount only - Coupon discounts and product based discounts are excluded.
cartAmountnumber
Sum of line-items amounts, minus cart-level discounts and coupons. This amount includes taxes (where applicable).