{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-sl-batch-entries-with-keys-schema.json",
  "title": "data_sl_batch_entries_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-sl-openapi.yml#/components/schemas/data_sl_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_sl_batch_entries"
    }
  ],
  "$defs": {
    "data_sl_batch_entries": {
      "required": [
        "Co",
        "Mth",
        "BatchId",
        "BatchSeq",
        "BatchTransType",
        "JCCo",
        "Job",
        "VendorGroup",
        "Vendor",
        "Status",
        "KeyID",
        "MaxRetgOpt",
        "MaxRetgPct",
        "MaxRetgAmt",
        "InclACOinMaxYN",
        "MaxRetgDistStyle",
        "ApprovalRequired",
        "AUQualifiedForPBA"
      ],
      "type": "object",
      "properties": {
        "Co": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "BatchId": {
          "type": "integer",
          "description": ""
        },
        "BatchSeq": {
          "type": "integer",
          "description": ""
        },
        "BatchTransType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "SL": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JCCo": {
          "type": "integer",
          "description": ""
        },
        "Job": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "Description": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "VendorGroup": {
          "type": "integer",
          "description": ""
        },
        "Vendor": {
          "type": "integer",
          "description": ""
        },
        "HoldCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PayTerms": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CompGroup": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Status": {
          "type": "integer",
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldJCCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldJob": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldDesc": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldVendor": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldHoldCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldPayTerms": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldCompGroup": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldStatus": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OrigDate": {
          "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": ""
        },
        "OldOrigDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MaxRetgOpt": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "MaxRetgPct": {
          "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
          "type": "string",
          "description": ""
        },
        "MaxRetgAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "InclACOinMaxYN": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "MaxRetgDistStyle": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "ApprovalRequired": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "AUQualifiedForPBA": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "AUPBAEligibleDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldAUQualifiedForPBA": {
          "enum": [
            "Y",
            "N",
            null
          ],
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldAUPBAEligibleDate": {
          "type": [
            "string",
            "null"
          ],
          "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."
        },
        "InExclusions": {
          "type": "array",
          "items": {
            "required": [
              "KeyID",
              "Seq",
              "BatchTransType",
              "Type",
              "DateEntered",
              "EnteredBy"
            ],
            "type": "object",
            "properties": {
              "KeyID": {
                "type": "integer",
                "description": ""
              },
              "Seq": {
                "type": "integer",
                "description": ""
              },
              "BatchTransType": {
                "maxLength": 1,
                "type": "string",
                "description": ""
              },
              "Type": {
                "maxLength": 10,
                "type": "string",
                "description": ""
              },
              "PhaseGroup": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "Phase": {
                "maxLength": 20,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Detail": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "DateEntered": {
                "type": "string",
                "description": ""
              },
              "EnteredBy": {
                "maxLength": 128,
                "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": ""
              },
              "__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": ""
        },
        "LineItems": {
          "type": "array",
          "items": {
            "required": [
              "SLItem",
              "BatchTransType",
              "ItemType",
              "AddonPct",
              "JCCo",
              "Job",
              "PhaseGroup",
              "Phase",
              "JCCType",
              "UM",
              "GLCo",
              "GLAcct",
              "WCRetPct",
              "SMRetPct",
              "VendorGroup",
              "OrigUnits",
              "OrigUnitCost",
              "OrigCost",
              "JCCmtdTax",
              "OldJCCmtdTax",
              "TaxRate",
              "GSTRate",
              "OldTaxRate",
              "OldGSTRate",
              "JCRemCmtdTax",
              "OldJCRemCmtdTax"
            ],
            "type": "object",
            "properties": {
              "SLItem": {
                "type": "integer",
                "description": ""
              },
              "BatchTransType": {
                "maxLength": 1,
                "type": "string",
                "description": ""
              },
              "ItemType": {
                "type": "integer",
                "description": ""
              },
              "Addon": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "AddonPct": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
                "type": "string",
                "description": ""
              },
              "JCCo": {
                "type": "integer",
                "description": ""
              },
              "Job": {
                "maxLength": 10,
                "type": "string",
                "description": ""
              },
              "PhaseGroup": {
                "type": "integer",
                "description": ""
              },
              "Phase": {
                "maxLength": 20,
                "type": "string",
                "description": ""
              },
              "JCCType": {
                "type": "integer",
                "description": ""
              },
              "Description": {
                "maxLength": 60,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "UM": {
                "maxLength": 3,
                "type": "string",
                "description": ""
              },
              "GLCo": {
                "type": "integer",
                "description": ""
              },
              "GLAcct": {
                "maxLength": 20,
                "type": "string",
                "description": ""
              },
              "WCRetPct": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
                "type": "string",
                "description": ""
              },
              "SMRetPct": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
                "type": "string",
                "description": ""
              },
              "VendorGroup": {
                "type": "integer",
                "description": ""
              },
              "Supplier": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OrigUnits": {
                "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
                "type": "string",
                "description": ""
              },
              "OrigUnitCost": {
                "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
                "type": "string",
                "description": ""
              },
              "OrigCost": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": "string",
                "description": ""
              },
              "Notes": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldItemType": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldAddon": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldAddonPct": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldJCCo": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldJob": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldPhaseGroup": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldPhase": {
                "maxLength": 20,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldJCCType": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldDesc": {
                "maxLength": 60,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldUM": {
                "maxLength": 3,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldGLCo": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldGLAcct": {
                "maxLength": 20,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldWCRetPct": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldSMRetPct": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldSupplier": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldOrigUnits": {
                "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldOrigUnitCost": {
                "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldOrigCost": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "TaxType": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldTaxType": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "TaxCode": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldTaxCode": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "TaxGroup": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OldTaxGroup": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "OrigTax": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "OldOrigTax": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "JCCmtdTax": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": "string",
                "description": ""
              },
              "OldJCCmtdTax": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": "string",
                "description": ""
              },
              "TaxRate": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,6})?$",
                "type": "string",
                "description": ""
              },
              "GSTRate": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,6})?$",
                "type": "string",
                "description": ""
              },
              "OldTaxRate": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,6})?$",
                "type": "string",
                "description": ""
              },
              "OldGSTRate": {
                "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,6})?$",
                "type": "string",
                "description": ""
              },
              "JCRemCmtdTax": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": "string",
                "description": ""
              },
              "OldJCRemCmtdTax": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": "string",
                "description": ""
              },
              "PMSLKeyID": {
                "type": [
                  "integer",
                  "null"
                ],
                "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": ""
        }
      }
    }
  }
}