How to get order status details
Educational video from PromoStandards
Function getOrderStatusDetails
In order to get order status detail
for a given supplier we need to use Order Status Service(ORDSTAT). Our API allows easy access by a GET
request to our order-status-details
endpoint.
Query Types
query_type | Short Name | Description |
---|---|---|
1 | PO Search | Query based on customer provided purchase order number. |
2 | SO Search | Query based on vendor assigned sales order number. |
3 | Last Update Search | Query based on all orders with an update time greater than the value specified in statusTimeStamp . |
4 | All Open Search | Query based on all orders that currently have a status other than “Complete” and “Cancelled”. |
HTTP VERB: GET
URL: https://api.psrestful.com/v1.0.0/suppliers/{SUPPLIER_CODE}/order-status-details/ (opens in a new tab)
Example Response:
This is the response from calling with:
SUPPLIER_CODE
= PCNA
query_type
= 4
COMPLETE URL:
https://api.psrestful.com/v1.0.0/suppliers/PCNA/order-status-details/?query_type=4
{
"OrderStatusArray": {
"OrderStatus": [
{
"purchaseOrderNumber": "PO043557",
"OrderStatusDetailArray": {
"OrderStatusDetail": [
{
"factoryOrderNumber": "35865767",
"statusID": 80,
"statusName": "Complete",
"responseRequired": null,
"validTimestamp": "2023-05-24T17:19:32.370000+00:00",
"expectedShipDate": "2023-05-24T23:59:00+00:00",
"expectedDeliveryDate": null,
"ResponseToArray": null,
"additionalExplanation": "Order has shipped in full—No further updates will be given"
}
]
}
},
{
"purchaseOrderNumber": "3900",
"OrderStatusDetailArray": {
"OrderStatusDetail": [
{
"factoryOrderNumber": "35900100",
"statusID": 80,
"statusName": "Complete",
"responseRequired": null,
"validTimestamp": "2023-07-03T21:19:02.887000+00:00",
"expectedShipDate": "2023-07-03T23:59:00+00:00",
"expectedDeliveryDate": null,
"ResponseToArray": null,
"additionalExplanation": "Order has shipped in full—No further updates will be given"
}
]
}
}
]
},
"ErrorMessage": null
}