WooCommerce · Schema
CartTotals
Cart financial totals including subtotal, taxes, shipping, and grand total.
eCommerceOpen SourceOrdersProductsWordPress
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. |
JSON Schema
{
"$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"
}
]
}
}
}