{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-rel-ret-bat-entries-with-keys-schema.json",
  "title": "data_rel_ret_bat_entries_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-ap-openapi.yml#/components/schemas/data_rel_ret_bat_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_rel_ret_bat_entries"
    }
  ],
  "$defs": {
    "data_rel_ret_bat_entries": {
      "required": [
        "Co",
        "Mth",
        "BatchId",
        "BatchSeq"
      ],
      "type": "object",
      "properties": {
        "Co": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "pattern": "^([0-9]{4})-(1[0-2]|0[1-9])-01.*$",
          "type": "string",
          "description": "Format: YYYY-MM-01."
        },
        "BatchId": {
          "type": "integer",
          "description": ""
        },
        "BatchSeq": {
          "type": "integer",
          "description": ""
        },
        "BatchTransType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "TypeOf": {
          "type": "integer",
          "description": ""
        },
        "APTrans": {
          "type": "integer",
          "description": ""
        },
        "APExpMth": {
          "pattern": "^([0-9]{4})-(1[0-2]|0[1-9])-01.*$$",
          "type": "string",
          "description": "Format: YYYY-MM-01."
        },
        "APLine": {
          "type": "integer",
          "description": ""
        },
        "APSeq": {
          "type": "integer",
          "description": ""
        },
        "ReleaseDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "Amount": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "GSTTaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "TotTaxAmount": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "OldGSTTaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "PSTTaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "OldPSTTaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ApplyNewTaxRate": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "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."
        }
      }
    }
  }
}