Skip to main content

Get Order Detail

Use this api to get order detail in EMS

URL : api-auth/inner/orders/{order_number}

Method : GET

Authorization : Use OAuth token

Example : https://api-gateway.develop.pharmacity.io/pmc-oms-order-manage-api/api-auth/inner/orders/7449033067

Success Response

Code : 200 OK

Content example

{
"result": "success",
"error": "",
"error_code": "",
"data": {
"order_id": 488467,
"order_code": "7449033067",
"status": "Shipped",
"source_status": "Processing",
"op_status": "Shipped",
"created_at": "2024-07-02T07:22:14.000000Z",
"buyer": {
"id": 92114,
"full_name": "LHKD",
"extra_card": "OL000001480",
"phone_number": "0903147756",
"email": "duykhluu1989@gmail.com",
"customer_rank_value": "Gold"
},
"receiver": {
"id": 225076,
"full_name": "Nguyen Van A",
"phone_number": "0965220997",
"address": "134 nguyễn hữu cảnh",
"ward": "Phường 12",
"district": "Quận Bình Thạnh",
"province": "Thành phố Hồ Chí Minh",
"city": null,
"zip_code": null,
"note": null
},
"buy_store": null,
"receive_other_store": false,
"receive_store": {
"id": 78,
"code": "SGPMC090",
"address": "288 Nơ Trang Long",
"ward": "Phường 12",
"district": "Quận Bình Thạnh",
"province": "Thành phố Hồ Chí Minh"
},
"employee": {
"employee_id": "",
"employee_fullname": null
},
"source_group": "webapp",
"source_code": "web",
"source": "Web",
"fulfillment_type": "Delivery",
"note": null,
"payment_status": "Unpaid",
"lead_time": "30 phut",
"expected_delivery": "2024-07-02T07:52:18.000000Z",
"delivery": {
"shipping_carrier_id": 1,
"shipping_carrier_name": "Ahamove",
"shipping_carrier_code": "ahamove",
"time": "2024-07-03 14:22:14",
"service": "Unknown",
"fee": 22000,
"status": "IDLE",
"tracking_code": "",
"delivery_shipping_price": null
},
"delivery_info": {
"shipping_carrier_id": 1,
"shipping_carrier_name": "Ahamove",
"shipping_carrier_code": "ahamove",
"tracking_code": "PMCAHM7449033067",
"estimate_shipping_fee": 35000
},
"approve_by": null,
"approve_at": "2024-07-02T07:22:18.000000Z",
"ops_note": null,
"total": 100000,
"total_item_price": 78000,
"total_discount": 0,
"total_voucher_amount": 0,
"total_promo_amount": 0,
"ax_status": 5,
"ax_status_label": "Shipped",
"shipping_price": 22000,
"cash_on_delivery": 100000,
"payments": [
{
"id": 1401171,
"payment_method_id": 1,
"name": "Thanh toán khi nhận hàng (COD)",
"code": "cod",
"amount": 100000,
"status": "Unpaid",
"paid_after_delivery": true,
"note": null,
"created_at": "2024-07-02T07:22:14.000000Z",
"updated_at": "2024-07-02T07:22:14.000000Z"
}
],
"items": [
{
"id": 1652430,
"order_id": 488467,
"category": null,
"name": "Telfast BD 60mg (Hop/10 Vien) 22",
"image": null,
"sku": "P00023",
"unit": "Hop",
"quantity": 2,
"price": 39000,
"discount": 0,
"total": 78000,
"ecom_combokit": ""
}
],
"voucher_infos": [],
"sync_ax_status": "SUCCESS",
"un_redeem": 0,
"auto_approve": 1,
"auto_approve_status": 4,
"auto_approve_reason": null,
"med_request_code": null,
"point_used": 0,
"point_earned": 0
}
}

Error Response

Code : 403 Forbidden

Content :

{
"success": false,
"errors": "Resource not found.",
"errorCode": "NOT_FOUND",
"data": null
}

cURL

curl --location 'https://api-gateway.develop.pharmacity.io/pmc-oms-order-manage-api/api-auth/inner/orders/7449033067?=null' \
--header 'Authorization: Bearer XXXX'