Home
WooCommerce
Woocommerce Store Api Cart Example
Woocommerce Store Api Cart Example
E-Commerce Open-Source Order Product WordPress
Woocommerce Store Api Cart Example is an example object payload from WooCommerce, with 14 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
items coupons fees totals shipping_rates billing_address shipping_address has_calculated_shipping needs_payment needs_shipping items_count items_weight cross_sells errors
Example Payload
{
"items": [
"string-value"
],
"coupons": [
{
"code": "string-value",
"discount_type": "standard",
"totals": {}
}
],
"fees": [
{
"id": "500123",
"name": "Example Name",
"totals": {}
}
],
"totals": {
"total_items": "string-value",
"total_items_tax": "string-value",
"total_fees": "string-value",
"total_fees_tax": "string-value",
"total_discount": "string-value",
"total_discount_tax": "string-value",
"total_shipping": "string-value",
"total_shipping_tax": "string-value",
"total_price": "string-value",
"total_tax": "string-value",
"tax_lines": [
{
"name": "Example Name",
"price": "string-value",
"rate": "string-value"
}
]
},
"shipping_rates": [
"string-value"
],
"billing_address": {
"first_name": "Example Name",
"last_name": "Example Name",
"company": "string-value",
"address_1": "string-value",
"address_2": "string-value",
"city": "string-value",
"state": "string-value",
"postcode": "string-value",
"country": "string-value",
"email": "user@example.com",
"phone": "string-value"
},
"shipping_address": {
"first_name": "Example Name",
"last_name": "Example Name",
"company": "string-value",
"address_1": "string-value",
"address_2": "string-value",
"city": "string-value",
"state": "string-value",
"postcode": "string-value",
"country": "string-value",
"email": "user@example.com",
"phone": "string-value"
},
"has_calculated_shipping": true,
"needs_payment": true,
"needs_shipping": true,
"items_count": 1,
"items_weight": 10.5,
"cross_sells": [
"string-value"
],
"errors": [
{
"code": "string-value",
"message": "string-value"
}
]
}
Every example 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 examples
4 MCP tools reach this
find_examplesBrowse and filter every example 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.
All 92 tools →
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/woocommerce-store-api-cart-example"
All examples
curl "https://apis.io/api/v1/examples?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.