{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-change-orders-with-keys-schema.json",
  "title": "data_change_orders_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_change_orders_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_change_orders"
    }
  ],
  "$defs": {
    "data_change_orders": {
      "required": [
        "SLCo",
        "Mth",
        "SLTrans",
        "SLItem",
        "SLChangeOrder",
        "ActDate",
        "UM",
        "ChangeCurUnits",
        "ChangeCurUnitCost",
        "ChangeCurCost",
        "BatchId",
        "PostedDate",
        "PurgeYN",
        "KeyID"
      ],
      "type": "object",
      "properties": {
        "SLCo": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "SLTrans": {
          "type": "integer",
          "description": ""
        },
        "SL": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SLItem": {
          "type": "integer",
          "description": ""
        },
        "SLChangeOrder": {
          "type": "integer",
          "description": ""
        },
        "AppChangeOrder": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ActDate": {
          "type": "string",
          "description": ""
        },
        "Description": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UM": {
          "maxLength": 3,
          "type": "string",
          "description": ""
        },
        "ChangeCurUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "ChangeCurUnitCost": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": "string",
          "description": ""
        },
        "ChangeCurCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "BatchId": {
          "type": "integer",
          "description": ""
        },
        "PostedDate": {
          "type": "string",
          "description": ""
        },
        "InUseBatchId": {
          "type": [
            "integer",
            "null"
          ],
          "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": ""
        },
        "PurgeYN": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "ChgToTax": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ChgToJCCmtdTax": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "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."
        }
      }
    }
  }
}