WooCommerce · JSON Structure

Woocommerce Store Api Cart Totals Structure

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

Type: object Properties: 11
E-CommerceOpen-SourceOrderProductWordPress

CartTotals is a JSON Structure definition published by WooCommerce, describing 11 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

total_items total_items_tax total_fees total_fees_tax total_discount total_discount_tax total_shipping total_shipping_tax total_price total_tax tax_lines

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/woocommerce/refs/heads/main/json-structure/woocommerce-store-api-cart-totals-structure.json",
  "name": "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 Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/woocommerce-store-api-cart-totals-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.