Get Order History API

Fetch Order History API, allows you to fetch all the orders placed for lounge category for a specific timeline

Request Schema

ParameterTypeDescription
startDateStringStart date for filtering records.
endDateStringEnd date for filtering records.
limitIntNumber of records to return per page (pagination).
pageIntPage number to fetch when paginating results.
tagStringCustom tag to filter or group records by campaign, user, or other metadata.

Response Schema

PathTypeDescription
dataobjectRoot response object.
data.getOrderHistoryobjectContainer for order history.
data.getOrderHistory.statusnumberAPI execution status (1 = success).
data.getOrderHistory.dataarrayList of historical orders (generic across all categories).
data.getOrderHistory.data[].orderIdnumberUnique order ID.
data.getOrderHistory.data[].orderDatestringOrder creation timestamp.
data.getOrderHistory.data[].emailstringEmail used for the order.
data.getOrderHistory.data[].deliveryStatusstringDelivery status (pending, delivered).
data.getOrderHistory.data[].poNumberstringPO number passed during checkout.
data.getOrderHistory.data[].tagstring/nullCustom tag (generic).
data.getOrderHistory.data[].orderTotalnumberRounded order amount.
data.getOrderHistory.data[].rawOrderTotalnumber/nullUnrounded order amount (may be NULL for older orders).
data.getOrderHistory.data[].orderDiscountnumberDiscount applied.
data.getOrderHistory.data[].rawOrderDiscountnumber/nullExact unrounded discount (may be NULL).
data.getOrderHistory.data[].discountPercentnumberDiscount percentage.
data.getOrderHistory.data[].amountChargednumberFinal charged amount.
data.getOrderHistory.data[].currencyValuenumberFX conversion multiplier.
data.getOrderHistory.data[].currencyCodestringCurrency code of the order.
data.getOrderHistory.data[].productsarrayList of ordered products (generic across all categories).
data.getOrderHistory.data[].products[].productIdnumberProduct ID (generic across voucher/lounge/merchandise/top-up/perks).
data.getOrderHistory.data[].products[].productNamestringProduct name.
data.getOrderHistory.data[].products[].receiverMobileNumberstringReceiver mobile number
data.getOrderHistory.data[].products[].receiverEmailstringReceiver email (generic).
data.getOrderHistory.data[].products[].pricenumberPrice/denomination/value.
data.getOrderHistory.data[].products[].quantitynumberOrdered quantity.
data.getOrderHistory.data[].products[].orderProductStatusstringStatus of the individual product item (generic).
data.getOrderHistory.data[].products[].currencystringCurrency code for the product.
data.getOrderHistory.data[].products[].trackingIdstring/nullShipment tracking ID (merchandise only).
data.getOrderHistory.data[].products[].trackingLinkstring/nullShipment tracking URL (merchandise only).
data.getOrderHistory.data[].voucherDetailsarraySummary of voucher/lounge/product info (all categories).
data.getOrderHistory.data[].voucherDetails[].orderIdnumberOrder ID.
data.getOrderHistory.data[].voucherDetails[].productIdnumberProduct ID.
data.getOrderHistory.data[].voucherDetails[].productNamestringProduct name.
data.getOrderHistory.data[].voucherDetails[].currencyCodestringCurrency code.
data.getOrderHistory.data[].voucherDetails[].productStatusstringCancelled Or Delivered
data.getOrderHistory.data[].voucherDetails[].denominationnumberProduct denomination/value.

Implementation Notes

  1. To fetch all the orders within a specified timeframe, pass a higher value in the "limit" parameter and pass the value as "1" in the "page" parameter

How Customers use this getOrderHistory API ?

Customer who have their own internal reporting systems or those personas who want to know the historic data of the transactions for internal auditing purpose, use this endpoint to fetch the order history for a specified time.

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