页面树结构

版本比较

标识

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

接口说明

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

路径

HTTP Verb 

URL

Post/services/carrier/editLineHaul


请求字段

1Field (API)Data TypeLengthMandatoryDetails
2uuid
Number
String50M
The value responsed in

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

Line Haul APIFormat: yyyy

航班 中返回

3atd

String

19O

Actual time of departure

实际出发时间

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

,

 

Eg. 2022Format: yyyy
    • 例:2022-05-31 14:20:05
4ata

String

19

O

Actual time of arrival

实际到达时间

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

,

 

Eg.
    • 例:2022-05-31 17:30:05
5
attachmentFileName
lineHaulAttachmentsString
O
file name

附件信息

如果包括该字段,则以下字段为必填

6
attachmentString
OBase64 format of the file

响应字段

Field

Type

Mandatory/Optional

Description

M附件的Base64格式
7
attachmentFileNameString90M

附件的文件名称,需要包括文件类型

  • 例:test.pdf
8
attachmentFileType
1M

附件的文件类型,不同bizType有不同的文件类型,请填写对应数字。

空运 (bizType=1)

  • 0: MAWB
  • 6: Invoice

陆运 (bizType=2)

  • 5: Other
  • 6: Invoice

海运 (bizType=3)

  • 2: MB/L
  • 6: Invoice

铁路 (bizType=4)

  • 5: Other
  • 6: Invoice


响应字段

字段

类型

非空

描述

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
The line hual record cannot be found, uuid is not correct

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 (附件文件类型无效)



请求报文

代码块
languagejs
borderStylesolid
firstline1
titleRequest
linenumberstrue
{
    "uuid": "2022-04-13 08:01:02",Qu57HhAhW6TTTQGm1Dvn_a",
    "atd": "2022-05-31 14:20:05",
    "ata": "2022-05-31 17:30:05",
    "lineHaulAttachments": [
        {
            "attachmentFileType": "0",
            "attachment": "Base64 format",
            "attachmentFileName": "test.pdf",
test1.pdf"
        },
        {
            "attachmentFileType": "6",
            "attachment": "XXXXX"Base64 format",
            "attachmentFileName": "test2.pdf"
        }
    ]
} 

响应报文

代码块
languagejs
borderStylesolid
firstline1
titleResponse
linenumberstrue
 {
    "status":"Succeeded",
    "code":0,
    "message":null
}

...