The Cart API lets you create a BigCommerce cart and manage it outside of a BigCommerce storefront. You can manage all the different properties of a cart without any user interaction on the front end. Developers can observe and interact with carts outside of the BigCommerce control panel or storefront.
A cart includes a collection of items, prices, discounts, and other items
line_items.physical_items.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 returnline_items.digital_items.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 returnconsignments.available_shipping_options: returns a list of shipping optionspromotions.banners: returns a list of available bannersYou can retrieve a cart by sending a GET request to /carts/{cartId}.
You can delete a cart by sending a DELETE request to /carts/{cart_id}.
Warning: Deleting a cart is a permanent action and the cart cannot be recovered.
You can create a cart with a POST request to the /carts endpoint. In the request body you must specify the quantity, product_id, and variant_id (if the product has variants) using the line_items_ array.
Add line items to a cart with a POST request to /carts/{cart_id}/items
Required Fields:
line_items objectcustom_items object - If adding an item that does not already exist in the storegift_certificates object - Only if adding a gift certificate for shopper to purchaseMany merchants use this when they want to override the price of a product. This is a common use case with large B2B enterprise merchants; for example, if the prices are stored outside BC and they want to add to cart using prices fetched from external source.


If adding an item that does not already exist in the store, use the custom_items object.


Line items can be updated by sending a PUT request to /carts/{cart_id}/items/{item_id}
A Cart customer_id can be updated with a PUT request to /carts/{cart_id}
customer_id will remove any promotions or shipping calculations on the cart. These are tied to the customer depending on cart conditions and any customer groups that may be assigned.During a POST request for carts, a direct link to a cart can be created by appending redirect_urls to the end of the request.
Create a URL to redirect a shopper to an already created cart by sending a POST request to
