Skip to content

🛒 CoCart makes it easy to decouple your WooCommerce store via a customizable REST API that takes the pain out of developing – allowing you to build fast and flexible headless stores.



Repository files navigation

CoCart. Build headless stores, without building an API

Licence Latest Stable Version WordPress Plugin Downloads

❗ This branch is the current stable version of CoCart. If you are looking to contribute to CoCart, please use the "dev" branch.

Welcome to the CoCart repository on GitHub. Here you can browse the source, look at open issues and keep track of development. We recommend all developers to follow the CoCart development blog to stay up to date about everything happening in the project. You can also follow @cocartapi on Twitter for the latest development updates.

If you are looking for documentation, head over here:

Click here to download the latest release package of CoCart Core.

Speed up your WooCommerce store by going headless

Is your store slow? Looking to decouple away from WordPress? CoCart saves you countless hours of developing your own REST API to decouple WooCommerce. It provides a developer-friendly, out the box solution that is customizable to your requirements allowing you to build a headless store without limitations imposed by a WordPress theme—it's that simple.

What is WooCommerce?

WooCommerce is a flexible, open-source commerce solution built on WordPress, empowering anyone to sell anything, anywhere and is the fastest-growing eCommerce platform on the internet.

Why CoCart?

With CoCart, we have already done the hard part for you. The API. Once installed, your WooCommerce store is ready to decouple away from WordPress, allowing you to design without limitations imposed by a WordPress theme that is harder to modify and optimize. Utilize faster, familiar frameworks you know and love—it's that simple.

✨ What do you get with the core of CoCart?

Everything you need to try and see if making your store headless is right for you. Promise you wont be disappointed.

  • No Blocks - The API is designed for the purpose of decoupling. Not blocks for Gutenberg.
  • Enhanced Session Handler - Our session handler adds support to allow our API the power it requires for any decoupled situation.
  • Basic Authentication - No Admin API Keys required. Customers have full control, either as a guest or authenticated with their login details.
  • Domain dominance - CORS can be an issue when decoupling. Don’t sweat the small stuff. We got you.
  • No Headless Checkout? - Load any cart session via the native site, if you feel more comfortable using WooCommerce’s built in payment system.
  • Worried about Caching? - The Cart API does not cache no matter what cache system you have installed for other API’s in use. Responses return fresh every time.
  • Reduced Cart Checkups - Avoid the hassle of multiple requests to verify item and coupon validity in your cart. Our system efficiently checks stock, validates coupons, and calculates totals and fees, ensuring real-time accuracy before confirmation.
  • Need your own cart callback? - Register custom callbacks without needing to create a whole new endpoint. Cart response returns once the callback is completed.
  • Your Inventory - Search by Name, ID or SKU, filter and return product data you need without authentication. REST shortcuts are readily provided for your next requests.
  • Want to track your customers? - Keep watch of all cart sessions, even the ones that are starting to expire.
  • Name Your Price Built In - Give your customers control of the price they pay. Encourage your audience to support you with payment flexibility that widens your paying audience.

And this is just the tip of the iceberg.

📦 Serious about going headless?

Try out more features and unlock your stores potential. Upgrade to complete the API with additional features that help make your store more awesome.

See what we have in store.

👍 Add-ons to further enhance CoCart

We also have add-ons that extend CoCart to enhance your development and your customers shopping experience.

They work with the core of CoCart already, and these add-ons of course come with support too.

🧰 Developer Tools

  • CoCart Beta Tester allows you to test with bleeding edge versions of CoCart from the GitHub repo.
  • CoCart VSCode extension for Visual Studio Code adds snippets and autocompletion of functions, classes and hooks.
  • CoCart Carts in Session allows you to view all the carts in session via the WordPress admin.
  • CoCart Product Support Boilerplate provides a basic boilerplate for supporting a different product type to add to the cart with validation including adding your own parameters.
  • CoCart Cart Callback Example provides you an example of registering a callback that can be triggered when updating the cart.

Need Support?

CoCart is not supported via the WooCommerce help desk as the plugin is not sold via, the support team at is not familiar with it and may not be able to assist.

We aim to provide regular support for the CoCart plugin on the forums. But please understand that we do prioritize support for our paying customers. Support can also be requested with the community on Discord.

🐞 Bug Reporting

Bug reports for CoCart are welcomed in the CoCart repository on GitHub. Please note that GitHub is not a support forum, and that issues that aren’t properly qualified as bugs will be closed.

Support CoCart

Please consider starring ✨ and sharing 👍 the project repo! This helps the project get known and grow with the community. 🙏

Thank you for your support! 🙌


An excellent plugin, which makes building a headless WooCommerce experience a breeze. Easy to use, nearly zero setup time.

Harald Schneider ⭐️⭐️⭐️⭐️⭐️

What can I say this thing has it all. It is the “Missing WooCommerce REST API plugin” without it I was managing users cart myself in weird and wonderful but hacky ways. NOT GOOD and so vulnerable. Then I stumbled upon CoCart and with the help of Seb I got it working how I needed it and he has been supporting me with even the smallest of queries. Really appreciate your work and continued support Seb.

Joel Pierre – JPPdesigns Web design & Development ⭐️⭐️⭐️⭐️⭐️

This plugin was critical to achieve my project of building a headless / decoupled WooCommerce store. I wanted to provide my clients with a CMS to manage their store, but wanted to build the front-end in React. I was able to fetch content over the WooCommerce REST API, but otherwise would not have been able to fetch the cart, and add & remove items if not for this plugin.

Thank you very much Sébastien for sharing this extension, you’ve saved me a lot of time.

Allan Pooley – Little and Big ⭐️⭐️⭐️⭐️⭐️

Thanks for doing such a great work with this! Works exactly as expected and CoCart seems to have a nice community around it. The founder seems really devoted and that’s one of the key things for a plugin like this to live on and get the right updates in the future. We just got ourselves the lifetime subscription.

MightyGroup – Rikard Kling ⭐️⭐️⭐️⭐️⭐️

See the wall of love for more testimonials.

CoCart Channels

We have different channels at your disposal where you can find information about the CoCart project, discuss it and get involved:

Twitter: cocartapi CoCart Github Stars

  • 📖 Docs: this is the place to learn how to use CoCart API. Get started!
  • 🧰 Resources: this is the hub of all CoCart resources to help you build a headless store. Get resources!
  • 👪 Community: use our Discord chat room to share any doubts, feedback and meet great people. This is your place too to share how are you planning to use CoCart!
  • 🐞 GitHub: we use GitHub for bugs and pull requests, doubts are solved with the community.
  • 🐦 Social media: a more informal place to interact with CoCart users, reach out to us on Twitter.
  • 💌 Newsletter: do you want to receive the latest plugin updates and news? Subscribe here.

Get involved

Do you like the idea of creating a headless store with WooCommerce? Got questions or feedback? We'd love to hear from you. Come join our community! ❤️

CoCart also welcomes contributions. There are many ways to support the project! If you don't know where to start, this guide might help >> How to contribute?


Website  ·  GitHub @co-cart  ·  Twitter @cocartapi

CoCart is developed and maintained by Sébastien Dumont. Founder of CoCart Headless, LLC.

Website  ·  GitHub @seb86  ·  Twitter @sebd86