Get Order Details API

With Fetch Order Details API, you can fetch the order details of a specific order by passing the order ID or Po Number.

Get Order Details API Schema

ParameterTypeDescription
poNumberStringPurchase Order number to avoid duplicate orders.
orderIdFloatUnique ID of the order (used for referencing existing orders).
sendMailToReceiverInt (0/1)Flag to notify the recipient via email (1 = Yes, 0 = No).

Implementation Notes

  1. We do not recommend calling GetOrderDetails API to poll the order status for delayed delivery orders. Instead, implement Webhooks to be notified when an order status is changed
  2. You can fetch order details by either using poNumber OR orderId
  3. When you pass poNumber as a String, accepted values for orderId:
    1. Null value. Example: orderId: null
    2. 0 as an integer. Example: orderId: 0
    3. 0 as a string. Example: orderId: "0"
  4. When you only pass orderId, valid cases:
    1. Case 1:
      • poNumber: ""
      • orderId: "26663453"
    2. Case 2:
      • poNumber: ""
      • orderId: 26663453
    3. Case 3:
      • poNumber: null
      • orderId: 26663453
    4. Case 4:
      • poNumber: null
      • orderId: "26663453"

This ensures that the Get Order Details API works correctly in different situations.

Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!