This call returns a list of cost codes with accounting values, if available, given business unit, job, cost code or accounting template.
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.
{- "results": [
- {
- "accountingCode": "Account Code 1",
- "code": "COSTCODE",
- "description": "This is a cost code.",
- "businessUnitId": "03b9b2d2-9af6-4bc5-9517-fd0d8e448d0c",
- "businessUnitCode": "BUCODE",
- "jobId": "78d3a94d-8e3b-4b7f-a833-ccb6bd3d2a52",
- "jobCode": "JOBCODE",
- "isHiddenFromMobile": false,
- "quantityDrivingEntityType": "none",
- "payItemId": "d40f89e3-6729-4fb2-b452-e4639af0ce2a",
- "payItem": "pay item",
- "payItemFactor": 2,
- "isPayItemDriver": true,
- "quantity": 100.12,
- "unitOfMeasure": "EA",
- "status": "active",
- "historicalActivityCode": "",
- "historicalBiditem": "",
- "heavyBidEstimateCode": "",
- "isCapExpected": true,
- "isTm": false,
- "workersCompId": "39beef34-21dc-4f8c-a894-37de8b4563f0",
- "workersCompCode": "WORKERSCOMPCODE",
- "workersCompDescription": "Workers Comp Description",
- "laborHours": 5.5,
- "equipmentHours": 2.5,
- "laborDollars": 10000.25,
- "equipmentDollars": 2500.75,
- "materialDollars": 2890.1,
- "subcontractDollars": 1500.4,
- "supplyDollars": 8989.3,
- "customCostTypeDollars": [
- {
- "costCategoryId": "5147d92e-159e-44f4-bfeb-361eae15388d",
- "costCategoryCode": "HAUL",
- "costCategoryDescription": "Debris removal.",
- "budgetedCost": 2322.1
}
], - "isDeleted": false,
- "id": "85f16824-83a3-4c49-a402-0b48c607e1cb"
}
], - "metadata": {
- "nextCursor": "gCpeihFB1whbiZt1qIf1TbhL8TPbeRP2"
}
}
The code will be uppercased and trimmed of whitespace.
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.
{- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "code": "string",
- "description": "string",
- "quantity": 0,
- "unitOfMeasure": "string",
- "laborHours": 0,
- "equipmentHours": 0,
- "laborDollars": 0,
- "equipmentDollars": 0,
- "materialDollars": 0,
- "subcontractDollars": 0,
- "status": "active",
- "note": "string",
- "historicalActivityCode": "string",
- "historicalBiditem": "string",
- "heavyBidEstimateCode": "string",
- "isTm": true,
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "duration": 0,
- "isHiddenFromMobile": true,
- "isCapExpected": true,
- "payItemId": "b2d8a764-f85b-4480-b0d8-9a597eeacb8a",
- "payItemFactor": 0,
- "isPayItemDriver": true,
- "accountingCode": "string",
- "category": "string",
- "cpm": "string",
- "glAcct": "string",
- "subJob": "string",
- "wbsCode": "string"
}
{- "accountingCode": "Account Code 1",
- "code": "COSTCODE",
- "description": "This is a cost code.",
- "businessUnitId": "03b9b2d2-9af6-4bc5-9517-fd0d8e448d0c",
- "businessUnitCode": "BUCODE",
- "jobId": "78d3a94d-8e3b-4b7f-a833-ccb6bd3d2a52",
- "jobCode": "JOBCODE",
- "isHiddenFromMobile": false,
- "quantityDrivingEntityType": "none",
- "payItemId": "d40f89e3-6729-4fb2-b452-e4639af0ce2a",
- "payItem": "pay item",
- "payItemFactor": 2,
- "isPayItemDriver": true,
- "quantity": 100.12,
- "unitOfMeasure": "EA",
- "status": "active",
- "historicalActivityCode": "",
- "historicalBiditem": "",
- "heavyBidEstimateCode": "",
- "isCapExpected": true,
- "isTm": false,
- "workersCompId": "39beef34-21dc-4f8c-a894-37de8b4563f0",
- "workersCompCode": "WORKERSCOMPCODE",
- "workersCompDescription": "Workers Comp Description",
- "laborHours": 5.5,
- "equipmentHours": 2.5,
- "laborDollars": 10000.25,
- "equipmentDollars": 2500.75,
- "materialDollars": 2890.1,
- "subcontractDollars": 1500.4,
- "supplyDollars": 8989.3,
- "customCostTypeDollars": [
- {
- "costCategoryId": "5147d92e-159e-44f4-bfeb-361eae15388d",
- "costCategoryCode": "HAUL",
- "costCategoryDescription": "Debris removal.",
- "budgetedCost": 2322.1
}
], - "isDeleted": false,
- "id": "85f16824-83a3-4c49-a402-0b48c607e1cb"
}
Creates or updates cost codes on the specified job.
This endpoint currently only supports the adding or updating of cost codes across a single job. If more than one job ID is specified, the request will be rejected.
The list of cost codes to be added or updated.
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.
[- {
- "supplyDollars": 8989.3,
- "removePayItem": false,
- "jobId": "8033a2c3-c2b3-4ec0-acb0-0d21cd7446ac",
- "code": "COSTCODE1",
- "description": "Cost Code 1 Desc.",
- "quantity": 100.5,
- "unitOfMeasure": "TON",
- "laborHours": 5.5,
- "equipmentHours": 2.5,
- "laborDollars": 10000.25,
- "equipmentDollars": 2500.75,
- "materialDollars": 2890.1,
- "subcontractDollars": 1500.4,
- "status": "active",
- "note": "Cost code note.",
- "historicalActivityCode": "09091F",
- "historicalBiditem": "HBI",
- "heavyBidEstimateCode": "HBEC",
- "isTm": true,
- "startDate": "2024-12-30T03:01:15Z",
- "endDate": "2025-12-30T03:01:15Z",
- "duration": 44.5,
- "isHiddenFromMobile": false,
- "isCapExpected": false,
- "payItemId": "0e151185-1262-4a83-bc99-6bfe43f0e866",
- "payItemFactor": 1,
- "isPayItemDriver": true
}
]
This call returns a list of cost codes with accounting values, if available, given business unit, job, cost code, accounting template or modified since date.
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.
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string",
- "description": "string",
- "businessUnitId": "214dd610-35bc-4504-9246-7073493e0400",
- "businessUnitCode": "string",
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "duration": 0,
- "jobCode": "string",
- "isHiddenFromMobile": true,
- "quantityDrivingEntityType": "none",
- "quantityDrivingEntityId": "120b6675-68ea-4ebd-b3b3-75b8770df979",
- "payItems": [
- {
- "payItemId": "b2d8a764-f85b-4480-b0d8-9a597eeacb8a",
- "payItemCode": "string",
- "payItemDescription": "string",
- "payItemFactor": 0,
- "isPayItemDriver": true,
- "payItemOrder": "string"
}
], - "quantity": 0,
- "unitOfMeasure": "string",
- "status": "active",
- "historicalActivityCode": "string",
- "historicalBiditem": "string",
- "heavyBidEstimateCode": "string",
- "isCapExpected": true,
- "isTm": true,
- "workersCompId": "36fbf5fc-29c6-4384-8796-37e860fe1368",
- "workersCompCode": "string",
- "workersCompDescription": "string",
- "laborHours": 0,
- "equipmentHours": 0,
- "laborDollars": 0,
- "equipmentDollars": 0,
- "materialDollars": 0,
- "subcontractDollars": 0,
- "supplyDollars": 0,
- "customCostTypeDollars": [
- {
- "budgetedCost": 0,
- "costCategoryId": "e50a5e84-c4f1-4cd7-bfb6-9c2d59068511",
- "costCategoryCode": "string",
- "costCategoryDescription": "string"
}
], - "isDeleted": true,
- "accountingCode": "string",
- "category": "string",
- "cpm": "string",
- "glAcct": "string",
- "subJob": "string",
- "wbsCode": "string"
}
], - "metadata": {
- "nextCursor": "string"
}
}
This call returns a list of cost codes for the specified business unit, jobs, cost codes, or accounting template
The request object for getting cost codes.
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.
{- "businessUnitId": "d03c8427-83f3-4f71-8eba-e89a7ea8ec1a",
- "jobIds": [
- "6d4f91a3-5871-44af-9c0c-7ed6492697ae",
- "ed631a56-af60-45c2-bd2b-3223c26c0513"
], - "costCodeIds": [
- "db343a7e-e298-4754-ba53-21bb3256c3fd",
- "5b8e1c2e-ce62-4671-989c-1b0310167850"
], - "cursor": "gCpeihFB1whbiZt1qIf1TbhL8TPbeRP2",
- "accountingTemplateName": "Accounting Template",
- "limit": 500
}
{- "results": [
- {
- "accountingCode": "Account Code 1",
- "code": "COSTCODE",
- "description": "This is a cost code.",
- "businessUnitId": "03b9b2d2-9af6-4bc5-9517-fd0d8e448d0c",
- "businessUnitCode": "BUCODE",
- "jobId": "78d3a94d-8e3b-4b7f-a833-ccb6bd3d2a52",
- "jobCode": "JOBCODE",
- "isHiddenFromMobile": false,
- "quantityDrivingEntityType": "none",
- "payItemId": "d40f89e3-6729-4fb2-b452-e4639af0ce2a",
- "payItem": "pay item",
- "payItemFactor": 2,
- "isPayItemDriver": true,
- "quantity": 100.12,
- "unitOfMeasure": "EA",
- "status": "active",
- "historicalActivityCode": "",
- "historicalBiditem": "",
- "heavyBidEstimateCode": "",
- "isCapExpected": true,
- "isTm": false,
- "workersCompId": "39beef34-21dc-4f8c-a894-37de8b4563f0",
- "workersCompCode": "WORKERSCOMPCODE",
- "workersCompDescription": "Workers Comp Description",
- "laborHours": 5.5,
- "equipmentHours": 2.5,
- "laborDollars": 10000.25,
- "equipmentDollars": 2500.75,
- "materialDollars": 2890.1,
- "subcontractDollars": 1500.4,
- "supplyDollars": 8989.3,
- "customCostTypeDollars": [
- {
- "costCategoryId": "5147d92e-159e-44f4-bfeb-361eae15388d",
- "costCategoryCode": "HAUL",
- "costCategoryDescription": "Debris removal.",
- "budgetedCost": 2322.1
}
], - "isDeleted": false,
- "id": "85f16824-83a3-4c49-a402-0b48c607e1cb"
}
], - "metadata": {
- "nextCursor": "gCpeihFB1whbiZt1qIf1TbhL8TPbeRP2"
}
}
VOLATILE
The query parameters and responses are likely to change. Do not use this operation for mission-critical applications yet.
This call returns a list of cost codes for the specified business unit, jobs, job tags, and cost codes
The request object for getting cost codes.
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.
{- "businessUnitId": "214dd610-35bc-4504-9246-7073493e0400",
- "jobIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "jobTagIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "costCodeIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "cursor": "string",
- "limit": 0
}
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string",
- "description": "string",
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "jobCode": "string",
- "jobDescription": "string",
- "status": "active"
}
], - "metadata": {
- "nextCursor": "string"
}
}
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.
[- {
- "costCodeId": "cdc4561c-a864-404d-abd8-986daa185b12",
- "customCostTypeId": "6d89d035-b418-4f8e-9402-2cbf5f1060c9",
- "budgetedCost": 1000.25
}
]