Get an order info.
Get order details.
curl --request GET \
--url https://api.aasaan.shop/api/v1/stores/orders/{orderId} \
--header 'x-api-key: <api-key>'
{
"id": "623d3455ec3c4b3548eb4a349",
"reference": null,
"number": 1234,
"discount": 120,
"tax": 100,
"total": 1200,
"subtotal": 100,
"date": "2022-06-10T07:51:12.510Z",
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z",
"orderStatus": {
"status": "New Order",
"date": "2022-06-10T07:51:12.510Z"
},
"products": {
"productId": 1234,
"variantId": 1234,
"name": "Test",
"sku": 1234,
"price": 120,
"CGST": 120,
"SGST": 100,
"total": 124,
"quantity": 4
},
"shipping": {
"firstName": "John",
"lastName": "mathews",
"trackingId": 123456,
"carrier": "pickrr",
"weight": 10,
"fee": 100,
"date": "2022-06-10T07:51:12.510Z",
"mobileNumber": 9949891734,
"countryCode": "IN",
"email": "john@gmail.com",
"address": {
"line1": "7-52/1",
"line2": "ram nagar",
"city": "Hyderabad",
"zipcode": 500098,
"state": "Telangana",
"country": "India",
"email": "john@lightbooks"
}
},
"payment": {
"transactionId": 123456,
"amount": 123,
"currency": "INR",
"method": "pre-paid",
"date": "2022-06-10T07:51:12.510Z",
"status": "success",
"statusReason": "Transaction failed due to network error"
}
}
Authorizations
Path Parameters
Order Id
Response
The Order Object ID.
"623d3455ec3c4b3548eb4a349"
The Order reference number.
null
The Order number.
1234
The total discount for given order.
120
The total tax for given order.
100
The order total amount.
1200
The order subtotal amount.
100
The order created date.
"2022-06-10T07:51:12.510Z"
Created date
"2022-03-25T03:17:44.092Z"
Modified date
"2022-06-10T07:51:12.510Z"
The ordered products
Ordered product Id.
1234
Ordered variant Id.
1234
Ordered product name.
"Test"
Ordered product sku.
1234
Ordered product price.
120
Ordered product cgst.
120
Ordered product sgst
100
Ordered product total price.
124
Ordered product quantity.
4
The shipping details for given order
Customer first name
"John"
Customer last name
"mathews"
Shipping tracking id
123456
Shipping carrier
"pickrr"
Shipping weight
10
Shipping fees
100
Shipping created date
"2022-06-10T07:51:12.510Z"
Customer mobile number
9949891734
Shipping country code
"IN"
Customer email
"john@gmail.com"
Shipping address
Address line 1.
"7-52/1"
Address line 2.
"ram nagar"
City name.
"Hyderabad"
Zip code.
500098
State name.
"Telangana"
Country name.
"India"
email address.
"john@lightbooks"
The payment details for given order
Payment transactionId.
123456
Payment amount.
123
Payment currency.
"INR"
Payment method.
"pre-paid"
Payment created date.
"2022-06-10T07:51:12.510Z"
Payment status.
"success"
Payment status reason.
"Transaction failed due to network error"
curl --request GET \
--url https://api.aasaan.shop/api/v1/stores/orders/{orderId} \
--header 'x-api-key: <api-key>'
{
"id": "623d3455ec3c4b3548eb4a349",
"reference": null,
"number": 1234,
"discount": 120,
"tax": 100,
"total": 1200,
"subtotal": 100,
"date": "2022-06-10T07:51:12.510Z",
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z",
"orderStatus": {
"status": "New Order",
"date": "2022-06-10T07:51:12.510Z"
},
"products": {
"productId": 1234,
"variantId": 1234,
"name": "Test",
"sku": 1234,
"price": 120,
"CGST": 120,
"SGST": 100,
"total": 124,
"quantity": 4
},
"shipping": {
"firstName": "John",
"lastName": "mathews",
"trackingId": 123456,
"carrier": "pickrr",
"weight": 10,
"fee": 100,
"date": "2022-06-10T07:51:12.510Z",
"mobileNumber": 9949891734,
"countryCode": "IN",
"email": "john@gmail.com",
"address": {
"line1": "7-52/1",
"line2": "ram nagar",
"city": "Hyderabad",
"zipcode": 500098,
"state": "Telangana",
"country": "India",
"email": "john@lightbooks"
}
},
"payment": {
"transactionId": 123456,
"amount": 123,
"currency": "INR",
"method": "pre-paid",
"date": "2022-06-10T07:51:12.510Z",
"status": "success",
"statusReason": "Transaction failed due to network error"
}
}