{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quickbooks/json-schema/quickbooks-taxserviceresponse-schema.json",
  "title": "taxserviceresponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quickbooks-taxservice-api-openapi.yml#/components/schemas/taxserviceresponse",
  "type": "object",
  "properties": {
    "TaxCodeId": {
      "type": "string",
      "description": "The id of the newly created tax code. This is generated by Data Services and returned in the response code.",
      "x-intuit-required": "Optional"
    },
    "TaxCode": {
      "type": "string",
      "description": "Name of new tax code. For current TaxCodes, query the TaxCode resource.",
      "x-intuit-required": "Required"
    },
    "TaxRateDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/taxratedetails"
      },
      "description": "Container to hold one or more tax rate specifications.",
      "x-intuit-required": "Required"
    }
  },
  "required": [
    "TaxCode",
    "TaxRateDetails"
  ],
  "$defs": {
    "taxratedetails": {
      "type": "object",
      "title": "taxratedetails",
      "properties": {
        "RateValue": {
          "type": "object",
          "x-intuit-type": "Percentage as String",
          "description": "Required if: TaxRateIdnot present.\nThe rate value. Must be between 0 and 100 (%). For create requests: do not include if\nTaxRateIdhas been specified.",
          "x-intuit-required": "Required"
        },
        "TaxRateId": {
          "type": "string",
          "description": "Required if: \nTaxRateName,\nRateValue, and\nTaxAgencyIdnot present.\nThe Id of an existing TaxRate. Query the TaxRate endpoint to determine the ID used for\nTaxRateId.",
          "x-intuit-required": "Required"
        },
        "TaxApplicableOn": {
          "type": "string",
          "description": "Specifies where this tax rate can be applied. Possible values are\nSales or\nPurchase.",
          "x-intuit-required": "Optional",
          "x-intuit-default": "<span class=\"literal\">Sales</span>"
        },
        "TaxAgencyId": {
          "type": "object",
          "x-intuit-type": "Integer as String",
          "description": "The Id of the agency to whom tax is paid. Query the TaxAgency resource to determine the ID for the desired agency. For create requests: do not include if\nTaxRateIdhas been specified. Required if TaxRateIdnot present.",
          "x-intuit-required": "Conditionally required"
        },
        "TaxRateName": {
          "type": "string",
          "description": "Required if TaxRateIdnot present. Name of a new tax rate. In Create requests: ignored if\nTaxRateIdis present.",
          "x-intuit-required": "Conditionally required"
        }
      },
      "required": [
        "RateValue",
        "TaxRateId"
      ]
    }
  }
}