接口说明
| 运输商可以通过接口编辑line haul信息。 |
路径
HTTP Verb | URL |
|---|---|
| Post | /services/carrier/editLineHaul |
请求字段
| 1 | Field (API) | Data Type | Length | Mandatory | Details | |
| 2 | uuid | |||||
| String | 50 | M |
航班的唯一标识符,从上传航班的API 15. |
航班 中返回 | |||||
| 3 | atd | String | 19 | O | |
Actual time of departure
实际出发时间 格式:yyyy-MM-dd HH:mm:ss |
|
| |||||
| 4 | ata | String | 19 | O | |
Actual time of arrival
实际到达时间 格式:yyyy-MM-dd HH:mm:ss |
|
|
| 5 |
| lineHaulAttachments | String | O | ||
附件信息 如果包括该字段,则以下字段为必填 | |||
| 6 | attachment | String |
响应字段
Type
Mandatory/Optional
| M | 附件的Base64格式 | |||||
| 7 | attachmentFileName | String | 90 | M | 附件的文件名称,需要包括文件类型
| |
| 8 | attachmentFileType | 1 | M | 附件的文件类型,不同bizType有不同的文件类型,请填写对应数字。 空运 (bizType=1)
陆运 (bizType=2)
海运 (bizType=3)
铁路 (bizType=4)
|
响应字段
| 字段 | 类型 | 非空 | 描述 |
status | String | M | Success/Failure |
code | Number | O | Return code, please refer to the following code and message relationship table.返回代码,请参考以下code和Message关系表 |
message | String | O | Response message, please refer to the following code and message relationship table.响应信息,请参考以下code和Message关系表 |
报错信息
code | message |
100300 | Data is empty. There is no corresponding line haul founded. |
2000000 | uuid is required. |
| 1003004 | Attachment file base64 or fileName or fileType is empty (附件文件base64/文件名称/文件类型为空) |
| 1003005 | Attachment fileType is invalid (附件文件类型无效) |
请求报文
| 代码块 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{
"uuid": "2022-04-13 08:01:02Qu57HhAhW6TTTQGm1Dvn_a",
"atd": "2022-05-31 14:20:05",
"ata": "2022-05-31 17:30:05",
"lineHaulAttachments": [
{
"attachmentFileType": "0",
"attachment": "Base64 format",
"attachmentFileName": "testtest1.pdf"
},
{
"attachmentFileType": "6",
"attachment": "XXXXX"
Base64 format",
"attachmentFileName": "test2.pdf"
}
]
}
|
响应报文
| 代码块 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{
"status":"Succeeded",
"code":0,
"message":null
} |
...