Documentation is still being updated. Some content maybe unfinished.
curl --request GET \
--url {protocol}://{host}/wp-json/cocart/v2/cart/items/count5Returns the count of items in the customer’s cart.
curl --request GET \
--url {protocol}://{host}/wp-json/cocart/v2/cart/items/count5Return count as a string or array format.
numeric Cart item count retrieved successfully.
Number of items in the cart.
5
Was this page helpful?