{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-invoice-payment-model-schema.json",
  "title": "InvoicePaymentModel",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-ap-exchange-api-openapi.yml#/components/schemas/InvoicePaymentModel",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true,
      "format": "int32"
    },
    "number": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "invoiceDateTime": {
      "type": "string",
      "readOnly": true,
      "format": "date-time"
    },
    "matterId": {
      "type": "integer",
      "readOnly": true,
      "format": "int32"
    },
    "vendorId": {
      "type": "integer",
      "readOnly": true,
      "format": "int32"
    },
    "vendorName": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "vendorShortName": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "apRouteId": {
      "type": "integer",
      "readOnly": true,
      "format": "int32"
    },
    "apRouteTrackerId": {
      "type": "integer",
      "readOnly": true,
      "format": "int32"
    },
    "sentToAPDateTime": {
      "type": "string",
      "readOnly": true,
      "format": "date-time"
    },
    "batchId": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "batchRunDateTime": {
      "type": "string",
      "readOnly": true,
      "format": "date-time"
    },
    "approvedTotal": {
      "type": "number",
      "readOnly": true,
      "format": "decimal"
    },
    "approvedDateTime": {
      "type": "string",
      "readOnly": true,
      "format": "date-time"
    },
    "paymentNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentComments": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentDateTime": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "exchangeRate": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "paymentAmount": {
      "type": [
        "number",
        "null"
      ],
      "format": "decimal"
    }
  }
}