Get Order Details
The Get Order Details endpoint allows you to retrieve detailed information about a specific order.
GET
https://sandbox.gratero.com/v1/get-order/{awb}
Parameters
No parameters are required to get order details.
Example
Response
JSON
{
"success": true,
"id": 1230,
"order_id": "23429",
"awb": "73827569873",
"order_type": "forward",
"order_status": "DELIVERED",
"order_invoice_no": "IN005",
"order_date": "2024-11-16T16:00:12.752Z",
"customer_name": "Arjun Modi",
"customer_email": "info@example.com",
"mobile": "9999999999",
"alt_mobile": "1111111111",
"customer_company_name": "Acme Inc",
"customer_gst_number": "",
"address_line_1": "70/114 MTS Tower, Ahibaranpur",
"address_line_2": "Triveni Nagar",
"city": "Lucknow",
"state": "Uttar Pradesh",
"country": "India",
"pincode": 226020,
"package_length": 14,
"package_width": 17,
"package_height": 11,
"actual_weight": 0.72,
"products": [
{
"product_name": "Handmade Book Cover",
"quantity": 2,
"price": 240,
"sku": "",
"tax": 0,
"discount": 40,
},
],
"payment_mode": "prepaid",
"discount": 0,
"shipping_charge": 0,
"transaction_charge": 0,
"giftwrap_charge": 0,
"total_amount": 200,
"is_dangerous_good": false,
"ewaybill_no": "",
"delivery_remarks": "",
"zone": "Zone D",
"estimated_delivery_date": "2024-11-22T00:00:00.000Z",
"logistic_data": {
"name": "Xpressbees",
"mode": "surface",
},
"warehouse_id": 13,
"created_at": "2024-11-16T16:00:12.752Z",
"updated_at": "2024-11-16T16:00:12.752Z",
}
Code
import { Instance } from "gratero";
const gratero = new Instance({
api_key: "YOUR_API_KEY",
secret_key: "YOUR_SECRET_KEY",
environment: 'test'
});
gratero.order.fetch({
awb: "372848049375"
}).then(data => console.log(data))
.catch(error => console.log(error))