Get Shopper Carts
GET/v2/carts
You can retrieve the carts that are associated with an account or a customer.
When a shopper retrieves their latest carts, the carts are sorted in descending order by the updated_date. For more information, see Pagination.
Requires an implicit
token with only one of Account Management Authentication Token or customer token.
Request
Header Parameters
An Account Management Authentication token to access a specific account's carts.
A customer token to access a specific customer's carts.
Responses
- 200
- 401
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]
The unique identifier for the cart. Use SDK or create it yourself.
The type of object being returned.
The name of this cart.
A description of the cart.
discount_settings object
This parameter enables custom discounts for a cart. When set to true, Elastic Path promotions will not be applied to the new carts. Default is set from cart discount settings for the store. See Cart Settings.
When set to true, this parameter allows the cart to use rule promotions.
Stripe-assigned unique identifier for the linked Payment Intent
links object
A link to that specific resource.
meta object
display_price object
with_tax object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
without_tax object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
tax object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
discount object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
without_discount object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
shipping object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
timestamps object
The date this was created.
The date this was last updated.
relationships object
customers object
data object
The type of related object.
The ID of the customer.
items object
data object
The type of related object.
The unique identifier for the cart item
links object
Always the current page.
Always the first page.
If there is only one page, it is null
.
If there is only one page, it is null
.
if the user is on the first page, it is null
.
meta object
page object
The current page.
The maximum number of records per page for this response. You can set this value up to 100.
The current offset by number of records, not pages. Offset is zero-based.
The total page count.
results object
The total page count.
{
"data": [
{
"id": "string",
"type": "string",
"name": "string",
"description": "string",
"discount_settings": {
"custom_discounts_enabled": true,
"use_rule_promotions": true
},
"payment_intent_id": "string",
"links": {
"self": "string"
},
"meta": {
"display_price": {
"with_tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"without_tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"discount": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"without_discount": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"shipping": {
"amount": 0,
"currency": "string",
"formatted": "string"
}
},
"timestamps": {
"created_at": "string"
}
},
"relationships": {
"customers": {
"data": {
"type": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
},
"items": {
"data": {
"type": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
}
}
],
"links": {
"current": "string",
"first": "string",
"last": "string",
"next": "string",
"prev": "string"
},
"meta": {
"page": {
"current": 0,
"limit": 0,
"offset": 0,
"total": 0
},
"results": {
"total": 0
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}