DEPRECATED Please use the endpoint "/api/v1/purchaseOrders"
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": "cebf87d0-d8df-48c1-9ed8-759b1f194f93",
- "jobId": "b0ee724b-cddd-439e-91d9-a9f812afae81",
- "orderStatus": "inProgress",
- "dateIssued": "2019-01-01",
- "vendorName": "Smith Company",
- "vendorDescription": "Smith & Sons Company",
- "purchaseOrder": "PO2",
- "description": "Unassigned Materials and Supplies",
- "vendorId": "ae0c2ac4-f94d-405c-aaa7-5d1c9d8a1cc3"
}
]
The purchase order 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.
{- "purchaseOrder": "POCement",
- "orderStatus": "inProgress",
- "dateIssued": "2019-01-01",
- "description": "Purchase order for cement",
- "vendorId": "563a5017-2405-4c07-85d3-518caae7d374"
}
{- "id": "03de8151-cbe4-4cc8-83b5-87c0d9837377",
- "jobId": "65053153-ed97-442d-b796-0e24df2b444d",
- "orderStatus": "inProgress",
- "dateIssued": "2019-01-01",
- "vendorName": "Smith Company",
- "vendorDescription": "Smith & Sons Company",
- "purchaseOrder": "PORebar",
- "description": "Purchase order for rebars",
- "vendorId": "66322a73-ca2d-4361-83c7-8460e39f28d3"
}
This call returns a list of purchase orders for the specified business unit, job, purchase order, date range, 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": "ba8b205e-5c35-4a7a-b89a-6f2f003a0ba1",
- "jobId": "4c60f476-210e-443c-ba4e-ef3abff981d4",
- "job": {
- "jobId": "4c60f476-210e-443c-ba4e-ef3abff981d4",
- "jobCode": "Job1",
- "jobDescription": "Job 1 Description"
}, - "purchaseOrder": "PO-1",
- "description": "Purchase order 1",
- "orderStatus": "inProgress",
- "dateIssued": "2022-09-19",
- "vendorId": "4653e28b-2939-4586-87df-e7b5522cbb9a",
- "vendor": {
- "id": "4653e28b-2939-4586-87df-e7b5522cbb9a",
- "name": "Vendor",
- "description": "Vendor Description"
}, - "isDeleted": false
}
], - "metadata": {
- "nextCursor": "gCpeihFB1whbiZt1qIf1TbhL8TPbeRP2"
}
}
This call will return a list of purchase order line items for the specified business unit, job, purchase order 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": "ba8b205e-5c35-4a7a-b89a-6f2f003a0ba1",
- "purchaseOrderId": "4c60f476-210e-443c-ba4e-ef3abff981d4",
- "jobMaterialId": "4653e28b-2939-4586-87df-e7b5522cbb9a",
- "material": {
- "id": "73e83acb-cdb8-4279-ad67-c0125d5eaf5a",
- "type": "customType",
- "code": "CCT1",
- "description": "Custom Cost Type 1"
}, - "note": "Line Item Note",
- "description": "Line Item Description",
- "sequence": 1.5,
- "quantity": 250,
- "unitCost": 15.75,
- "unitOfMeasure": "EA",
- "salesTaxPercent": 8.25,
- "isFullyInstalled": false,
- "isFullyReceived": false,
- "isCanceled": false,
- "isDeleted": false
}
], - "metadata": {
- "nextCursor": "gCpeihFB1whbiZt1qIf1TbhL8TPbeRP2"
}
}
This call updates an existing purchase order by id. Canceling a purchase order is not supported yet.
Updated values for the purchase order.
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.
{- "purchaseOrder": "POCement",
- "orderStatus": "inProgress",
- "dateIssued": "2019-01-01",
- "description": "Purchase order for cement",
- "vendorId": "563a5017-2405-4c07-85d3-518caae7d374"
}
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.
[- {
- "jobMaterialId": "2ed3a69b-7338-447d-94c0-4c72f0765463",
- "id": "70d6d634-66c6-45d2-8b79-a6a5276ec88f",
- "purchaseOrderId": "15d98e0f-9b7d-423d-ad51-24394749a6d3",
- "sequence": 10.1,
- "isFullyReceived": false,
- "isFullyInstalled": false,
- "note": "Note 1",
- "quantity": 100.5,
- "unitCost": 10.5,
- "unitOfMeasure": "EA",
- "salesTaxPercent": 8.25,
- "isCancelled": false,
- "alternateDescription": "alt description",
- "vendorItemNumber": "180.00.1"
}
]
This call creates the specified job-level material purchase order detail.
Details about the CustomCostType to add.
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.
{- "jobMaterialId": "ef6817b3-685b-4f4f-88f5-296ebb120a1b",
- "sequence": 10.5,
- "note": "New material purchase order detail",
- "quantity": 250,
- "unitCost": 14.75,
- "unitOfMeasure": "LF",
- "salesTaxPercent": 10.25,
- "isCancelled": false,
- "alternateDescription": "Alternate description",
- "vendorItemNumber": "VI-1",
- "isFullyReceived": false,
- "isFullyInstalled": true
}
{- "jobMaterialId": "d10a8684-902c-46cc-be79-c8587bb68e8d",
- "id": "4391e64a-04d9-46a7-84b2-9f3b3fa942a7",
- "purchaseOrderId": "da03efb0-258b-468c-82f4-0daadc5a3d0b",
- "sequence": 20.1,
- "isFullyReceived": false,
- "isFullyInstalled": false,
- "note": "Note 1",
- "quantity": 100.5,
- "unitCost": 10.5,
- "unitOfMeasure": "EA",
- "salesTaxPercent": 8.25,
- "isCancelled": false,
- "alternateDescription": "alt description",
- "vendorItemNumber": "180.00.1"
}
This call updates an existing material purchase order detail by its id. Currently, update is limited to isFullyReceived and isFullyInstalled fields only.
Details about the purchase order detail to be 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.
{- "isFullyReceived": false,
- "isFullyInstalled": true
}