Description
The carrier is used to export related template in export page. Note: The API returns a file as a byte stream. |
Path
HTTP Verb | URL |
Post | services/carrier/export |
Request Field
Field(API) | Data Type | Mandatory/Optional | Description |
mawbs | List<String> | O | Master Air WayBill (one of the first three fields must be filled in, otherwise, it will report errors) |
trackingNos | List | O | Tracking No. (one of the first three fields must be filled in, otherwise, it will report errors.) |
bagNos | List | O | Bag No. (one of the first three fields must be filled in, otherwise, it will report errors.) |
businessType | Integer | M | type, the API supports one of the three methods 1. Parcel【The original template is exported from Shipping Orders Page】 2. Bag【The original template is exported from Bagging Page】 3. Linehaul【The original template is exported from Line Haul Page】 |
exportType | String | M | Please contact eTower to get related value of the transmission. |
Response content
Field | Type | Mandatory/Optional | Description |
status | String | M | Success/Failure |
code | Number | O | Return code |
message | String | O | Response message |
Request message:
{ "mawbs": "78467878565", "bagNos":"NS78467878565", "businessType":"3", "exportType":"XXXTemplate" }
Response message
Successful example:
{ "status":"Success", "code":0, "message":"字符串格式的流文件,需要Base64解密:org.apache.commons.codec.binary.Base64.decodeBase64()" }
Failure example:
{ "status":"Failure", "code":999402, "message":"businessType is required" }
Error Code:
Code | Description |
990000 | XX No. was not generated, special error |
999402 | businessType is required |
999403 | must fill in one of three fields: trackingNos & bagNos & mawbs |
999404 | businessType transmission error |
999405 | exportType transmission error |
999406 | exportType is required |
999407 | the queried data is empty |
100004 | system error, please contact administrator |