Cart Management
A Cart contains the product and custom cart items that a user intends to purchase. After a Cart is ready for Checkout, you can use the Checkout endpoint to convert the cart to an order.
note
- Adding, modifying, or removing any cart items, custom items, or promotions always returns the cart meta, calculated using the calculation method. This is useful to update the client with up-to-date totals.
- We will automatically delete carts 7 days after they were last updated.
- If you do not pass a
X-MOLTIN-CURRENCY
header specifying what currency you would like the cart to use, the products in the cart are converted to your default currency.
📄️ Get Shopper Carts
You can retrieve the carts that are associated with an [account](/docs/api/carts/account-cart-associations) or a [customer](/docs/api/carts/customer-cart-associations).
📄️ Create a Cart
Creates a cart. Call this endpoint each time a customer creates a cart.
📄️ Get a Cart
Use this endpoint to retrieve a specific cart. If a cart ID does not exist, a new cart will be automatically created.
📄️ Update a Cart
Updates cart properties for the specified cartID.
📄️ Delete a Cart
You can delete a cart, including the items, name, description, and remove all associations.