Creates a Cart.
- line_items object
- gift_certificates object – only if adding a gift certificate
Cart ID is generated in the response.
To add a product with a mix of variants and options, add
optionSelections to the
The redirect url endpoint does not work using the Storefront Cart. At this time, shoppers can not be directed to any carts or checkouts created using the Storefront APIs.
A cart contains a collection of items, prices, discounts, etc. It does not contain customer-related data. Custom Items is a read only field. A custom item can only be added to a cart using the Server to Server Cart API.
Cart ID, provided after creating a cart with a POST.
ID of the customer to which the cart belongs.
The cart’s email. This is the same email that is used in the billing address
This will always be the same between cart and checkout.
Whether this item is taxable.
Cost of cart’s contents, before applying discounts.
Sum of line-items amounts, minus cart-level discounts and coupons. This amount includes taxes (where applicable).
AppliedCoupon objects applied to this cart.
AppliedDiscount objects applied to this cart.
Time when the cart was created.
Time when the cart was last updated.