Skip to main content

Method

client.orderStatus.getOrderStatusTypes(): Promise<any>
Retrieves the list of available order status types supported by the supplier.

Parameters

This method does not require any additional parameters beyond the client authentication credentials.

Returns

Returns a Promise that resolves to the available order status types. The response format depends on the client’s configured format (JSON or XML).
OrderStatusTypeArray
array
Array of available order status types

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 statusTypes = await client.orderStatus.getOrderStatusTypes();

console.log(statusTypes);

Build docs developers (and LLMs) love