{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-transactions-with-keys-schema.json",
  "title": "data_transactions_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-gl-openapi.yml#/components/schemas/data_transactions_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_transactions"
    }
  ],
  "$defs": {
    "data_transactions": {
      "required": [
        "GLCo",
        "Mth",
        "GLTrans",
        "GLAcct",
        "Jrnl",
        "GLRef",
        "SourceCo",
        "Source",
        "ActDate",
        "DatePosted",
        "BatchId",
        "Amount",
        "RevStatus",
        "Adjust",
        "Purge"
      ],
      "type": "object",
      "properties": {
        "GLCo": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": "Format: YYYY-MM-01."
        },
        "GLTrans": {
          "type": "integer",
          "description": ""
        },
        "GLAcct": {
          "maxLength": 20,
          "type": "string",
          "description": ""
        },
        "Jrnl": {
          "maxLength": 2,
          "type": "string",
          "description": ""
        },
        "GLRef": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "SourceCo": {
          "type": "integer",
          "description": ""
        },
        "Source": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "ActDate": {
          "type": "string",
          "description": "Format: YYYY-MM-DD"
        },
        "DatePosted": {
          "type": "string",
          "description": "Format: YYYY-MM-DD"
        },
        "Description": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BatchId": {
          "type": "integer",
          "description": ""
        },
        "Amount": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "RevStatus": {
          "type": "integer",
          "description": ""
        },
        "Adjust": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "InUseBatchId": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Purge": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "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": ""
        },
        "SrcTable": {
          "maxLength": 128,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SrcKeyID": {
          "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."
        }
      }
    }
  }
}