Carts
A Cart contains the product and custom cart items that a user may wish to purchase. Once a Cart is ready for Checkout, you can use the Checkout endpoint to convert the cart to an order.
Adding, modifying or removing any cart items, custom items or promotions will always return the cart meta, caculated using the calculation method. This is useful to update the client with up-to-date totals.
We'll 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 will be converted to your default currency.
The Cart Object
The Cart links
object
links
objectAttribute | Type | Description |
|
| The URL of this cart |
The Cart meta
object
meta
objectThe meta
object includes the calculated card totals.
Attribute | Type | Description |
|
| A collection of fields related to the total and currency of this cart |
| object | Tax inclusive totals |
| integer | The raw total of this cart (incl. tax) |
| string | The currency set for this cart |
| string | The tax inclusive formatted total based on the currency |
| object | Tax exclusive totals |
| integer | The raw total of this cart (excl. tax) |
| string | The currency set for this cart |
| string | The tax exclusive formatted total based on the currency |
| object | Tax totals |
|
| The subtotal of the added tax value |
|
| The currency set for the tax |
|
| The formatted value for the tax subtotal |
| object | Timestamps for this cart |
| string | The date this cart was created |
| string | The date this cart was last updated |
Last updated