{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-transaction-lines-with-keys-schema.json",
  "title": "data_transaction_lines_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-ar-openapi.yml#/components/schemas/data_transaction_lines_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_transaction_lines"
    }
  ],
  "$defs": {
    "data_transaction_lines": {
      "required": [
        "ARCo",
        "Mth",
        "ARTrans",
        "ARLine",
        "LineType",
        "Amount",
        "TaxBasis",
        "TaxAmount",
        "RetgPct",
        "Retainage",
        "DiscOffered",
        "TaxDisc",
        "DiscTaken",
        "ApplyMth",
        "ApplyTrans",
        "ApplyLine",
        "PurgeFlag",
        "FinanceChg",
        "KeyID",
        "RetgTax"
      ],
      "type": "object",
      "properties": {
        "ARCo": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "ARTrans": {
          "type": "integer",
          "description": ""
        },
        "ARLine": {
          "type": "integer",
          "description": ""
        },
        "RecType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "LineType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "Description": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "GLCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "GLAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "TaxGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "TaxCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Amount": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "TaxBasis": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "TaxAmount": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "RetgPct": {
          "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
          "type": "string",
          "description": ""
        },
        "Retainage": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "DiscOffered": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "TaxDisc": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "DiscTaken": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ApplyMth": {
          "type": "string",
          "description": ""
        },
        "ApplyTrans": {
          "type": "integer",
          "description": ""
        },
        "ApplyLine": {
          "type": "integer",
          "description": ""
        },
        "JCCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Contract": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Item": {
          "maxLength": 16,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ContractUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Job": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PhaseGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Phase": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CostType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "UM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JobUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JobHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ActDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "INCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Loc": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MatlGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Material": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UnitPrice": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MatlUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CustJob": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CustPO": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "EMCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Equipment": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "EMGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CostCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "EMCType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CompType": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Component": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PurgeFlag": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "FinanceChg": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "rptApplyMth": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "rptApplyTrans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "RetgTax": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "SMWorkCompletedID": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMAgreementBillingScheduleID": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMWorkOrder": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMWorkOrderScope": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMCostType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMGLCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMGLCostAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SMGLCostWIPAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SMGLRevAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SMGLRevWIPAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SMTrackingWIP": {
          "enum": [
            "Y",
            "N",
            null
          ],
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SMScopeCompleted": {
          "enum": [
            "Y",
            "N",
            null
          ],
          "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."
        }
      }
    }
  }
}