WooCommerce Cart API

Manage the current shopper's cart session including items, coupons, and shipping

Operations 13

GET /cart WooCommerce Get the Current Cart #
POST /cart/add-item WooCommerce Add an Item to the Cart #
POST /cart/remove-item WooCommerce Remove an Item from the Cart #
POST /cart/update-item WooCommerce Update a Cart Item Quantity #
POST /cart/apply-coupon WooCommerce Apply a Coupon to the Cart #
POST /cart/remove-coupon WooCommerce Remove a Coupon from the Cart #
POST /cart/update-customer WooCommerce Update Cart Customer Data #
POST /cart/select-shipping-rate WooCommerce Select a Shipping Rate for the Cart #
GET /cart/items WooCommerce List Cart Items #
DELETE /cart/items WooCommerce Clear All Cart Items #
GET /cart/items/{key} WooCommerce Get a Cart Item #
PUT /cart/items/{key} WooCommerce Update a Cart Item by Key #
DELETE /cart/items/{key} WooCommerce Delete a Cart Item by Key #

Documentation

Specifications

Schemas & Data

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/woocommerce-cart-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

woocommerce-cart-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WooCommerce Store Cart API
  description: The WooCommerce Store API provides unauthenticated public REST endpoints for building customer-facing cart, checkout, and product functionality.
  version: v1
  contact:
    name: WooCommerce Developer Support
    url: https://developer.woocommerce.com/docs/apis/store-api/
  termsOfService: https://woocommerce.com/terms-conditions/
servers:
- url: https://example.com/wp-json/wc/store/v1
  description: Production Server (replace example.com with your store domain)
tags:


# --- truncated at 32 KB (62 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/woocommerce/refs/heads/main/openapi/woocommerce-cart-api-openapi.yml