This documentation is a Work in Progress. There maybe content unfinished. Feedback is welcome.

CoCart API home pagelight logodark logo
  • Discord
  • llms.txt
  • co-cart/co-cart
  • co-cart/co-cart
Home
User-Guides
API Reference
CLI Reference
Tutorials
Support Centre
What's New
  • Documentation
  • Community
  • Feature requests
  • Wall of Love
  • Overview
    • Introduction
    • Frequently Asked Questions
    • CoCart Playground
    • Authentication
    JWT Authentication
    • POST
      Refresh Token
    • POST
      Validate Token
    API v1 (Deprecated in future)
    • Error Codes
    • Cart
    • Products
    • User Management
    API v2
    • Error codes
    • Variation Examples
    • Cart
    • Products
    • User Management
    • Store
    • Sessions
    Plugins
    • Name Your Price
    • Mix and Match Products
    Resources
    • Community
    • Support Policy
    • Opening Issues
    • Backers
    Overview

    Frequently Asked Questions

    We ask the most frequently asked questions for the API

    Does CoCart use cookies?

    CoCart does not use or rely on any WordPress or WooCommerce cookies.

    How do I create a batch request?

    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:
    Copy
    {
        "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"
                }
            }
        ]
    }
    

    My question is not listed here. Where can I find more?

    We have more available in our support center.

    Was this page helpful?

    Suggest editsRaise issue
    IntroductionCoCart Playground
    Assistant
    Responses are generated using AI and may contain mistakes.
    CoCart API home pagelight logodark logo
    xfacebooklinkedingithubwebsite

    Product

    PricingBlogShowcaseTry the API

    For Developers

    Suggest a FeatureRoadmapTranslate CoCart

    Company

    Merch StoreTerms & ConditionsRefund PolicySupport PolicySecurity Policy
    xfacebooklinkedingithubwebsite
    Powered by Mintlify