How to get order order shipment notifications
Educational video from PromoStandards
Function getOrderShipmentNotification
In order to get order order shipment notification
for a given supplier we need to use Order Shipment Notification Service(OSN). Our API allows easy access by a GET
request to our order-shipment-notifications
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 | ShipDate Search | Query based on all shipments with a shipment date greater than the value specified in shipmentDateTimeStamp . |
HTTP VERB: GET
URL: https://api.psrestful.com/v1.0.0/suppliers/{SUPPLIER_CODE}/order-shipment-notifications/ (opens in a new tab)
Example Response:
This is the response from calling with:
SUPPLIER_CODE
= PCNA
query_type
= 1
reference_number
= 50
COMPLETE URL:
https://api.psrestful.com/v1.0.0/suppliers/PCNA/order-shipment-notifications/?query_type=1&reference_number=50
Error Response Example
{
"OrderShipmentNotificationArray": null,
"ErrorMessage": {
"code": 301,
"description": "referenceNumber not found"
}
}
another Error Response Example
{
"OrderShipmentNotificationArray": null,
"ErrorMessage": {
"code": 999,
"description": "Invalid SOAP params passed. The earliest date that can searched can be no longer than 7 days."
}
}