Print Order

API Print Order

 

The order print link will have the structure:https://dev-online-gateway.ghn.vn/a5/public-api/printA5?token=

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

post/get
https://online-gateway.ghn.vn/shiip/public-api/v2/a5/gen-token
https://dev-online-gateway.ghn.vn/shiip/public-api/v2/a5/gen-token
curl --location --request POST 'https://dev-online-gateway.ghn.vn/shiip/public-api/v2/a5/gen-token' \
--header 'Token: 3b75c988-ff34-11eb-b255-166e45bc1992123' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_codes":["GA99W4RREB"]
}'

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_codes Array 

GHN Order Code. This is tracking code.

{
    "code": 200,
    "message": "Success",
    "data":{
    "token":"e27db030-a1bf-11ea-b421-6a186c15e40e" 
     }
}
{
    "code": 400,
    "message": "Lỗi gọi API: corev2_tenant_order_detail - code=404, message=Đơn hàng không tồn tại",
    "data": null
}