Returns a list of subcontract items 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": "58236983-650d-4528-a9f3-f773a0366ecd",
- "businessUnitId": "07c00dc0-aecf-45bd-bf9e-74628188b3c7",
- "isDeleted": false,
- "code": "IF-Z",
- "description": "Import Fill"
}
]
Creates a subcontract item 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.
{- "code": "IF-Z",
- "description": "Import Fill"
}
{- "id": "04f2c3f9-140e-4faf-ae35-98aa40852db9",
- "businessUnitId": "07c00dc0-aecf-45bd-bf9e-74628188b3c7",
- "isDeleted": false,
- "code": "IF-Z",
- "description": "Import Fill"
}
Updates an existing subcontract item given its 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.
{- "code": "IF-Z",
- "description": "Import Fill"
}
Deletes a subcontract item given its 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 subcontract items (i.e., subcontractor work that can be done 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",
- "jobId": "77de8c55-1b14-4f43-afc2-9f2edb6d64fb",
- "description": "Import Fill",
- "isDeleted": false,
- "isDiscontinued": false,
- "subcontractId": "58236983-650d-4528-a9f3-f773a0366ecd",
- "salesTaxPercent": 8.25,
- "tmRate": 200.5,
- "unitCost": 50.2,
- "unitOfMeasure": "TON",
- "accountingCode": "S-ACC"
}
]
Creates a job subcontract item on the specified job.
The subcontract to be added.
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.
{- "subcontractId": "a7e4fdbe-8485-4bbd-b9bd-122bbad73ebc",
- "description": "Job subcontract",
- "salesTaxPercent": 10.1,
- "tmRate": 7.5,
- "unitCost": 20.5,
- "unitOfMeasure": "CY",
- "accountingCode": "S-ACC"
}
{- "id": "58236983-650d-4528-a9f3-f773a0366ecd",
- "code": "IF-Z",
- "jobId": "77de8c55-1b14-4f43-afc2-9f2edb6d64fb",
- "description": "Import Fill",
- "isDeleted": false,
- "isDiscontinued": false,
- "subcontractId": "58236983-650d-4528-a9f3-f773a0366ecd",
- "salesTaxPercent": 8.25,
- "tmRate": 200.5,
- "unitCost": 50.2,
- "unitOfMeasure": "TON",
- "accountingCode": "S-ACC"
}
Returns a job subcontract item 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",
- "jobId": "77de8c55-1b14-4f43-afc2-9f2edb6d64fb",
- "description": "Import Fill",
- "isDeleted": false,
- "isDiscontinued": false,
- "subcontractId": "58236983-650d-4528-a9f3-f773a0366ecd",
- "salesTaxPercent": 8.25,
- "tmRate": 200.5,
- "unitCost": 50.2,
- "unitOfMeasure": "TON",
- "accountingCode": "S-ACC"
}
Updates an existing job subcontract item with the specified id.
The job subcontract item 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.
{- "subcontractId": "a7e4fdbe-8485-4bbd-b9bd-122bbad73ebc",
- "description": "Job subcontract",
- "salesTaxPercent": 10.1,
- "tmRate": 7.5,
- "unitCost": 20.5,
- "unitOfMeasure": "CY",
- "accountingCode": "S-ACC"
}
Deletes the job subcontract item 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 subcontract transactions.
The request object for getting subcontract item transactions.
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": "fc68c769-5abb-4931-ad06-18fc9565d93a",
- "job": {
- "jobId": "8d6b8063-0465-48c1-b507-671ef42e29a9",
- "jobCode": "22-001",
- "jobDescription": "Repave Main Street"
}, - "costCode": {
- "costCodeId": "b73c4c29-26f4-4fca-a213-d3ff2d68935e",
- "costCodeCode": "01-307",
- "costCodeDescription": "Clear and grub - medium"
}, - "foreman": {
- "employeeId": "d01d3fb9-c579-4cb7-b405-60c7eaa791ec",
- "employeeCode": "JDOE",
- "employeeFirstName": "John",
- "employeeLastName": "Doe"
}, - "date": "2019-01-01",
- "jobSubcontractItem": {
- "id": "d01d3fb9-c579-4cb7-b405-60c7eaa791ec",
- "code": "40-3376",
- "description": "Concrete Pump Truck Supplier"
}, - "jobSubcontractId": "11a1eff4-e213-4036-a49e-2b7d8de66d71",
- "quantity": 0.5,
- "cost": 17.5,
- "unitOfMeasure": "MILE",
- "vendorContractItemId": "24476ea5-e866-4501-8fbc-1f37cd9b81f5",
- "vendorContractId": "4c4effe8-d042-4889-9b33-edd6cc48df0f",
- "vendorContract": {
- "id": "8eca0a4a-678a-4ec0-900d-0c0f27daae7a",
- "vendorContract": "VC-00001",
- "description": "First vendor contract"
}, - "vendor": {
- "id": "8eca0a4a-678a-4ec0-900d-0c0f27daae7a",
- "name": "BOBS",
- "description": "Bob's Clearing and Demolition"
}, - "costCodeTransactionTags": [ ],
- "referenceNumber": "1234567890",
- "invoiceNumber": "1234567890",
- "isInvoiced": false,
- "isTm": false,
- "note": "Crew was late",
- "unitCost": 35,
- "salesTax": 0,
- "lastModifiedDateTime": "2019-09-10T16:12:29Z",
- "lastModifiedPreciseDateTime": "2019-09-10T16:12:29.9498214Z"
}
], - "metadata": {
- "nextCursor": "DGDS93EaYwDQj4ggr0meNz6T7vkZpDqxLFIs2leWDww"
}
}