Method
client.orderStatus.getOrderStatusDetails(params: GetOrderStatusDetailsParams): Promise<any>
Retrieves detailed status information for orders based on query type and reference number or timestamp.
Parameters
The type of query to perform. Determines how the order status will be retrieved.
Reference number for the order. Used when querying by specific order reference.
Timestamp for filtering order status updates. Returns orders with status changes after this time.
Returns
Returns a Promise that resolves to the order status details. The response format depends on the client’s configured format (JSON or XML).
Array of order status detail objects
Unique identifier for the order
Date when the order was placed
Current status of the order
Timestamp of the last status update
Example
import { PromoStandards } from 'promostandards-sdk-js';
const client = new PromoStandards.Client({
id: 'your_account_id',
password: 'your_password',
endpoints: [
{
type: 'OrderStatus',
version: '1.0.0',
url: 'https://supplier.com/orderStatus',
},
],
});
const orderStatus = await client.orderStatus.getOrderStatusDetails({
queryType: 'PO',
referenceNumber: 'PO-12345',
statusTimeStamp: '2024-01-01T00:00:00Z',
});
console.log(orderStatus);