页面树结构

版本比较

标识

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

15. 航班接口说明

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

...

HTTP Verb 

URL

Post/services/carrier/editLineHaul


请求字段

1Field (API)Data TypeLengthMandatoryDetails
2uuidString50M

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

3atd

String

19O

实际出发时间

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

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

String

19

O

实际到达时间

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

    • 例:2022-05-31 17:30:05
attachmentFileName
5lineHaulAttachmentsString
O

附件信息

附件的文件名称

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

6
attachmentString
M附件的Base64格式
7
attachmentFileNameString
O文件的Base64格式 
90M

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

  • 例: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

返回代码,请参考以下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 (附件文件类型无效)



请求报文

代码块
languagejs
borderStylesolid
firstline1
titleRequest
linenumberstrue
{
    "uuid": "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": "Base64 format",
            "attachmentFileName": "XXXXX"test2.pdf"
        }
    ]
} 

响应报文

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

...