WooCommerce · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for WooCommerce Store Cart API
14 actions
14 updates
phrasing
extends
openapi/woocommerce-cart-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for WooCommerce's API. It is a proposal applied on top of the contract, not a document WooCommerce publishes.
What the actions change
x-apievangelist-phrasing
Targets 14
$.info
$.paths['/cart'].get
$.paths['/cart/add-item'].post
$.paths['/cart/remove-item'].post
$.paths['/cart/update-item'].post
$.paths['/cart/apply-coupon'].post
$.paths['/cart/remove-coupon'].post
$.paths['/cart/update-customer'].post
$.paths['/cart/select-shipping-rate'].post
$.paths['/cart/items'].get
$.paths['/cart/items'].delete
$.paths['/cart/items/{key}'].get
$.paths['/cart/items/{key}'].put
$.paths['/cart/items/{key}'].delete
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for WooCommerce Store Cart API
version: 1.0.0
extends: openapi/woocommerce-cart-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-16'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 13
- target: $.paths['/cart'].get
update:
x-apievangelist-phrasing:
intent: Get the current customer's cart
effect: read
questions:
- What's in the shopper's cart right now?
- Can I see the cart totals and shipping rates before checkout?
instructions:
- text: Show my current cart.
- text: Get the cart contents with totals and shipping rates.
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/add-item'].post
update:
x-apievangelist-phrasing:
intent: Add a product to the cart
effect: write
questions:
- How do I add a product to the cart from the storefront?
- Can I add a variable product with specific attributes to the cart?
instructions:
- text: Add product {id} to the cart with quantity {quantity}.
slots:
id: requestBody.id
quantity: requestBody.quantity
- text: Add product {id} with variation {variation} to the cart, {quantity} of them.
slots:
id: requestBody.id
variation: requestBody.variation
quantity: requestBody.quantity
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/remove-item'].post
update:
x-apievangelist-phrasing:
intent: Remove a cart item by its key
effect: destructive
questions:
- How do I remove one item from the cart using its key?
- Can I delete a single cart item by its unique key?
instructions:
- text: Remove the cart item with key {key}.
slots:
key: requestBody.key
- text: Delete cart item {key} from the cart.
slots:
key: requestBody.key
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/update-item'].post
update:
x-apievangelist-phrasing:
intent: Update a cart item's quantity
effect: write
questions:
- How do I change how many of an item are in the cart?
- Can I set a cart item's quantity to zero to remove it?
instructions:
- text: Set the quantity of cart item {key} to {quantity}.
slots:
key: requestBody.key
quantity: requestBody.quantity
- text: Update cart item {key} to {quantity} items.
slots:
key: requestBody.key
quantity: requestBody.quantity
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/apply-coupon'].post
update:
x-apievangelist-phrasing:
intent: Apply a coupon to the cart
effect: write
questions:
- How do I apply a discount coupon to the cart?
- What happens if I apply a coupon that has expired or doesn't meet conditions?
instructions:
- text: Apply coupon {code} to the cart.
slots:
code: requestBody.code
- text: Add the {code} discount to my cart.
slots:
code: requestBody.code
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/remove-coupon'].post
update:
x-apievangelist-phrasing:
intent: Remove a coupon from the cart
effect: destructive
questions:
- How do I take a coupon off the cart?
- Can I remove a previously applied coupon code?
instructions:
- text: Remove coupon {code} from the cart.
slots:
code: requestBody.code
- text: Take the {code} discount off my cart.
slots:
code: requestBody.code
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/update-customer'].post
update:
x-apievangelist-phrasing:
intent: Update the cart's billing or shipping address
effect: write
questions:
- How do I change the shipping address on the cart to recalculate rates?
- Can I update the billing address on the cart session?
instructions:
- text: Set the cart's shipping address to {shipping_address}.
slots:
shipping_address: requestBody.shipping_address
- text: Update the cart's billing address to {billing_address}.
slots:
billing_address: requestBody.billing_address
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/select-shipping-rate'].post
update:
x-apievangelist-phrasing:
intent: Select a shipping rate for the cart
effect: write
questions:
- How do I pick a specific shipping rate for the cart?
- Can I choose a shipping method for the customer's address?
instructions:
- text: Select shipping rate {rate_id} for package {package_id}.
slots:
rate_id: requestBody.rate_id
package_id: requestBody.package_id
- text: Set the cart's shipping method to {rate_id} on package {package_id}.
slots:
rate_id: requestBody.rate_id
package_id: requestBody.package_id
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/items'].get
update:
x-apievangelist-phrasing:
intent: List the items in the cart
effect: read
questions:
- Which products are currently in the cart?
- Can I get a list of every item in the cart session?
instructions:
- text: List all items in my cart.
- text: Show every product in the cart session.
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/items'].delete
update:
x-apievangelist-phrasing:
intent: Empty the shopping cart
effect: destructive
questions:
- How do I clear every item out of the store cart?
- Is there a nonce required to empty the cart?
instructions:
- text: Clear all items from the cart using nonce {nonce}.
slots:
nonce: header.Nonce
- text: Empty the shopping cart completely.
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/items/{key}'].get
update:
x-apievangelist-phrasing:
intent: Get one cart item by its key
effect: read
questions:
- How do I look up a single item in the cart by its key?
- What does one cart item contain?
instructions:
- text: Show cart item {key}.
slots:
key: path.key
- text: Get the details of cart item {key}.
slots:
key: path.key
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/items/{key}'].put
update:
x-apievangelist-phrasing:
intent: Update a cart item's quantity by key
effect: write
questions:
- How do I change the quantity of one line in the shopper's cart using its item key?
- Can I edit the data of a single cart item by its key?
- Does changing a cart item require a Store API nonce?
instructions:
- text: Change the quantity of line item {key} in the cart to {quantity}.
slots:
key: path.key
quantity: requestBody.quantity
- text: Edit cart line {key} using Store API nonce {nonce}.
slots:
key: path.key
nonce: header.Nonce
method: generated
generated: '2026-11-16'
- target: $.paths['/cart/items/{key}'].delete
update:
x-apievangelist-phrasing:
intent: Remove one cart item
effect: destructive
questions:
- How do I remove a single item from the cart by its key?
- Can I delete one cart item and keep the rest?
instructions:
- text: Remove cart item {key}.
slots:
key: path.key
- text: Delete item {key} from the cart using nonce {nonce}.
slots:
key: path.key
nonce: header.Nonce
method: generated
generated: '2026-11-16'
Work with this as data
Every overlay 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 openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/woocommerce-cart-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.