Creates a new cost code, using its code as a unique identifier on the specified job and business unit.
For help with authorization, please visit https://developer.hcssapps.com/getting-started/request-tokens
The cost code.
Success
Bad Request. See https://developer.hcssapps.com/getting-started/troubleshoot-bad-request for more information.
Unauthorized. See https://developer.hcssapps.com/getting-started/troubleshoot-unauthorized for more information.
Forbidden. See https://developer.hcssapps.com/getting-started/troubleshoot-forbidden for more information.
{- "code": "8530000z",
- "businessUnitCode": "manager",
- "jobCode": "Z3924",
- "id": "af8d7c49-35de-4266-b603-02f238f9fae1",
- "quantity": 1.5,
- "description": "Purchase Pipe Materials",
- "unitOfMeasurement": "LS",
- "laborHours": 0.5,
- "equipmentHours": 0.5,
- "laborDollars": 0.5,
- "equipmentDollars": 0.5,
- "materialDollars": 60311.92,
- "subcontractDollars": 0.5,
- "supplyDollars": 0.5,
- "tags": [
- {
- "group": "Cementation",
- "tag": "MIXING",
- "tagDescription": "Mixing concrete",
- "id": "ddd792d9-6bd0-4c5d-bfd0-04feae7376b1"
}
], - "status": "A",
- "accountingCode": "135z",
- "category": "Category",
- "criticalPathMethod": "CPM Code",
- "generalLedgerAccount": "GL Acct",
- "subJob": "Sub-Job",
- "workBreakdownStructureCode": "WBS Code",
- "note": "12P - 413",
- "estimateResources": "01z",
- "historyCode": "HistCode",
- "historicalBidItem": "HistBidItem",
- "heavyBidEstimateCode": "HBEstiMateCode",
- "isTM": false,
- "workType": "G",
- "payItemNumber": "PayItem1",
- "payItemFactor": 2.1,
- "isPayItemDriver": true,
- "accountingTemplateName": "default",
- "isCapExpected": false,
- "isHiddenFromMobile": false
}Returns a list of cost codes for the specified business unit code, job code, and accounting template.
For help with authorization, please visit https://developer.hcssapps.com/getting-started/request-tokens
Success
Bad Request. See https://developer.hcssapps.com/getting-started/troubleshoot-bad-request for more information.
Unauthorized. See https://developer.hcssapps.com/getting-started/troubleshoot-unauthorized for more information.
Forbidden. See https://developer.hcssapps.com/getting-started/troubleshoot-forbidden for more information.
[- {
- "code": "8530000z",
- "businessUnitCode": "manager",
- "jobCode": "Z3924",
- "id": "af8d7c49-35de-4266-b603-02f238f9fae1",
- "quantity": 1.5,
- "description": "Purchase Pipe Materials",
- "unitOfMeasurement": "LS",
- "laborHours": 0.5,
- "equipmentHours": 0.5,
- "laborDollars": 0.5,
- "equipmentDollars": 0.5,
- "materialDollars": 60311.92,
- "subcontractDollars": 0.5,
- "supplyDollars": 0.5,
- "tags": [
- {
- "group": "Cementation",
- "tag": "MIXING",
- "tagDescription": "Mixing concrete",
- "id": "ddd792d9-6bd0-4c5d-bfd0-04feae7376b1"
}
], - "status": "A",
- "accountingCode": "135z",
- "category": "Category",
- "criticalPathMethod": "CPM Code",
- "generalLedgerAccount": "GL Acct",
- "subJob": "Sub-Job",
- "workBreakdownStructureCode": "WBS Code",
- "note": "12P - 413",
- "estimateResources": "01z",
- "historyCode": "HistCode",
- "historicalBidItem": "HistBidItem",
- "heavyBidEstimateCode": "HBEstiMateCode",
- "isTM": false,
- "workType": "G",
- "payItemNumber": "PayItem1",
- "payItemFactor": 2.1,
- "isPayItemDriver": true,
- "accountingTemplateName": "default",
- "isCapExpected": false,
- "isHiddenFromMobile": false
}
]This call also requires heavyjob:write scope.
For help with authorization, please visit https://developer.hcssapps.com/getting-started/request-tokens
The list of cost codes.
No Content
Bad Request. See https://developer.hcssapps.com/getting-started/troubleshoot-bad-request for more information.
Unauthorized. See https://developer.hcssapps.com/getting-started/troubleshoot-unauthorized for more information.
Forbidden. See https://developer.hcssapps.com/getting-started/troubleshoot-forbidden for more information.
[- {
- "businessUnitCode": "MANAGER",
- "jobCode": "ROADPAVING",
- "code": "COSTCODE1",
- "status": "A",
- "description": "First cost code.",
- "quantity": 1000.5,
- "unitOfMeasure": "EA",
- "laborHours": 100.65,
- "equipmentHours": 45.2,
- "laborDollars": 321234.65,
- "equipmentDollars": 7656.2,
- "materialDollars": 6865.8,
- "subcontractDollars": 123.6,
- "supplyDollars": 21721.7,
- "note": "cost code note.",
- "historicalActivityCode": "97HKG1",
- "isTm": true,
- "isHiddenFromMobile": false,
- "isCapExpected": true
}
]After the result of this operation, the server entity will match exactly what is sent here. (i.e., excluded fields will be interpreted as "not needed" and deleted from the server)
For help with authorization, please visit https://developer.hcssapps.com/getting-started/request-tokens
The cost code.
Success
Bad Request. See https://developer.hcssapps.com/getting-started/troubleshoot-bad-request for more information.
Unauthorized. See https://developer.hcssapps.com/getting-started/troubleshoot-unauthorized for more information.
Forbidden. See https://developer.hcssapps.com/getting-started/troubleshoot-forbidden for more information.
{- "code": "8530000z",
- "businessUnitCode": "manager",
- "jobCode": "Z3924",
- "id": "af8d7c49-35de-4266-b603-02f238f9fae1",
- "quantity": 1.5,
- "description": "Purchase Pipe Materials",
- "unitOfMeasurement": "LS",
- "laborHours": 0.5,
- "equipmentHours": 0.5,
- "laborDollars": 0.5,
- "equipmentDollars": 0.5,
- "materialDollars": 60311.92,
- "subcontractDollars": 0.5,
- "supplyDollars": 0.5,
- "tags": [
- {
- "group": "Cementation",
- "tag": "MIXING",
- "tagDescription": "Mixing concrete",
- "id": "ddd792d9-6bd0-4c5d-bfd0-04feae7376b1"
}
], - "status": "A",
- "accountingCode": "135z",
- "category": "Category",
- "criticalPathMethod": "CPM Code",
- "generalLedgerAccount": "GL Acct",
- "subJob": "Sub-Job",
- "workBreakdownStructureCode": "WBS Code",
- "note": "12P - 413",
- "estimateResources": "01z",
- "historyCode": "HistCode",
- "historicalBidItem": "HistBidItem",
- "heavyBidEstimateCode": "HBEstiMateCode",
- "isTM": false,
- "workType": "G",
- "payItemNumber": "PayItem1",
- "payItemFactor": 2.1,
- "isPayItemDriver": true,
- "accountingTemplateName": "default",
- "isCapExpected": false,
- "isHiddenFromMobile": false
}