{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-reverse-response-schema.json",
  "title": "ReverseResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-indirect-tax-determination-rest-tax-service-openapi.yml#/components/schemas/ReverseResponse",
  "type": "object",
  "properties": {
    "callingSystemNumber": {
      "type": "string",
      "maxLength": 100,
      "description": "A pass-through element that contains a descriptor of the calling system sending the transaction. Determination uses as cobmination of hostSystem, callingSystemNumber and uniqueDocumentNumber to lookup of audit records. If a existing record is found in Audit database, the existing document is reversed, and new document is added to the Audit database."
    },
    "hostSystem": {
      "type": "string",
      "maxLength": 100,
      "description": "The name of the Source System instance sending the transaction. Determination uses as combination of hostSystem, callingSystemNumber and uniqueDocumentNumber to lookup of audit records. If a existing record is found in Audit database, the existing document is reversed, and new document is added to the Audit database."
    },
    "documentDate": {
      "type": "string",
      "format": "date",
      "description": "The date of the invoice as stored on this document. This is used for comparison to configurations throughout Determination and is also used to query transaction data in reporting."
    },
    "documentNumber": {
      "type": "string",
      "maxLength": 200,
      "description": "This number is passed through to the audit tables and acts as a reference in the audit tables as well as for credit transactions. ONESOURCE Indirect Tax Determination supports two audit keys to enable the lookup of audit records."
    },
    "uniqueDocumentNumber": {
      "type": "string",
      "maxLength": 200,
      "description": "The unique identifier for this document, as assigned by the Source System. If value is not provided for commit or reverse, ONESOURCE determination will auto generate this value based on concatenated value of externalCompanyID|documentNumber|companyRole."
    },
    "externalCompanyId": {
      "type": "string",
      "maxLength": 100,
      "description": "The unique identifier used by your business application to indicate which company to use in Determination. This identifier also distinguishes between different calling applications that may be used by your company. This element may be passed at the batch level or with each document, and is passed through to the Determination response, and to the Audit database."
    },
    "requestStatus": {
      "type": "boolean",
      "description": "Result of the reversal, True or False"
    },
    "message": {
      "type": "string",
      "maxLength": 200,
      "description": "Text message of the result of the reversal operation."
    }
  }
}