A REST-API for WooCommerce that enables the ability to add, view, update and delete items from the cart.

Installs: 40

Dependents: 0

Suggesters: 0

Stars: 115

Watchers: 13

Forks: 26

Open Issues: 5



Financial Contributors on Open Collective WordPress Plugin Page WordPress Plugin Version WordPress Tested Up To WordPress Plugin Rating WordPress Plugin Downloads License

Contributors: sebd86
Donate link:
Tags: woocommerce, cart, rest, rest-api, JSON
Requires at least: 4.9.8
Requires PHP: 5.6
Tested up to: 5.2.3
WC requires at least: 3.6.0
WC tested up to: 3.7.0
Stable tag: 2.0.6
License: GPL v2 or later

🔔 Overview

CoCart is a flexible, open-source solution to enabling the shopping cart via the REST API for WooCommerce.

With CoCart, running your WooCommerce store completely via the REST API is now possible. Control and manage the shopping cart with ease. Powerful options, clear responses and developer ready for any filtering required to your needs.

Why should I use CoCart?

WooCommerce REST API is created with developers in mind, so it can integrate with virtually any service and while it does allow developers to easily create and modify. It only allows them to scale a store so much to meet a client’s specifications without further custom development that will enable the store customers access to the products in order to add them to the shopping cart.

If you are wanting to build a headless WooCommerce store then CoCart is your missing solution.

With the documentation provided, you’ll learn how to enable the cart for your store in no time.


  • Add products to the cart.
  • Update items in the cart.
  • Remove items from the cart.
  • Restore items to the cart.
  • Calculate the totals.
  • Get the cart totals.
  • View the cart contents.
  • Get the item count.
  • Empty the cart.
  • Supports authentication via WooCommerce's method.

This plugin is just the tip of the iceberg. Want the full cart experience? CoCart Pro completes it by supporting the following features:

  • Add and Remove Coupons to Cart
  • Get Applied Coupons
  • Get Coupon Discount Total
  • Get Cart Total Weight
  • Get Cross Sells
  • Get and Set Payment Method
  • Get and Set Shipping Methods
  • Get and Set Fees
  • Calculate Shipping Fees
  • Calculate Totals and Fees

Buy CoCart Pro Now

📘 Guide

📖 Documentation

View documentation for CoCart. Documentation currently only has examples for using with cURL. If you are interested to share how to use CoCart in other languages, please follow the contributing guidelines in the documentation repository.

💽 Installation

  1. Download the latest version.
  2. Go to WordPress Admin > Plugins > Add New.
  3. Click Upload Plugin at the top.
  4. Choose File and select the .zip file you downloaded in Step 1.
  5. Click Install Now and Activate the plugin.
  1. Go to WordPress Admin > Plugins > Add New.
  2. Search for CoCart
  3. Click Install Now on the plugin and Activate the plugin.


To view the cart endpoint, go to

See documentation on how to use all endpoints.

⭐ Support

CoCart is released freely and openly. Feedback or ideas and approaches to solving limitations in CoCart is greatly appreciated.

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

If you are in need of support, you can get it with a purchase of CoCart Pro.

📝 Reporting Issues

If you think you have found a bug in the plugin, a problem with the documentation, please open a new issue and I will do my best to help you out.


If you or your company use CoCart or appreciate the work I’m doing in open source, please consider donating on the open collective or purchasing CoCart Pro where you not just get the full cart experience but also support me directly so I can continue maintaining CoCart and keep evolving the project.

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

Thank you for your support! 🙌


Code Contributors

This project exists thanks to all the people who contribute. [Contribute]. 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f636f636172742f636f6e7472696275746f72732e7376673f77696474683d38393026627574746f6e3d66616c7365

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]




Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f636f636172742f6f7267616e697a6174696f6e2f302f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f636f636172742f6f7267616e697a6174696f6e2f312f6176617461722e737667


CoCart is released under GNU General Public License v3.0.


CoCart is developed and maintained by Sébastien Dumont.