WooCommerce · Schema

CartTotals

Cart financial totals including subtotal, taxes, shipping, and grand total.

E-CommerceOpen-SourceOrderProductWordPress

Properties

Name Type Description
total_items string Subtotal of all items before discounts.
total_items_tax string Total item tax.
total_fees string Total of all cart fees.
total_fees_tax string Total tax on fees.
total_discount string Total discount applied by coupons.
total_discount_tax string Tax on total discount.
total_shipping string Total shipping cost.
total_shipping_tax string Tax on shipping.
total_price string Grand total including tax.
total_tax string Total tax amount.
tax_lines array Individual tax breakdown by rate.
View JSON Schema on GitHub

JSON Schema

woocommerce-store-api-cart-totals-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/woocommerce/refs/heads/main/json-schema/woocommerce-store-api-cart-totals-schema.json",
  "title": "CartTotals",
  "description": "Cart financial totals including subtotal, taxes, shipping, and grand total.",
  "type": "object",
  "properties": {
    "total_items": {
      "type": "string",
      "description": "Subtotal of all items before discounts.",
      "example": "string-value"
    },
    "total_items_tax": {
      "type": "string",
      "description": "Total item tax.",
      "example": "string-value"
    },
    "total_fees": {
      "type": "string",
      "description": "Total of all cart fees.",
      "example": "string-value"
    },
    "total_fees_tax": {
      "type": "string",
      "description": "Total tax on fees.",
      "example": "string-value"
    },
    "total_discount": {
      "type": "string",
      "description": "Total discount applied by coupons.",
      "example": "string-value"
    },
    "total_discount_tax": {
      "type": "string",
      "description": "Tax on total discount.",
      "example": "string-value"
    },
    "total_shipping": {
      "type": "string",
      "description": "Total shipping cost.",
      "example": "string-value"
    },
    "total_shipping_tax": {
      "type": "string",
      "description": "Tax on shipping.",
      "example": "string-value"
    },
    "total_price": {
      "type": "string",
      "description": "Grand total including tax.",
      "example": "string-value"
    },
    "total_tax": {
      "type": "string",
      "description": "Total tax amount.",
      "example": "string-value"
    },
    "tax_lines": {
      "type": "array",
      "description": "Individual tax breakdown by rate.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Tax rate label."
          },
          "price": {
            "type": "string",
            "description": "Tax amount for this rate."
          },
          "rate": {
            "type": "string",
            "description": "Tax rate percentage."
          }
        }
      },
      "example": [
        {
          "name": "Example Name",
          "price": "string-value",
          "rate": "string-value"
        }
      ]
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/woocommerce-store-api-cart-totals"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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

Get an API key

Free tier, no email required.

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