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

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 90

Watchers: 14

Forks: 26

Open Issues: 0


v2.0.0-beta.2 2019-06-18 15:19 UTC


WordPress Plugin Page WordPress Plugin Version WordPress Tested Up To WordPress Plugin Rating WordPress Plugin Downloads License

Contributors: sebd86
Donate link:
Tags: woocommerce, cart, endpoint, JSON, rest, api, REST API
Requires at least: 4.9.8
Requires PHP: 5.6
Tested up to: 5.2.1
WC requires at least: 3.0.0
WC tested up to: 3.6.4
Stable tag: 1.2.3
License: GPL v2 or later

Control the cart via the REST-API for WooCommerce.

🔔 Overview

CoCart, also written as co-cart, is a REST API extension for WooCommerce. Accessing the cart via the REST API was highly requested by mobile and app developers and was missing from the core of WooCommerce.

So I built it. Tada!

It allows you to use WooCommerce’s REST API to its full potential providing the option to create a full web or mobile app 📱 for your store powered by WooCommerce.

Is This Free?

Yes, it's free. But here's what you should really care about:

At this time, none of the official WooCommerce library wrappers can be used with this REST API as they all require authentication which makes it difficult to use along with the other official REST API endpoints that WooCommerce provides.

What's the Catch?

This is a non-commercial plugin. As such:

  • Development time for it is effectively being donated and is, therefore, limited.
  • Support inquiries may not be answered in a timely manner.
  • Critical issues may not be resolved promptly.

If you have a customization/integration requirement then I'd love to hear from you!

Please understand that this repository is not a place to seek help with configuration-related issues. Use it to report bugs or propose improvements.

📘 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 documenation repository.

✅ Requirements

To use this plugin you will need:

  • PHP v5.6 minimum (Recommend PHP v7+)
  • WordPress v4.9.8 minimum
  • WooCommerce v3.0.0+
  • Pretty permalinks in Settings > Permalinks so that the custom endpoints are supported. Default permalinks will not work.
  • You may access the API over either HTTP or HTTPS, but HTTPS is recommended where possible.

💽 Installation

  1. Download a .zip file with 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.

At present, I do not offer a dedicated, premium support channel for CoCart but will soon with CoCart Pro. Please understand this is a non-commercial plugin. As such:

  • Development time for it is effectively being donated and is, therefore, limited.
  • Support inquiries may not be answered in a timely manner.
  • Critical issues may not be resolved promptly.

📝 Reporting Issues

If you think you have found a bug in the plugin, a problem with the documentation, or want to see a new feature added, 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 supporting me directly so I can continue maintaining it and keep evolving the project.

You'll be helping to ensure I can spend the time not just fixing bugs, adding features, releasing new versions, but also keeping the project afloat. Any contribution you make is a big help and is greatly appreciated.

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

I accept one-time donations and monthly via

  • My PayPal
  • Bitcoin (BTC): 3L4cU7VJsXBFckstfJdP2moaNhTHzVDkKQ
  • Ethereum (ETH): 0xc6a3C18cf11f5307bFa11F8BCBD51F355b6431cB
  • Litecoin (LTC): MNNy3xBK8sM8t1YUA2iAwdi9wRvZp9yRoi

If you have special requirements for a sponsorship, you can email me and we can talk.

If you would like to contribute code to this project then please follow these contribution guidelines.

Thank you for your support! 🙌


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


CoCart is developed and maintained by Sébastien Dumont.