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

Description

The carrier can edit flight information.

Path

HTTP Verb 

URL

Post/services/carrier/editLineHaul

Request Elements

1Field (API)Data TypeLengthMandatoryDetails
2uuidString50M

The value responsed in 15. Line Haul API

3

atd

String

19O

Actual time of departure

Format: yyyy-MM-dd HH:mm:ss,

    • Eg. 2022-05-31 14:20:05
4

ata

String

19

O

Actual time of arrival

Format: yyyy-MM-dd HH:mm:ss,

    • Eg. 2022-05-31 17:30:05
5

lineHaulAttachments

String
O

Attachment information
If this field is included, the following fields are required.

6
attachmentString
MThe Base64 format of the attachment
7
attachmentFileNameString90MThe file name of the attachment, should include the file type.
  • Example: test.pdf
8
attachmentFileTypeString1M

The file type of the attachment varies depending on the bizType. Please fill in the corresponding number.

Air Transport (bizType=1)

  • 0 MAWB
  • 6: Invoice

Land Transportation (bizType=2)

  • 5: Other
  • 6: Invoice

Ocean Transport (bizType=3)

  • 2: MB/L
  • 6: Invoice

Railway Transport (bizType=4)

  • 5: Other
  • 6: Invoice

Response Elements

Field

Type

Mandatory/Optional

Description

status

String

M

Success/Failure

code

Number

O

Return code, please refer to the following code and message relationship table.

message

String

O

Response message, please refer to the following code and message relationship table.

Error 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.
1003005Attachment fileType is invalid.


Request message

Request
{
    "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"
        }
    ]
}

Response message

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

Description

The carrier can edit flight information.

Path

HTTP Verb 

URL

Post/services/carrier/editLineHaul

Request Elements

Field (API)Data TypeLengthMandatoryDetails
uuidString50M

The value responsed in 15. Line Haul API

atd

String

19O

Actual time of departure

Format: yyyy-MM-dd HH:mm:ss,

    • Eg. 2022-05-31 14:20:05

ata

String

19

O

Actual time of arrival

Format: yyyy-MM-dd HH:mm:ss,

    • Eg. 2022-05-31 17:30:05

attachmentFileName

String
O

File name

attachmentString
OBase64 format of the file

Response Elements

Field

Type

Mandatory/Optional

Description

status

String

M

Success/Failure

code

Number

O

Return code, please refer to the following code and message relationship table.

message

String

O

Response message, please refer to the following code and message relationship table.

Error Code & Message

code

message

100300

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

2000000

uuid is required.


Request message

Request
{
    "uuid": "Qu57HhAhW6TTTQGm1Dvn_a",
    "atd": "2022-05-31 14:20:05",
    "ata": "2022-05-31 17:30:05",
    "attachmentFileName": "test.pdf",
    "attachment": "XXXXX"
}

Response message

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

  • 无标签