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

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 String

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
}