Order Info

API Order Info

 

This API help you get all information of a order. You can know current status or the reason which make the shipment failed

Caution : The API Order Info need to infusion token in header

post/get
https://online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/detail
https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/detail
curl --location --request POST 'https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/detail' \
--header 'Content-Type: application/json' \
--header 'Token: 637170d5-942b-11ea-9821-0281a26fb5d4' \
--data-raw '{
	"order_code": "5ENLKKHD"
}

Parameter

Field Type Description
token String

Must be sent with all client requests. This Token helps server to validate request source. Provided by GHN.

order_code String

GHN Order Code. This is tracking code.

shop_id Int

Manage information for shop/seller

{
    "code": 200,
    "message": "Success",
    "data":[
    {
    "shop_id":855,
    "client_id":500379,
    "return_name":"Nguyen",
    "return_phone":"0332190458",
    "return_address":"39 NTT"",
    "return_ward_code":"21413",
    "return_district_id":1455,
    "from_name":"Nguyen",
    "from_phone":"0332190458",
    "from_address":"17 dong den"",
    "from_ward_code":"21413",
    "from_district_id":1455,
    "deliver_station_id":0,
    "to_name":"TinTest124",
    "to_phone":"0987654321",
    "to_address":"72 Thành Thái, Phường 14, Quận 10, Hồ Chí Minh, Vietnam",
    "to_ward_code":"20107",
    "to_district_id":1442,
    "weight":200,
    "length":15,
    "width":15,
    "height":15,
    "converted_weight":675,
    "service_type_id":2,
    "service_id":53320,
    "payment_type_id":2,
    "custom_service_fee":0,
    "cod_amount":200000,
    "cod_collect_date":null,
    "cod_transfer_date":null,
    "is_cod_transferred":false,
    "is_cod_collected":false,
    "insurance_value":2000000,
    "order_value":0,
    "pick_station_id":0,
    "client_order_code":"",
    "required_note":"KHONGCHOXEMHANG",
    "content":"ABCDEF",
    "note":"Tintest 123",
    "employee_note":"",
    "coupon":"",
    "_id":"5ed11d4f1eb594a402473300",
    "order_code":"5ENLKKHD",
    "version_no":"c01697ec-6190-4b2a-aed9-dd5938a9cf11",
    "updated_ip":"115.77.233.200",
    "updated_employee":0,
    "updated_client":500379,
    "updated_source":"shiip",
    "updated_date":"2020-05-29T14:52:59.485Z""",
    "updated_warehouse":0,
    "created_ip":"115.77.233.200""",
    "created_employee":0,
    "created_client":500379,
    "created_source":"shiip",
    "created_date":"2020-05-29T14:33:50.26Z",
    "status":"return",
    "pick_warehouse_id":1416,
    "deliver_warehouse_id":1394,
    "current_warehouse_id":1416,
    "return_warehouse_id":1416,
    "next_warehouse_id":0,
    "leadtime":"2020-05-30T09:00:00Z",
    "order_date":"2020-05-29T14:33:50Z",
    "soc_id":"5ed121cb1eb594a402473301",
    "finish_date":"5ed121cb1eb594a402473301",
    "tag":[
    "truck"
    ]
     "log":[
     {
     "status": "picking",
     "updated_date": "2020-05-29T14:40:46.934Z"
    },
    {
     "status": "picked",
     "updated_date": "2020-05-29T14:40:59.662Z"
    },
    {
     "status": "storing",
     "updated_date": "2020-05-29T14:41:19.708Z"
    },
    {
     "status": "return",
     "updated_date": "2020-05-29T14:52:59.485Z
    }
    ]
     }
}
{
    "code": 400,
    "message": "code=401, message=Token is not valid!",
    "data": null
}