WooCommerce · Schema

TaxRate

A configured tax rate applied at checkout.

eCommerceOpen SourceOrdersProductsWordPress

Properties

Name Type Description
id integer Tax rate unique identifier.
country string ISO 3166-1 alpha-2 country code for this rate.
state string State code for this rate (empty for country-wide rates).
postcode string Postcode or range for this rate.
city string City name for this rate.
rate string Tax rate percentage as a decimal string (e.g. 20.0000).
name string Tax rate label shown to customers.
priority integer Priority of this tax rate (used when multiple rates match the same address).
compound boolean Whether this is a compound tax rate (applied on top of other taxes).
shipping boolean Whether the tax applies to shipping costs.
class string Tax class slug. Standard class is identified by an empty string.
View JSON Schema on GitHub

JSON Schema

woocommerce-rest-api-tax-rate-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-rest-api-tax-rate-schema.json",
  "title": "TaxRate",
  "description": "A configured tax rate applied at checkout.",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Tax rate unique identifier.",
      "example": 1
    },
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code for this rate.",
      "example": "string-value"
    },
    "state": {
      "type": "string",
      "description": "State code for this rate (empty for country-wide rates).",
      "example": "string-value"
    },
    "postcode": {
      "type": "string",
      "description": "Postcode or range for this rate.",
      "example": "string-value"
    },
    "city": {
      "type": "string",
      "description": "City name for this rate.",
      "example": "string-value"
    },
    "rate": {
      "type": "string",
      "description": "Tax rate percentage as a decimal string (e.g. 20.0000).",
      "example": "string-value"
    },
    "name": {
      "type": "string",
      "description": "Tax rate label shown to customers.",
      "example": "Example Name"
    },
    "priority": {
      "type": "integer",
      "description": "Priority of this tax rate (used when multiple rates match the same address).",
      "example": 1
    },
    "compound": {
      "type": "boolean",
      "description": "Whether this is a compound tax rate (applied on top of other taxes).",
      "example": true
    },
    "shipping": {
      "type": "boolean",
      "description": "Whether the tax applies to shipping costs.",
      "example": true
    },
    "class": {
      "type": "string",
      "description": "Tax class slug. Standard class is identified by an empty string.",
      "example": "string-value"
    }
  }
}