Skip to main content
GET
/
commerce
/
carts
/
user
/
{userId}
/
summary
Error
A valid request URL is required to generate request examples
{
  "itemCount": 123,
  "totalQuantity": 123,
  "total": 123,
  "isExpired": true,
  "hasActiveCart": true
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

userId
string
required

Unique identifier of the user.

Query Parameters

accountId
integer<int32>

Unique identifier of the customer account.

responseFields
string

limits which fields are returned in the response body

Response

Success

Cart summary, which is the number of items in the active cart, total cost of items in the cart, and whether the cart has expired.

itemCount
integer<int32> | null

Number of items in the active cart.

totalQuantity
integer<int32> | null

Total quantity of all items in the cart

total
number<double> | null

Total cost of items in the active cart.

isExpired
boolean | null

If true, the cart has reached its expiration date (Cart.ExpirationDate) and considered abandoned. Carts of anonymous shoppers expire after 14 days of inactivity.

hasActiveCart
boolean | null

If true, the cart is active. A shopper has added an item to a cart.