View Order
To View Specific Order details.
To view specific order detail by sending id in path parameter.
GET
https://emart.castleindia.in /api/order/{orderid}?secret=xxxx
Path Parameters
Name
Type
Description
orderid*
Integer
ID of the order eg: 40
Query Parameters
Name
Type
Description
secret*
String
Secret key which obtained from admin panel.
Headers
Name
Type
Description
Accept*
String
application/json
Authorization*
String
Bearer {token}
{
"order": {
"id": 49,
"total_qty": 2,
"order_id": "EODD61de85e044eb4",
"shipping_address": {
"name": "KP",
"phone": 1234567980,
"email": "kp_demo@gmail.com",
"address": "Los Street 123-A, Post AD",
"city": "Post Falls",
"state": "Idaho",
"country": "United States",
"pin_code": 123456
},
"billing_address": {
"name": "KP",
"phone": 1234567980,
"email": "kp_demo@gmail.com",
"address": "Los Street 123-A, Post AD",
"city": "Post Falls",
"state": "Idaho",
"country": "United States",
"pin_code": 123456
},
"orderitems": [
{
"invoice_no": "EMRT127MRTE2019",
"qty": 2,
"price": 8.39,
"igst": 3.02,
"cgst": null,
"sgst": null,
"total_tax": 3.02,
"product_name": {
"en": "Yoga Matt"
},
"product_thumb": "variant_1594299426WeoJG0lo1t.png",
"thumb_path": "https://emart.test/variantimages",
"shipping": "0",
"handlingcharge": 10,
"gift_charge": 0,
"status": "Pending",
"tracking_id": "GLWFSZYHPE",
"courier_channel": null,
"tracking_link": null,
"exp_delivery_date": null,
"cashback": null
}
],
"transaction_id": "PAYID-MHPILYI7TU96906U3361744P",
"payment_method": "Paypal",
"currency": "USD",
"subtotal": 16.78,
"tax": 3.02,
"shipping": 0,
"handlingcharge": 10,
"gift_charge": 0,
"grand_total": 29.8
},
"status": "success"
}
Last updated
Was this helpful?