Order Status
How to get order status details

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_typeShort NameDescription
1PO SearchQuery based on customer provided purchase order number.
2SO SearchQuery based on vendor assigned sales order number.
3Last Update SearchQuery based on all orders with an update time greater than the value specified in statusTimeStamp.
4All Open SearchQuery 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
}