This documentation is a Work in Progress. There maybe content unfinished. Feedback is welcome.
cURL
curl --request GET \ --url {protocol}://{host}/wp-json/cocart/v2/cart/mini
{ "cart_hash": "<string>", "cart_key": "<string>", "currency": "<string>", "item_count": 123, "items": [ { "item_key": "<string>", "id": 123, "name": "<string>", "variation": [ "<any>" ], "price": "<string>", "quantity": 123, "featured_image": "<string>" } ], "subtotal": "<string>" }
Get just the minimum cart contents.
Basic authentication with username and password (optional)
Mini cart data retrieved successfully
The response is of type object.
object
Was this page helpful?