{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-tracker-odata-response-of-apbatch-model-schema.json",
  "title": "TrackerODataResponseOfAPBatchModel",
  "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/TrackerODataResponseOfAPBatchModel",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "value": {
      "type": "array",
      "items": {
        "title": "APBatchModel",
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "batchId": {
            "type": "string"
          },
          "apRouteId": {
            "type": "integer",
            "format": "int32"
          },
          "sentToAPDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "batchRunDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "paymentStatus": {
            "$ref": "#/$defs/APExtractAllowedBatchPaymentStatuses"
          },
          "paymentComments": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "nextLink": {
      "type": "string"
    }
  },
  "$defs": {
    "APExtractAllowedBatchPaymentStatuses": {
      "type": "string",
      "description": "",
      "x-enumFlags": true,
      "x-enumNames": [
        "None",
        "APPaymentInProcess",
        "ContentError",
        "OnHold",
        "WillNotBePaid",
        "Other",
        "Submitted",
        "Resubmitted",
        "Paid"
      ],
      "enum": [
        "None",
        "APPaymentInProcess",
        "ContentError",
        "OnHold",
        "WillNotBePaid",
        "Other",
        "Submitted",
        "Resubmitted",
        "Paid"
      ]
    }
  }
}