{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/woocommerce/json-schema/woocommerce-tax-rate-schema.json",
  "title": "TaxRate",
  "description": "A configured tax rate applied at checkout.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woocommerce-tax-rates-api-openapi.yml#/components/schemas/TaxRate",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Tax rate unique identifier."
    },
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code for this rate."
    },
    "state": {
      "type": "string",
      "description": "State code for this rate (empty for country-wide rates)."
    },
    "postcode": {
      "type": "string",
      "description": "Postcode or range for this rate."
    },
    "city": {
      "type": "string",
      "description": "City name for this rate."
    },
    "rate": {
      "type": "string",
      "description": "Tax rate percentage as a decimal string (e.g. 20.0000)."
    },
    "name": {
      "type": "string",
      "description": "Tax rate label shown to customers."
    },
    "priority": {
      "type": "integer",
      "description": "Priority of this tax rate (used when multiple rates match the same address)."
    },
    "compound": {
      "type": "boolean",
      "description": "Whether this is a compound tax rate (applied on top of other taxes)."
    },
    "shipping": {
      "type": "boolean",
      "description": "Whether the tax applies to shipping costs."
    },
    "class": {
      "type": "string",
      "description": "Tax class slug. Standard class is identified by an empty string."
    }
  }
}