{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scanverion-com/json-schema/scanverion-com-tax-quote-schema.json",
  "title": "TaxQuote",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scanverion-com-openapi.yml#/components/schemas/TaxQuote",
  "required": [
    "id",
    "workspaceId",
    "customerTaxProfileVersion",
    "customerEvidenceVersion",
    "packagePriceVersionId",
    "taxRuleVersion",
    "taxRateVersion",
    "taxDetermination",
    "amounts",
    "currency",
    "servicePeriodStart",
    "servicePeriodEnd",
    "expectedTaxPointDate",
    "createdAt",
    "expiresAt",
    "calculationVersion",
    "integrityHash"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid"
    },
    "customerTaxProfileVersion": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int64"
    },
    "customerEvidenceVersion": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int64"
    },
    "packagePriceVersionId": {
      "type": "string",
      "format": "uuid"
    },
    "taxRuleVersion": {
      "type": "string"
    },
    "taxRateVersion": {
      "type": "string"
    },
    "taxDetermination": {
      "$ref": "#/$defs/TaxDeterminationResult"
    },
    "amounts": {
      "$ref": "#/$defs/TaxAmounts"
    },
    "currency": {
      "type": "string"
    },
    "servicePeriodStart": {
      "type": "string",
      "format": "date-time"
    },
    "servicePeriodEnd": {
      "type": "string",
      "format": "date-time"
    },
    "expectedTaxPointDate": {
      "type": "string",
      "format": "date"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "calculationVersion": {
      "type": "string"
    },
    "integrityHash": {
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/TaxQuoteStatus"
    }
  },
  "$defs": {
    "ServiceTaxCategory": {
      "type": "integer"
    },
    "TaxAmounts": {
      "type": "object",
      "properties": {
        "netMinor": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int64"
        },
        "vatMinor": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int64"
        },
        "grossMinor": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int64"
        },
        "currency": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "TaxDeterminationResult": {
      "required": [
        "vatJurisdiction",
        "taxScheme",
        "taxTreatment",
        "reportingScheme",
        "ruleCode",
        "ruleVersion",
        "serviceTaxCategory",
        "vatRateBasisPoints",
        "legalTextVersion"
      ],
      "type": "object",
      "properties": {
        "vatJurisdiction": {
          "$ref": "#/$defs/TaxJurisdictionCode"
        },
        "taxScheme": {
          "$ref": "#/$defs/TaxSchemeCode"
        },
        "taxTreatment": {
          "$ref": "#/$defs/TaxTreatmentCode"
        },
        "reportingScheme": {
          "$ref": "#/$defs/TaxReportingSchemeCode"
        },
        "ruleCode": {
          "type": "string"
        },
        "ruleVersion": {
          "type": "string"
        },
        "serviceTaxCategory": {
          "$ref": "#/$defs/ServiceTaxCategory"
        },
        "vatRateBasisPoints": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "legalTextVersion": {
          "type": "string"
        }
      }
    },
    "TaxJurisdictionCode": {
      "type": "integer"
    },
    "TaxQuoteStatus": {
      "type": "integer"
    },
    "TaxReportingSchemeCode": {
      "type": "integer"
    },
    "TaxSchemeCode": {
      "type": "integer"
    },
    "TaxTreatmentCode": {
      "type": "integer"
    }
  }
}