...
The carrier is used to export related template in export page. Note: A file returns from the API is 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 | DetailsDescription |
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 | Typetype, the API supports one of the three association methodmethods 1. Parcel【trackingNos is required.】Parcel【The original template is exported from Shipping Orders Page】 2. Bag【bagNos is required. Bag【The original template is exported from Bagging Page】 3. Linehaul【mawbs is required. Linehaul【The original template is exported from Line Haul Page】 |
exportType | String | M | Please contact eTower to get related value of the trasmissiontransmission. |
Response content
Field | Type | Mandatory/Optional | Description |
status | String | M | Success/Failure |
code | Number | O | Return code |
message | String | O | Response message |
...
代码块 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{ "mawbs": ["7846787856516011111155"], "bagNos":"NS78467878565" [], "trackingNos": [], "businessType": "3", "exportType": "XXXTemplate" } |
Response message
Successful example:
...
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 |
999409 | mawbs/trackingNos/bagNos is required |