Get a Cart
Get a Cart by reference
GET
https://api.moltin.com/v2/carts/:reference
Path Parameters
Name | Type | Description |
---|---|---|
reference | string | A custom reference for this cart created by you |
Query Parameters
Name | Type | Description |
---|---|---|
include | string | comma delimited string of entities that can be included - valid options:
|
Headers
Name | Type | Description |
---|---|---|
X-MOLTIN-CURRENCY | string | Specifies the currency to be used for the products in the cart. Your site's default will be used if not specified |
Authorization | string | The Bearer token to grant access to the API |
You can easily get a new or existing cart by providing the unique cart reference in the request.
An empty cart will be returned for any carts that don't currently exist. See Get Cart Items for how the cart items object looks.
We don't handle creating cart references. You will need to create your own.
If you do not pass a X-MOLTIN-CURRENCY
header specifying what currency you would like the cart retrieved in, it will be returned with values in your default currency.
Get a Cart by reference
GET
https://api.moltin.com/v2/carts/:reference
Path Parameters
Name | Type | Description |
---|---|---|
reference | string | A custom reference for this cart created by you |
Headers
Name | Type | Description |
---|---|---|
X-MOLTIN-CURRENCY | string | Specifies the currency to be used for the products in the cart. Your site's default will be used if not specified |
Authorization | string | The Bearer token to grant access to the API |
Last updated