Get Order History By ID
The Get Order History By ID endpoint in the API provides an efficient method for accessing order records, status, and other specific data associated with individual orders.
get/orders/{orderId}
Request
- Base URLhttps://api.staging.grubtech.io/order-api
- URLhttps://api.staging.grubtech.io/order-api/orders/{orderId}
- AuthAPI key in header X-API-KEY
Path parameters
orderIdstring required
Unique identifier representing an order on the order platform.
Response
Successful response with the requested order.
Example response
{
"instructions": "Please use minimal tomato and add extra lemon juice to the tabbouleh. Thank you!",
"delivery": {
"location": {
"address": "E34, Al BarshaAl Barsha South, Dubai"
}
},
"items": [
{
"price": {
"unitPrice": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"discountAmount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"taxAmount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"totalPrice": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
}
},
"modifiers": [
{
"price": {
"unitPrice": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"discountAmount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"taxAmount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"totalPrice": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
}
}
}
]
}
],
"payment": {
"charges": {
"subTotal": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"total": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"deliveryFee": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
}
},
"additionalCharges": [
{
"price": {
"unitPrice": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"discountAmount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"taxAmount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"totalPrice": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
}
},
"tax": [
{
"amount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
}
}
]
}
],
"discounts": [
{
"amount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
}
}
],
"tax": [
{
"amount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
}
}
],
"settlements": [
{
"amount": {
"currencyCode": "AED",
"formattedAmount": "AED 12.50"
},
"notes": "10 AED redeemed using 100 loyalty points"
}
]
},
"placedAt": "2020-08-02T09:23:54.723Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.