{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-inv-batch-entries-with-keys-schema.json",
  "title": "data_inv_batch_entries_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_inv_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_inv_batch_entries"
    }
  ],
  "$defs": {
    "data_inv_batch_entries": {
      "required": [
        "Co",
        "Mth",
        "BatchId",
        "BatchSeq",
        "MSInv",
        "CustGroup",
        "Customer",
        "PaymentType",
        "RecType",
        "InvDate",
        "DueDate",
        "InterCoInv",
        "PrintLvl",
        "SubtotalLvl",
        "SepHaul",
        "Interfaced",
        "Void",
        "PrintedYN",
        "KeyID",
        "ReportID"
      ],
      "type": "object",
      "properties": {
        "Co": {
          "type": "integer",
          "description": "Key to this object."
        },
        "Mth": {
          "type": "string",
          "description": "Format: YYYY-MM-01. Key to this object."
        },
        "BatchId": {
          "type": "integer",
          "description": "Key to this object."
        },
        "BatchSeq": {
          "type": "integer",
          "description": "Key to this object."
        },
        "MSInv": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "CustGroup": {
          "type": "integer",
          "description": ""
        },
        "Customer": {
          "type": "integer",
          "description": ""
        },
        "CustJob": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CustPO": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Description": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ShipAddress": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "City": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "State": {
          "maxLength": 4,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Zip": {
          "maxLength": 12,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ShipAddress2": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PaymentType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "RecType": {
          "type": "integer",
          "description": ""
        },
        "PayTerms": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "InvDate": {
          "type": "string",
          "description": "Format: YYYY-MM-DD"
        },
        "DiscDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "DueDate": {
          "type": "string",
          "description": "Format: YYYY-MM-DD"
        },
        "ApplyToInv": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "InterCoInv": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "LocGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Location": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PrintLvl": {
          "type": "integer",
          "description": ""
        },
        "SubtotalLvl": {
          "type": "integer",
          "description": ""
        },
        "SepHaul": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "Interfaced": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "Void": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "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": ""
        },
        "PrintedYN": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "CheckNo": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CMCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CMAcct": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "Country": {
          "maxLength": 2,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReportID": {
          "type": "integer",
          "description": ""
        },
        "__custom_fields": {
          "type": "object",
          "description": "Properties will be added to this object for each Vista Customer field on this form."
        },
        "__InvoiceDetails": {
          "type": "array"
        }
      }
    }
  }
}