Skip to content

Get cart items count

GET
/cms/customer/cart/items_count
curl --request GET \
--url 'https://api.example.com/cms/customer/cart/items_count?id=example' \
--header 'API-Key: <API-Key>'

GET /customer/cart/items_count Get the total number of items in the cart

id
required
string

Cart ID as returned by POST /cms/customer/cart ({cartId}-{key})

Items count

Media typeapplication/json
object
items_count
integer

Example generated

{
"items_count": 1
}

Missing or malformed cart ID