接口说明

运输商可以通过接口编辑line haul信息。

路径

HTTP Verb 

URL

Post/services/carrier/editLineHaul


请求字段

Field (API)Data TypeLengthMandatoryDetails
uuidString50M

航班的唯一标识符,从上传航班的API 15. 航班 中返回

atd

String

19O

实际出发时间

格式:yyyy-MM-dd HH:mm:ss  

    • 例:2022-05-31 14:20:05

ata

String

19

O

实际到达时间

格式:yyyy-MM-dd HH:mm:ss  

    • 例:2022-05-31 17:30:05

lineHaulAttachments

String
O

附件的文件名称


attachmentString
O文件的Base64格式 











响应字段

字段

类型

非空

描述

status

String

M

Success/Failure

code

Number

O

返回代码,请参考以下code和Message关系表

message

String

O

响应信息,请参考以下code和Message关系表


报错信息

code

message

100300

Data is empty. There is no corresponding line haul founded.

2000000

uuid is required.

1003004Attachment file base64 or fileName or fileType is empty (附件文件base64/文件名称/文件类型为空)
1003005Attachment fileType is invalid (附件文件类型无效)



请求报文

{
    "uuid": "Qu57HhAhW6TTTQGm1Dvn_a",
    "atd": "2022-05-31 14:20:05",
    "ata": "2022-05-31 17:30:05",
    "lineHaulAttachments": [
        {
            "attachmentFileType": "0",
            "attachment": "Base64 format",
            "attachmentFileName": "test1.pdf"
        },
        {
            "attachmentFileType": "6",
            "attachment": "Base64 format",
            "attachmentFileName": "test2.pdf"
        }
    ]
} 

响应报文

 {
    "status":"Succeeded",
    "code":0,
    "message":null
}