{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-tax-list-schema.json",
  "title": "TaxList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-taxes-api-openapi.yml#/components/schemas/TaxList",
  "allOf": [
    {
      "$ref": "#/$defs/Pagination"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tax"
          }
        }
      }
    }
  ],
  "$defs": {
    "Pagination": {
      "type": "object",
      "title": "Pagination",
      "properties": {
        "current_page": {
          "type": "integer",
          "description": "Number of the page returned by this response, starting at `1`."
        },
        "first_page_url": {
          "type": "string",
          "description": "URL of the first page in the result set, relative when the requested page is beyond the last page."
        },
        "from": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Position of the first record on this page within the full result set, starting at `1`, or `null` when the requested page is beyond the last page."
        },
        "last_page": {
          "type": "integer",
          "description": "Total number of pages."
        },
        "last_page_url": {
          "type": "string",
          "description": "URL of the last page in the result set, relative when the requested page is beyond the last page."
        },
        "next_page_url": {
          "type": "string",
          "description": "URL of the next page in the result set, empty when the current page is the last page."
        },
        "path": {
          "type": "string",
          "description": "Canonical URL of the endpoint, without query parameters."
        },
        "per_page": {
          "type": "integer",
          "default": 10,
          "description": "Maximum number of records returned per page."
        },
        "prev_page_url": {
          "type": "string",
          "description": "URL of the previous page in the result set, empty when the current page is the first page."
        },
        "to": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Position of the last record on this page within the full result set, or `null` when the requested page is beyond the last page."
        },
        "total": {
          "type": "integer",
          "description": "Total number of records across all pages."
        }
      }
    },
    "Tax": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string",
          "description": "Country the tax applies to."
        },
        "country_name": {
          "type": "string",
          "description": "Localised name of the country the tax applies to."
        },
        "created": {
          "type": "string",
          "format": "date-time"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the tax."
        },
        "rate": {
          "type": "number",
          "format": "float",
          "description": "Tax rate as a percentage."
        },
        "region": {
          "type": [
            "string",
            "null"
          ],
          "description": "Region code the tax applies to."
        },
        "region_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Localised name of the region the tax applies to."
        },
        "slug": {
          "type": "string"
        },
        "term": {
          "type": "string",
          "description": "Tax term label, such as GST or VAT."
        },
        "updated": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}