v1

latestOpenAPI 3.0.12026-07-26381328555.2 KB
Cart

Get User Cart Summary

Retrieves the number of items in the active cart, total cost of items in the cart and the cart expiration by userId. All anonymous idle carts that do not proceed to checkout expire after 14 days.

get/commerce/carts/user/{userId}/summary

Path parameters

userIdstring required

Unique identifier of the user.

Query parameters

accountIdinteger

Unique identifier of the customer account.

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