Cart REST API for WooCommerce

plugin banner

Provides additional REST-API endpoints for WooCommerce to enable the ability to add, view, count, update and delete items from the cart.

Author:CoCart Headless, LLC (profile at wordpress.org)
WordPress version required:5.6
WordPress version tested:6.5
Plugin version:3.12.0
Added to WordPress repository:26-02-2018
Last updated:26-03-2024
Rating, %:98
Rated by:21
Plugin URI:https://cocartapi.com
Total downloads:72 409
Active installs:1 000+
plugin download
Click to start download

Supercharge your WooCommerce store by going headless

Is your store slow? Looking to decouple away from WordPress? With CoCart‘s customizable REST API for WooCommerce, you can make your store headless in days, not months, using the frameworks and tools you love. Unlock your stores potential for an extraordinary online shopping experience.

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?

Are you agonizing trying to develop your own REST API for WooCommerce? With CoCart, it’s ready to use, customizable to your needs and more importantly, it saves you development time. 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.

★★★★★

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

???? Built for developers, by developers

CoCart was born out of frustration with no existing solution on the market. As beautiful as it functions, the API is just as flexible with you, the developer, in mind. We spend an unfathomable amount of time making the API a joy to work with.

We invest our time into fully abstracting our API so you can focus on building a headless store. Integrate with CoCart in days, not months.

★★★★★

Amazing Plugin. I’m using it to create a react-native app with WooCommerce as back-end. This plugin is a life-saver! Daniel Loureiro

???? 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.

★★★★★

This plugin saved me tones of work and it is working amazingly! The plugin author provides fast and high quality support. Well done! @codenroll

???? Priority support

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

???? Developer Tools

  • CoCart Beta Tester allows you to easily update to pre-release versions of CoCart for testing and development purposes.
  • CoCart VSCode extension for Visual Studio Code adds snippets and autocompletion of functions, classes and hooks.
  • CoCart Product Support Boilerplate provides a basic boilerplate for supporting a different product types 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.

???? Testimonials – Developers just love it

★★★★★

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. Mighty Group Agency

★★★★★

This plugin works great out of the box for adding products to the cart via API. The code is solid and functionality is as expected, thanks Sebastien! Scott Bolinger, Creator of Holler Box

More testimonials

See the wall of love.

☀️ Upgrading

It is recommended that anytime you want to update CoCart that you get familiar with what’s changed in the release.

CoCart publishes release notes via the changelog.

CoCart uses Semver practices. The summary of Semver versioning is as follows:

  • MAJOR version when you make incompatible API changes.
  • MINOR version when you add functionality in a backwards compatible manner.
  • PATCH version when you make backwards compatible bug fixes.

You can read more about the details of Semver at semver.org

???? 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.

⌨️ Join our growing community

A Discord community for developers, WordPress agencies and shop owners building the fastest and best headless WooCommerce stores with CoCart.

Join our community

Built with developers in mind

Extensible, adaptable, and open source — CoCart is created with developers in mind. If you’re interested to jump in the project, there are opportunities for developers at all levels to get involved. Contribute to CoCart on the GitHub repository and join the party. ????

???? Bug reports

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.

More information

???? Credits

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

Contributors & Developers

“CoCart” has not yet been translated in other languages. You can translate “CoCart” into your language.

INTERESTED IN DEVELOPMENT?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Please review your experience

If you like CoCart and it has helped with your development, please take a moment to provide a review. It helps to keep the plugin going strong, and is greatly appreciated.


Screenshots
FAQ
ChangeLog