{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-invoice-batches-with-keys-schema.json",
  "title": "data_invoice_batches_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-ms-openapi.yml#/components/schemas/data_invoice_batches_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_invoice_batches"
    }
  ],
  "$defs": {
    "data_invoice_batches": {
      "required": [
        "Co",
        "Mth",
        "BatchId",
        "Source",
        "TableName",
        "DateCreated",
        "CreatedBy",
        "Status",
        "Rstrict",
        "KeyID"
      ],
      "type": "object",
      "properties": {
        "Co": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "BatchId": {
          "type": "integer",
          "description": ""
        },
        "Source": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "TableName": {
          "maxLength": 20,
          "type": "string",
          "description": ""
        },
        "InUseBy": {
          "maxLength": 128,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DateCreated": {
          "type": "string",
          "description": ""
        },
        "CreatedBy": {
          "maxLength": 128,
          "type": "string",
          "description": ""
        },
        "Status": {
          "type": "integer",
          "description": ""
        },
        "Rstrict": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "Adjust": {
          "enum": [
            "Y",
            "N",
            null
          ],
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PRGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "PREndDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DatePosted": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DateClosed": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Notes": {
          "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."
        }
      }
    }
  }
}