Returns a list of materials for the specified business unit.
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.
[- {
- "id": "1d66cad1-98a4-4acc-b9b2-b3f9ee0de65f",
- "businessUnitId": "07c00dc0-aecf-45bd-bf9e-74628188b3c7",
- "isDeleted": false,
- "code": "IF-Z",
- "description": "Import Fill",
- "isStockpiled": false,
- "heavyBidCode": "HB1"
}
]
Creates a material for the specified business unit.
The material to create.
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": "IF-Z",
- "description": "Import Fill",
- "isStockpiled": false,
- "heavyBidCode": "HB1"
}
{- "id": "1d66cad1-98a4-4acc-b9b2-b3f9ee0de65f",
- "businessUnitId": "07c00dc0-aecf-45bd-bf9e-74628188b3c7",
- "isDeleted": false,
- "code": "IF-Z",
- "description": "Import Fill",
- "isStockpiled": false,
- "heavyBidCode": "HB1"
}
Updates an existing material with the specified id.
The material to be updated.
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": "IF-Z",
- "description": "Import Fill",
- "isStockpiled": false,
- "heavyBidCode": "HB1"
}
Deletes a material with the specified id.
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.
Returns a list of job materials (i.e., a physical material that can be used on one or more 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.
[- {
- "id": "58236983-650d-4528-a9f3-f773a0366ecd",
- "code": "IF-Z",
- "isStockpiled": false,
- "heavyBidCode": "HB1",
- "jobId": "77de8c55-1b14-4f43-afc2-9f2edb6d64fb",
- "description": "Import Fill",
- "isDeleted": false,
- "materialId": "1d66cad1-98a4-4acc-b9b2-b3f9ee0de65f",
- "salesTaxPercent": 8.25,
- "tmRate": 150.3,
- "unitCost": 20.6,
- "unitOfMeasure": "TON",
- "accountingCode": "M-ACC",
- "isDiscontinued": false
}
]
Creates a job material on the specified job.
The job material to be created.
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.
{- "materialId": "caa95ace-7aa3-4a0c-af85-f33e18a9773e",
- "description": "Job material",
- "salesTaxPercent": 10.1,
- "tmRate": 7.5,
- "unitCost": 20.5,
- "unitOfMeasure": "CY",
- "accountingCode": "M-ACC",
- "isDiscontinued": false
}
{- "id": "58236983-650d-4528-a9f3-f773a0366ecd",
- "code": "IF-Z",
- "isStockpiled": false,
- "heavyBidCode": "HB1",
- "jobId": "77de8c55-1b14-4f43-afc2-9f2edb6d64fb",
- "description": "Import Fill",
- "isDeleted": false,
- "materialId": "1d66cad1-98a4-4acc-b9b2-b3f9ee0de65f",
- "salesTaxPercent": 8.25,
- "tmRate": 150.3,
- "unitCost": 20.6,
- "unitOfMeasure": "TON",
- "accountingCode": "M-ACC",
- "isDiscontinued": false
}
Returns a job material with the specified id.
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.
The specified resource is not found.
{- "id": "58236983-650d-4528-a9f3-f773a0366ecd",
- "code": "IF-Z",
- "isStockpiled": false,
- "heavyBidCode": "HB1",
- "jobId": "77de8c55-1b14-4f43-afc2-9f2edb6d64fb",
- "description": "Import Fill",
- "isDeleted": false,
- "materialId": "1d66cad1-98a4-4acc-b9b2-b3f9ee0de65f",
- "salesTaxPercent": 8.25,
- "tmRate": 150.3,
- "unitCost": 20.6,
- "unitOfMeasure": "TON",
- "accountingCode": "M-ACC",
- "isDiscontinued": false
}
Updates an existing job material with the specified id.
The job material to be updated.
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.
{- "materialId": "caa95ace-7aa3-4a0c-af85-f33e18a9773e",
- "description": "Job material",
- "salesTaxPercent": 10.1,
- "tmRate": 7.5,
- "unitCost": 20.5,
- "unitOfMeasure": "CY",
- "accountingCode": "M-ACC",
- "isDiscontinued": false
}
Deletes the job material with the specified id.
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.
Returns a list of installed materials.
The request object for getting installed materials.
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.
{- "jobIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "jobTagIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "foremanIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "cursor": "string",
- "limit": 0,
- "businessUnitId": "214dd610-35bc-4504-9246-7073493e0400",
- "costCodeIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "modifiedSince": "2019-08-24T14:15:22Z",
- "onlyTM": true
}
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "jobMaterial": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "unknown",
- "code": "string",
- "description": "string"
}, - "job": {
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "jobCode": "string",
- "jobDescription": "string"
}, - "costCode": {
- "costCodeId": "ce2fe38c-f5a9-477c-ad3e-323596814295",
- "costCodeCode": "string",
- "costCodeDescription": "string"
}, - "foreman": {
- "employeeId": "b0e78c8f-8c8b-4410-8293-9239e39d9e17",
- "employeeCode": "string",
- "employeeFirstName": "string",
- "employeeLastName": "string"
}, - "date": "2019-08-24T14:15:22Z",
- "jobMaterialId": "121bf9e8-b20c-4bb0-82eb-ad82e2ef4c6e",
- "consumedQuantity": 0,
- "consumedCost": 0,
- "installedQuantity": 0,
- "unitOfMeasure": "string",
- "purchaseOrder": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string"
}, - "purchaseOrderItemId": "1dcac19c-bf9a-4a75-a291-f5e2fabfc5d7",
- "purchaseOrderId": "84a099d9-2935-4997-a6ac-0d3ee9bbef72",
- "vendor": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string"
}, - "referenceNumber": "string",
- "invoiceNumber": "string",
- "isInvoiced": true,
- "isTm": true,
- "costCodeTransactionTags": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string",
- "description": "string",
- "note": "string",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "groupCode": "string"
}
], - "loads": 0,
- "note": "string",
- "unitCost": 0,
- "salesTax": 0,
- "lastModifiedDateTime": "2019-08-24T14:15:22Z",
- "lastModifiedPreciseDateTime": "2019-08-24T14:15:22Z",
- "linkedReceivedMaterialIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "metadata": {
- "nextCursor": "string"
}
}
Returns a list of received materials.
The request object for getting received materials.
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.
{- "modifiedSince": "2021-01-01T00:00:00",
- "businessUnitId": "81aa06f2-46ec-457f-9b35-ae6e05d4dbef",
- "jobIds": [
- "565947f8-528c-4667-9351-8db02eab1157",
- "8d6b8063-0465-48c1-b507-671ef42e29a9"
], - "foremanIds": [
- "bc962857-61fb-42cc-8e95-dabb1e55268e",
- "d01d3fb9-c579-4cb7-b405-60c7eaa791ec"
], - "startDate": "2021-01-01T00:00:00",
- "endDate": "2021-12-31T00:00:00",
- "limit": 500
}
{- "results": [
- {
- "id": "7e75249f-a845-45d8-b1a2-db412ea8bbf5",
- "jobMaterial": {
- "id": "173633f0-bbd6-49df-9117-7425e904f7d5",
- "type": "material",
- "code": "MAT 1",
- "description": "Material 1"
}, - "foreman": {
- "employeeId": "d01d3fb9-c579-4cb7-b405-60c7eaa791ec",
- "employeeCode": "FOREMANCODE",
- "employeeFirstName": "Foreman",
- "employeeLastName": "Name"
}, - "job": {
- "jobId": "8d6b8063-0465-48c1-b507-671ef42e29a9",
- "jobCode": "HCSS-BLDG3",
- "jobDescription": "Third building on the HCSS campus"
}, - "businessUnitId": "7c1f9feb-0bd0-400e-956a-a8c487f70e79",
- "date": "2019-01-01",
- "referenceNumber": "1AB7DSD0",
- "invoiceNumber": "1AB7DSD0",
- "isInvoiced": false,
- "quantity": 15.25,
- "unitOfMeasure": "YARD",
- "purchaseOrder": {
- "id": "cebf87d0-d8df-48c1-9ed8-759b1f194f93",
- "name": "PO2",
- "description": "Unassigned Materials and Supplies"
}, - "purchaseOrderDetailId": "c3023c2c-2188-4d00-9a34-48ae2ac9a516",
- "vendor": {
- "id": "309dcd94-2c42-43b8-9d71-ed61560a6d2e",
- "name": "Home Depot",
- "description": "Home improvement retailer"
}, - "costCodeTransactionTags": [
- {
- "id": "799709ba-282c-4327-9f3e-a161e999d825",
- "code": "CCTAG",
- "description": "Cost Code Tag",
- "note": "This is a note",
- "groupId": "d5d4e680-e130-4812-b068-f1fe5def48a1",
- "groupCode": "TAGGROUP"
}
], - "loads": 1,
- "note": "This is a note",
- "unitCost": 15,
- "salesTax": 0.085,
- "linkedInstalledMaterialIds": [
- "95d0c5ac-f95f-4215-824a-bd3d379d84e2"
]
}
], - "metadata": {
- "nextCursor": "gCpeihFB1whbiZt1qIf1TbhL8TPbeRP2"
}
}