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.
📄️ Create a Custom Cart
Creates a custom cart. Call this endpoint each time a customer creates a cart.
📄️ Get a Cart
Use this endpoint to retrieve a specific cart. If the cart is associated with shipping groups, calling this endpoint displays the associated shipping group IDs in the relationships section.
📄️ 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.