Appearance
Get Shipping Label ZPL
Request Method
http
POST /api/create-label-zplNOTE
This API allows user to request for a CN23 Label in ZPL Format. Authentication is required for this API
Header
| Field | Description |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Parameter
| Field | Mandatory | Type | Description | Length |
|---|---|---|---|---|
| Barcode | Y | String | Wmg Tracking Num | Max 50 Char |
| LabelType | Y | String | This field identify the label type, currently only CN23 is available. | Max 10 Char |
| Origin | Y | String | This field refers to the originating country. Eg. SG for Singapore, TW for Taiwan | Max 2 Char |
| Destination | Y | String | This field refers to the destinating country. Eg. TW for Taiwan, JP for Japan | Max 2 Char |
Request
json
{
"Barcode": "xxxxxxx",
"LabelType": "CN23",
"Origin": "SG",
"Destination": "XX"
}Response(Success)
json
{
"Code": 0,
"Message": "Success",
"Data": {
"Zpl": "^XA^CF0,60^FO50,50^GB100,100,100^FS^XZ"
}
}Response(Fail)
json
{
"Code": 1,
"Message": "max size of Destination must be 2",
"Data": []
}