v1

latestOpenAPI 3.0.12026-07-26381328555.2 KB
Cart

Get Cart Summary By Cart Id

Retrieves the number of items in the specified cart, total cost of items in the cart, and whether the cart has expired by cartId. All anonymous idle carts that do not proceed to checkout expire after 14 days.

get/commerce/carts/{cartId}/summary

Path parameters

cartIdstring required

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