页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 3 下一个 »

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

Request
{
    "mawbs": "78467878565",
    "bagNos":"NS78467878565",
    "businessType":"3",
    "exportType":"XXXTemplate"
}
   


Response message


Successful example

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

Failure example

Response
{
    "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


 



  • 无标签