页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

Description

The carrier is used to export related template in export page. Note: A file returns from the API is a byte stream.  


Path

HTTP Verb 

URL

Post

services/carrier/export


Request Field

Field(API)

Data Type

Mandatory/Optional

Details

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 association method

1. Parcel【trackingNos is required.】

2. Bag【bagNos is required.】

3. Linehaul【mawbs is required.】

exportType

String

M

Please contact eTower to get related value of the trasmission.


Response content

Field

Type

Mandatory/Optional

Description

status

String

M

Success/Failure

code

Number

O

Return code

message

String

O

Response message


Request message

代码块
languagejs
borderStylesolid
firstline1
titleRequest
linenumberstrue
{
    "mawbs": "78467878565",
    "bagNos":"NS78467878565",
    "businessType":"3",
    "exportType":"XXXTemplate"
}
   


Response message


Successful example

代码块
languagejava
firstline1
titleResponse
linenumberstrue
{
    "status":"Success",
    "code":0,
    "message":"字符串格式的流文件,需要Base64解密:org.apache.commons.codec.binary.Base64.decodeBase64()"
}


Failure example

代码块
languagejava
firstline1
titleResponse
linenumberstrue
{
    "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