{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-imp-est-materials-with-keys-schema.json",
  "title": "data_imp_est_materials_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-pm-openapi.yml#/components/schemas/data_imp_est_materials_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_imp_est_materials"
    }
  ],
  "$defs": {
    "data_imp_est_materials": {
      "required": [
        "ImportId",
        "Sequence",
        "PhaseGroup",
        "MatlGroup",
        "VendorGroup",
        "PMCo"
      ],
      "type": "object",
      "properties": {
        "ImportId": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "Sequence": {
          "type": "integer",
          "description": ""
        },
        "Item": {
          "maxLength": 16,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PhaseGroup": {
          "type": "integer",
          "description": ""
        },
        "Phase": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CostType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "MatlGroup": {
          "type": "integer",
          "description": ""
        },
        "Material": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MatlDescription": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "VendorGroup": {
          "type": "integer",
          "description": ""
        },
        "Vendor": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "UM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Units": {
          "maxLength": 12,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UnitCost": {
          "maxLength": 16,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Amount": {
          "maxLength": 12,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportItem": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportPhase": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportCostType": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportMaterial": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportVendor": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportUM": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportMisc1": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportMisc2": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ImportMisc3": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Errors": {
          "maxLength": 255,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UniqueAttchID": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PMCo": {
          "type": "integer",
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "MatlOption": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "RecvYN": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Location": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "TaxGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "TaxCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "TaxType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SendFlag": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MSCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Quote": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "INCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Supplier": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        }
      }
    }
  }
}