{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-cost-detail-with-keys-schema.json",
  "title": "data_cost_detail_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-jc-openapi.yml#/components/schemas/data_cost_detail_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_cost_detail"
    }
  ],
  "$defs": {
    "data_cost_detail": {
      "required": [
        "JCCo",
        "Mth",
        "CostTrans",
        "Job",
        "PhaseGroup",
        "Phase",
        "CostType",
        "PostedDate",
        "ActualDate",
        "JCTransType",
        "Source",
        "ReversalStatus",
        "ActualUnitCost",
        "ActualHours",
        "ActualUnits",
        "ActualCost",
        "ProgressCmplt",
        "EstHours",
        "EstUnits",
        "EstCost",
        "ProjHours",
        "ProjUnits",
        "ProjCost",
        "ForecastHours",
        "ForecastUnits",
        "ForecastCost",
        "PostedUnits",
        "PostedUnitCost",
        "PostTotCmUnits",
        "PostRemCmUnits",
        "TotalCmtdUnits",
        "TotalCmtdCost",
        "RemainCmtdUnits",
        "RemainCmtdCost",
        "DeleteFlag",
        "INStdUnitCost",
        "TaxBasis",
        "TaxAmt",
        "KeyID",
        "TotalCmtdTax",
        "RemCmtdTax"
      ],
      "type": "object",
      "properties": {
        "JCCo": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "CostTrans": {
          "type": "integer",
          "description": ""
        },
        "Job": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "PhaseGroup": {
          "type": "integer",
          "description": ""
        },
        "Phase": {
          "maxLength": 20,
          "type": "string",
          "description": ""
        },
        "CostType": {
          "type": "integer",
          "description": ""
        },
        "PostedDate": {
          "type": "string",
          "description": ""
        },
        "ModifiedDate": {
          "type": "string",
          "description": ""
        },
        "ActualDate": {
          "type": "string",
          "description": ""
        },
        "JCTransType": {
          "maxLength": 2,
          "type": "string",
          "description": ""
        },
        "Source": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "Description": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BatchId": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "InUseBatchId": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "GLCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "GLTransAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "GLOffsetAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReversalStatus": {
          "type": "integer",
          "description": ""
        },
        "UM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ActualUnitCost": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": "string",
          "description": ""
        },
        "PerECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ActualHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ActualUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "ActualCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ProgressCmplt": {
          "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,4})?$",
          "type": "string",
          "description": ""
        },
        "EstHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "EstUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "EstCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ProjHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ProjUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "ProjCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ForecastHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ForecastUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "ForecastCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "PostedUM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PostedUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "PostedUnitCost": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": "string",
          "description": ""
        },
        "PostedECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PostTotCmUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "PostRemCmUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "TotalCmtdUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "TotalCmtdCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "RemainCmtdUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "RemainCmtdCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "DeleteFlag": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "AllocCode": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "ACO": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ACOItem": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PRCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Employee": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Craft": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Class": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Crew": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "EarnFactor": {
          "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,6})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "EarnType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Shift": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "LiabilityType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "VendorGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Vendor": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "APCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "APTrans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "APLine": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "APRef": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PO": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "POItem": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SL": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SLItem": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "MO": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MOItem": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "MatlGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Material": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "INCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Loc": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "INStdUnitCost": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": "string",
          "description": ""
        },
        "INStdECM": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "INStdUM": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MSTrans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "MSTicket": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JBBillStatus": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JBBillMonth": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JBBillNumber": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "EMCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "EMEquip": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "EMRevCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "EMGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "EMTrans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "TaxType": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "TaxGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "TaxCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "TaxBasis": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "TaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "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": ""
        },
        "SrcJCCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "TotalCmtdTax": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "RemCmtdTax": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "OffsetGLCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "POItemLine": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMWorkCompletedID": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMWorkOrder": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "SMScope": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "PMCostProjection": {
          "enum": [
            "Y",
            "N",
            null
          ],
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PORDKeyID": {
          "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."
        }
      }
    }
  }
}