{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quickbooks/json-schema/quickbooks-taxagencyresponse-schema.json",
  "title": "taxagencyresponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quickbooks-taxagency-api-openapi.yml#/components/schemas/taxagencyresponse",
  "type": "object",
  "properties": {
    "SyncToken": {
      "type": "string",
      "description": "Version number of the object. It is used to lock an object for use by one app at a time. As soon as an application modifies an object, its SyncToken is incremented. Attempts to modify an object specifying an older SyncToken fails. Only the latest version of the object is maintained by QuickBooks Online.",
      "x-intuit-required": "Required for update"
    },
    "TaxAgencyConfig": {
      "type": "string",
      "description": "Flag to identify whether the TaxAgency is system defined by Automated Sales Tax engine or user generated. Valid values include \nUSER_DEFINED, \nSYSTEM_GENERATEDSYSTEM_GENERATED."
    },
    "DisplayName": {
      "type": "string",
      "description": "Name of the agency.",
      "x-intuit-required": "Required",
      "x-intuit-sortable": true
    },
    "TaxTrackedOnSales": {
      "type": "boolean",
      "description": "Denotes whether this tax agency is used to track tax on sales.",
      "x-intuit-required": "Optional",
      "x-intuit-default": "true"
    },
    "TaxTrackedOnPurchases": {
      "type": "boolean",
      "description": "Denotes whether this tax agency is used to track tax on purchases.",
      "x-intuit-required": "Optional",
      "x-intuit-default": "false"
    },
    "LastFileDate": {
      "type": "string",
      "format": "date",
      "description": "The last tax filing date for this tax agency. This field is automatically populated by QuickBooks business logic at tax filing time.",
      "x-intuit-required": "Optional"
    },
    "Id": {
      "type": "string",
      "description": "Unique identifier for this object.",
      "x-intuit-required": "Required for update",
      "x-intuit-filterable": true
    },
    "TaxRegistrationNumber": {
      "type": "string",
      "description": "Registration number for the agency.",
      "x-intuit-required": "Optional"
    },
    "MetaData": {
      "allOf": [
        {
          "$ref": "#/$defs/modificationmetadata"
        }
      ],
      "description": "Descriptive information about the entity. The MetaData values are set by Data Services and are read only for all applications.",
      "x-intuit-required": "Optional"
    }
  },
  "required": [
    "DisplayName"
  ],
  "$defs": {
    "modificationmetadata": {
      "type": "object",
      "title": "modificationmetadata",
      "properties": {
        "CreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time the entity was created in the source domain.",
          "x-intuit-filterable": true,
          "x-intuit-sortable": true
        },
        "LastUpdatedTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time the entity was last updated in the source domain.",
          "x-intuit-filterable": true,
          "x-intuit-sortable": true
        }
      }
    }
  }
}