v1

latestOpenAPI 3.0.12026-07-26381328555.2 KB
Cart

Get Cart Summary

Retrieves the number of items in the active cart, total cost of items in the cart and the cart expiration. (Anonymous shoppers cart expires in 14 days.)

get/commerce/carts/summary

Query parameters

responseFieldsstring

limits which fields are returned in the response body

Response

OK

hasActiveCartboolean nullable

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

isExpiredboolean nullable

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

itemCountinteger nullable

Number of items in the active cart.

totalnumber double nullable

Total cost of items in the active cart.

totalQuantityinteger nullable

Total quantity of all items in the cart