WordPress plugin intelligence profile

CoCart – Headless REST API for WooCommerce

Ship your headless WooCommerce storefront faster. CoCart is the REST API built for Next.js, React, Vue, and any modern frontend — developer-first.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version4.9.7
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.7 · PHP 7.4
Directory statusactive
Last directory update30 Sept 20261mo ago
Active installations900Adoption metric — not a quality score
WordPress.org rating4.9 / 5 from 21 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records CoCart – Headless REST API for WooCommerce version 4.9.7 as active, updated 1mo ago and tested up to WordPress 7.1.

Overview

About this plugin

You’ve chosen WooCommerce for your store. js, Astro, Vue — without being locked into WordPress themes. That’s exactly what CoCart is built for.

CoCart gives WooCommerce a proper frontend REST API: cookie-less session management built for stateless frontends, authentication that makes sense, and CORS support built-in. Cart sessions, authentication, and product data. Scale up when you’re ready.

9/5 rating from the developers who build headless stores with it every day.

🚀 Make your first API call in 2 minutes

Install CoCart and you’re immediately ready to call the API — no setup required:

com/wp-json/cocart/v2/cart/add-item \ -H "Content-Type: application/json" \ -d '{"id": "123", "quantity": 1}'

Want to explore before installing? Try a free sandbox →

See the full API reference →

💬 Loved by 1,000+ developers worldwide

org.

★★★★★

>

“An excellent plugin, which makes building a headless WooCommerce experience a breeze. ” — Harald Schneider

★★★★★

>

“This plugin works great out of the box for adding products to the cart via API. ” — Scott Bolinger, Creator of Holler Box

★★★★★

>

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

” — Mighty Group Agency

See our full wall of love for more developer testimonials.

Why CoCart?

WooCommerce’s Store API can be used headless, but it was designed for the Gutenberg block editor ecosystem. Its session model relies on nonces passed via response headers — suited for anonymous single-session shoppers, but the nonce is tied to WordPress’s nonce lifecycle and less straightforward to persist across sessions or devices.

CoCart is purpose-built for headless from day one: cart sessions identified by a persistent key — no nonces, no cookies — a single unified endpoint set for both product and cart data, and authentication for customers that supports any shop requirement.

Features

🚀 Session management that works

  • 🔐 Cookie-less sessions — database-stored, built for concurrent requests and stateless frontends
  • 👤 Guest customer support — full cart session support for unauthenticated shoppers, no login required
  • 🔄 Load any session into checkout — hand off to WooCommerce’s native checkout with any payment gateway

🛒 Essential cart operations

  • ✅ Add, update, and remove items via simple POST/PUT/DELETE requests
  • 🔎 Product search — query by name, SKU, or ID, authenticated or not, with flexible filtering
  • 💸 Name Your Price support — donation-based and flexible pricing built in
  • 📦 Bulk cart requests — combine multiple operations into a single API call

💻 Developer experience, done right

  • 🔑 Flexible authentication — email, username, or phone login; no admin API keys to manage
  • 🌍 CORS support built in — first-party CORS handling; your frontend connects without configuration hell
  • 🧩 180+ filters — customize every response, add logic without writing new routes
  • 📊 Cart insights — monitor active, expiring, and expired sessions from the dashboard
  • 🛠 Works with your existing stack — built on WooCommerce Data Stores with familiar hooks for broad plugin compatibility

🎯 Battle-tested

  • Tested with every major WooCommerce release
  • Multisite compatible

Who builds with CoCart?

js, React, Vue, Nuxt, Astro, Svelte, or Remix — keep WooCommerce as the commerce engine and own the entire frontend experience, from server components to fully static builds.

Mobile app developers building shopping apps in React Native, Flutter, Swift, or Kotlin — the same cart key works across devices, so a customer can start a cart on their phone and finish on the web.

Agencies delivering high-performance client storefronts — reuse one proven commerce backend across projects while every client gets a custom frontend, free of WordPress theme constraints.

Product teams going beyond the browser — progressive web apps with persistent carts, in-store kiosks, point-of-sale screens, even chat and voice commerce. Anywhere a customer can shop, CoCart can serve the cart.

Free vs. CoCart Plus

The free community version handles everything a headless cart needs: sessions, auth, CORS, cart operations, and product queries. It is actively maintained with security updates.

New features ship in CoCart Plus. When you’re ready to build a complete headless storefront — with coupons, shipping, fees, rate limiting, and checkout — Plus has you covered:

  • 🎫 Coupon Management — apply discounts and promo codes, boost conversions
  • 🚢 Shipping Calculations — real-time rates and method selection
  • 💰 Cart Fees — handling fees, rush charges, and custom pricing logic
  • 🥪 Advanced Batch API — multiple cart operations in a single request
  • 🕒 Rate Limiting — protect your API from abuse under load
  • 🧾 Checkout — complete orders with any WooCommerce-supported gateway (coming soon)
  • 💲 Subscription Support — new subscriptions and renewals (coming soon)

View CoCart Plus features and pricing →

👍 Add-ons

Free add-ons that extend the core:

  • CoCart – Rate Limiting — add rate limiting to CoCart Plus
  • CoCart – JWT Authentication — authenticate via JWT token

SDKs & Tools

Official SDKs — authentication, session management, and cart operations out of the box:

  • cocart-js (TypeScript/JavaScript) — GitHub
  • cocart-php (PHP) — GitHub
  • cocart-python (Python) — GitHub
  • cocart-go (Go) — GitHub

>

More are also in development and look forward to your feedback.

Developer tools:

  • CoCart OpenAPI Specs — generate client libraries or test with Postman/Insomnia/Yaak
  • CoCart for VS Code — snippets and autocompletion for functions, classes, and hooks
  • Raycast Extension — access CoCart docs without leaving your keyboard
  • Cart Callback Example — register custom callbacks triggered on cart updates

Need Support?

Free users: Post in the WordPress support forum or join the CoCart Discord community — a growing group of developers, agencies, and shop owners building headless stores together.

CoCart Plus customers receive priority support with faster response times.

Join the community on Discord →

More Information

  • Website
  • Documentation
  • Follow on X/Twitter, GitHub, Facebook, Instagram

💯 Credits

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.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • rest api
  • cart
  • decoupled
  • headless
  • woocommerce
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.7 · PHP 7.4
Update activity30 Sept 20261mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version4.9.64.9.7
WordPress compatibility7.17.1.2
Version4.9.54.9.6
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.