{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-fuel-batch-entries-with-keys-schema.json",
  "title": "data_fuel_batch_entries_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-em-openapi.yml#/components/schemas/data_fuel_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_fuel_batch_entries"
    }
  ],
  "$defs": {
    "data_fuel_batch_entries": {
      "required": [
        "Co",
        "Mth",
        "BatchId",
        "BatchSeq",
        "Source",
        "Equipment",
        "BatchTransType",
        "EMTransType",
        "ActualDate",
        "INStkUnitCost",
        "UnitPrice",
        "KeyID"
      ],
      "type": "object",
      "properties": {
        "Co": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "BatchId": {
          "type": "integer",
          "description": ""
        },
        "BatchSeq": {
          "type": "integer",
          "description": ""
        },
        "Source": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "Equipment": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "EMTrans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "BatchTransType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "EMTransType": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "EMGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CostCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "EMCostType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "ActualDate": {
          "type": "string",
          "description": ""
        },
        "GLCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "GLTransAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "GLOffsetAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MatlGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "INCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "INLocation": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Material": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "INStkUnitCost": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": "string",
          "description": ""
        },
        "INStkECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "INStkUM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Units": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Dollars": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UnitPrice": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": "string",
          "description": ""
        },
        "PerECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "TotalCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OffsetGLCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "MeterReadDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReplacedHourReading": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PreviousHourMeter": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CurrentHourMeter": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PreviousTotalHourMeter": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CurrentTotalHourMeter": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReplacedOdoReading": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PreviousOdometer": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CurrentOdometer": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PreviousTotalOdometer": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CurrentTotalOdometer": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MeterMiles": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MeterHrs": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "TaxCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "TaxGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldSource": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldEquipment": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldEMTrans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldBatchTransType": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldEMTransType": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldEMGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldCostCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldEMCostType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldActualDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldGLCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldGLTransAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldGLOffsetAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldMatlGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldINCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldINLocation": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldMaterial": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldINStkUnitCost": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldINStkECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldINStkUM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldUM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldDollars": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldUnitPrice": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldPerECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldTotalCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldOffsetGLCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldMeterReadDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldReplacedHourReading": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldPreviousHourMeter": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldCurrentHourMeter": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldPreviousTotalHourMeter": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldCurrentTotalHourMeter": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldReplacedOdoReading": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldPreviousOdometer": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldCurrentOdometer": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldPreviousTotalOdometer": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldCurrentTotalOdometer": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldMeterMiles": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldMeterHrs": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldTaxCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldTaxGroup": {
          "type": [
            "integer",
            "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."
        }
      }
    }
  }
}