{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/precisely-apis/main/json-schema/precisely-apis-tax-location-request-schema.json",
  "title": "TaxLocationRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/precisely-apis-tax-api-openapi.yml#/components/schemas/TaxLocationRequest",
  "properties": {
    "preferences": {
      "$ref": "#/$defs/LocalTaxPreferences"
    },
    "locations": {
      "items": {
        "$ref": "#/$defs/TaxLocations"
      },
      "type": "array"
    }
  },
  "required": [
    "locations"
  ],
  "type": "object",
  "$defs": {
    "LocalTaxPreferences": {
      "properties": {
        "customPreferences": {
          "additionalProperties": {
            "type": "object"
          },
          "type": "object"
        },
        "defaultBufferWidth": {
          "type": "string"
        },
        "distanceUnits": {
          "type": "string"
        },
        "fallbackToGeographic": {
          "type": "string"
        },
        "latLongFormat": {
          "type": "string"
        },
        "latLongOffset": {
          "type": "string"
        },
        "matchMode": {
          "type": "string"
        },
        "outputCasing": {
          "type": "string"
        },
        "returnCensusFields": {
          "type": "string"
        },
        "returnLatLongFields": {
          "type": "string"
        },
        "squeeze": {
          "type": "string"
        },
        "taxRatetypeID": {
          "type": "string"
        },
        "useGeoTaxAuxiliaryFile": {
          "type": "string"
        }
      },
      "required": [
        "fallbackToGeographic"
      ],
      "type": "object"
    },
    "TaxGeometry": {
      "properties": {
        "type": {
          "type": "string"
        },
        "coordinates": {
          "items": {
            "format": "double",
            "type": "number"
          },
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "TaxLocations": {
      "properties": {
        "geometry": {
          "$ref": "#/$defs/TaxGeometry"
        },
        "purchaseAmount": {
          "type": "string"
        },
        "objectId": {
          "type": "string"
        }
      },
      "required": [
        "geometry"
      ],
      "type": "object"
    }
  }
}