Skip to main content
GET
/
count-items
Count cart items
curl --request GET \
  --url {protocol}://{host}/wp-json/cocart/v1/count-items
"5"

Documentation Index

Fetch the complete documentation index at: https://docs.cocartapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Response

Cart item count retrieved successfully.

Numeric count as string when cart has items

Example:

"5"