post https://stagingaccount.xoxoday.com/chef/v1/oauth/api
With the help of this endpoint you can fetch the order details of a specific order
Implementation Notes
- 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
- You can fetch order details by either using poNumber OR orderId
- When you pass poNumber as a String, accepted values for orderId:
- Null value. Example:
orderId: null
- 0 as an integer. Example:
orderId: 0
- 0 as a string. Example:
orderId: "0"
- Null value. Example:
- When you only pass orderId, valid cases:
- Case 1:
poNumber: ""
orderId: "26663453"
- Case 2:
poNumber: ""
orderId: 26663453
- Case 3:
poNumber: null
orderId: 26663453
- Case 4:
poNumber: null
orderId: "26663453"
- Case 1:
This ensures that the Get Order Details API works correctly in different situations.