{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Tax_Rate",
  "title": "Tax_Rate",
  "type": "object",
  "properties": {
    "class_rates": {
      "type": "array",
      "description": "Tax rates for tax classes. You must assign at least one tax rate for each tax class defined on a store.",
      "items": {
        "type": "object",
        "properties": {
          "rate": {
            "type": "number",
            "description": "The tax rate that you apply to the items in a tax class.",
            "example": 5
          },
          "tax_class_id": {
            "type": "integer",
            "description": "ID of a tax class. You must associate a tax rate with a tax class. The rate will apply to all the items in this tax class.",
            "example": 1
          }
        }
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "Indicates whether a tax rate is enabled. Tax operations are only for enabled zones.",
      "default": true
    },
    "id": {
      "type": "integer",
      "description": "Tax Rate ID. Internal identifier to update and delete a specific tax rate.",
      "example": 3
    },
    "name": {
      "type": "string",
      "description": "The human-readable name for this tax zone. The name appears in the store control panel and may be visible to shoppers, depending on store tax settings.",
      "example": "Sales Tax"
    },
    "priority": {
      "type": "integer",
      "description": "Allows for compounding tax rates, common in certain jurisdictions.",
      "default": 1
    },
    "tax_zone_id": {
      "type": "integer",
      "description": "ID of an associated tax zone. You must associate a tax rate with a tax zone.",
      "example": 2
    }
  },
  "x-examples": {}
}