{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-batch-entries-with-keys-schema.json",
  "title": "data_batch_entries_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-ar-openapi.yml#/components/schemas/data_batch_entries_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_batch_entries"
    }
  ],
  "$defs": {
    "data_batch_entries": {
      "required": [
        "Co",
        "Mth",
        "BatchId",
        "BatchSeq",
        "TransType",
        "Source",
        "ARTransType",
        "KeyID"
      ],
      "type": "object",
      "properties": {
        "Co": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "BatchId": {
          "type": "integer",
          "description": ""
        },
        "BatchSeq": {
          "type": "integer",
          "description": ""
        },
        "TransType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "ARTrans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Source": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "ARTransType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "CustGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Customer": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "RecType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "JCCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Contract": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CustRef": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CustPO": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Invoice": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CheckNo": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Description": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MSCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "TransDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DueDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DiscDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CheckDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "AppliedMth": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "AppliedTrans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CMCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CMAcct": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CMDeposit": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CreditAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PayTerms": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldCustRef": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldCustPO": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldInvoice": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldCheckNo": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldDescription": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldMSCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "oldTransDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldDueDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldDiscDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldCheckDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldCMCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "oldCMAcct": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "oldCMDeposit": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldCreditAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldPayTerms": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReasonCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldReasonCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UniqueAttchID": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "oldRecType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "oldJCCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "oldContract": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "__custom_fields": {
          "type": "object",
          "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
        },
        "MiscDistributions": {
          "type": "array",
          "items": {
            "required": [
              "CustGroup",
              "MiscDistCode",
              "TransType",
              "KeyID"
            ],
            "type": "object",
            "properties": {
              "CustGroup": {
                "type": "integer",
                "description": ""
              },
              "MiscDistCode": {
                "maxLength": 10,
                "type": "string",
                "description": ""
              },
              "TransType": {
                "maxLength": 1,
                "type": "string",
                "description": ""
              },
              "ARTrans": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "DistDate": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Description": {
                "maxLength": 30,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Amount": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "oldDistDate": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "oldDescription": {
                "maxLength": 30,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "oldAmount": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "UniqueAttchID": {
                "maxLength": 36,
                "minLength": 36,
                "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "KeyID": {
                "type": "integer",
                "description": ""
              },
              "__custom_fields": {
                "type": "object",
                "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
              }
            }
          },
          "description": ""
        }
      }
    }
  }
}