Skip to main content

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.

CoCart does not use or rely on any WordPress or WooCommerce cookies.
Standard WordPress batch requests are handled via https://your-store.com/wp-json/batch/v1 endpoint.For example adding multiple products to the cart request looks like:
{
    "requests": [
        {
            "method": "POST",
            "path": "/cocart/v2/cart/add-item",
            "body": {
                "id": "35",
                "quantity": "2"
            }
        },
        {
            "method": "POST",
            "path": "/cocart/v2/cart/add-item",
            "body": {
                "id": "36",
                "quantity": "5"
            }
        }
    ]
}
We have more available in our support center.