Home Plugins cart rest api for woocommerce
Headless eCommerce API for Developers – CoCart logo

Headless eCommerce API for Developers – CoCart

by CoCart Headless on WordPress.org

A developer-first REST API to decouple WooCommerce on the frontend. Fast, secure, customizable, easy.

(21)

CoCart: Headless WooCommerce API for Developers

CoCart is a developer-first REST API to decouple WooCommerce on the frontend.

Build the modern and scalable storefront of your dreams with confidence independent of WordPress using frameworks like Astro, React, Vue, or Next.js, gaining complete control over your customers experience no matter what your store sells.

Why 1,000+ developers choose CoCart

🚀 Core cart functionality (FREE)
* ✅ Zero learning curve – Built on WooCommerce Data Stores with familiar hooks, ensuring broad plugin compatibility.
* 🔐 Session management – Cookie-less, database-stored sessions. Handle concurrent users without breaking a sweat.
* 🛒 Essential cart operations – Add, remove, update items and calculate totals in simple API calls.

💻 Developer experience that doesn’t suck
* 🔑 Authentication that makes sense – Email, username, or phone login. No admin API keys to juggle.
* 🌍 CORS just works – First-party CORS support means your frontend connects instantly, no configuration hell.
* 🧩 Extendable Callbacks – Add your own logic without writing new API routes.
* 📦 Bulk Cart Requests – Combine multiple API calls into one for better performance.
* 📊 Cart Insights – Monitor all cart sessions, including those nearing expiration or already expired.

🎯 WooCommerce compatibility, guaranteed
* 🛠 Native checkout support – Load any cart session into WooCommerce’s checkout. Your payment gateways work seamlessly.
* 🔎 Product search – Query by name, SKU, or ID — authenticated or not — with flexible filtering.
* 💸 Name Your Price support – Donation-based pricing with built-in flexibility.

Want more? Upgrade to CoCart Plus.

First time using CoCart? Check out the documentation and create a sandbox to try it out.

💬 Loved by developers worldwide

★★★★★

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

★★★★★

“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

★★★★★

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

💼 Need More Features? Upgrade to CoCart Plus

Additional features in CoCart Plus:

  • 🎫 Coupon Management – Apply discounts, promo codes, and boost conversions.
  • 🚢 Shipping Calculations – Real-time shipping rates and method selection.
  • 💰 Cart Fees – Add handling fees, rush charges, or custom pricing logic.
  • 🥪 Advanced Batch API – Process multiple cart operations in a single request for lightning speed.
  • 🕒 Rate Limiting – Prevent API abuse and maintain high performance under load.

🔓 Ready to Go Fully Headless?

Join thousands of developers and agencies building with CoCart — the REST API that takes WooCommerce further.

👉 Upgrade to CoCart Plus and build the future of eCommerce today.

★★★★★

“Thanks for doing such 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

See our wall of love for more developer testimonials.

💜 Need Support?

We aim to provide regular support for the CoCart plugin via our Discord community server. Please understand that we do prioritize support for our paying customers.

👍 Add-ons to further enhance CoCart

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

These add-ons of course come with support too.

For additional security, consider our API Security plugin that provides a firewall to block unknown outsiders, rate limit requests and protect data exposure – no configuration required.

⌨️ Join our growing community

On Discord, we have a community of developers, WordPress agencies, and shop owners building the fastest and best headless WooCommerce stores with CoCart.

Come and join our community

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

More information

💯 Credits

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

Contributors & Developers

You can help translate “CoCart” into your language.

INTERESTED IN DEVELOPMENT?

Browse the code on GitHub, or follow the CoCart development blog for the latest development updates. You can also follow @cocartapi on Twitter to stay up to date about everything happening with CoCart.

Please share your experience

We’d love to hear what you have to say. Share your experience and help others discover CoCart. It helps to keep the plugin going strong, and is greatly appreciated.

Active installations1K+
Weekly downloads
168+24.44%
Version4.8.0
Last updated9/22/2025
WordPress version6.3
Tested up to6.8.2
PHP version7.4
Tags
cartdecoupledheadlessrest-apiwoocommerce
Headless eCommerce API for Developers – CoCart | Plugin0