Description
The carrier can edit flight information. |
Path
HTTP Verb | URL |
---|---|
Post | /services/carrier/editLineHaul |
Request Elements
1 | Field (API) | Data Type | Length | Mandatory | Details | |||||||||
2 | uuid | String | 50 | M | The value responsed in 15. Line Haul API | |||||||||
3 | atd | String | 19 | O | Actual time of departure Format: yyyy-MM-dd HH:mm:ss,
| |||||||||
4 | ata | String | 19 | O | Actual time of arrival Format: yyyy-MM-dd HH:mm:ss,
| |||||||||
5 | lineHaulAttachments | String | O | Attachment information | ||||||||||
6 | attachment | String | M | The Base64 format of the attachment | ||||||||||
7 | attachmentFileName | String | 90 | M | The file name of the attachment, should include the file type.
| |||||||||
8 | attachmentFileType | String | 1 | M | The file type of the attachment varies depending on the bizType. Please fill in the corresponding number. Air Transport (bizType=1)
Land Transportation (bizType=2)
Ocean Transport (bizType=3)
Railway Transport (bizType=4)
|
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. |
1003004 | Attachment file base64 or fileName or fileType is empty. |
1003005 | Attachment fileType is invalid. |
Request message
{ "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
{ "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 Type | Length | Mandatory | Details | |||||||
uuid | String | 50 | M | The value responsed in 15. Line Haul API | |||||||
atd | String | 19 | O | Actual time of departure Format: yyyy-MM-dd HH:mm:ss,
| |||||||
ata | String | 19 | O | Actual time of arrival Format: yyyy-MM-dd HH:mm:ss,
| |||||||
attachmentFileName | String | O | File name | ||||||||
attachment | String | O | Base64 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
{ "uuid": "Qu57HhAhW6TTTQGm1Dvn_a", "atd": "2022-05-31 14:20:05", "ata": "2022-05-31 17:30:05", "attachmentFileName": "test.pdf", "attachment": "XXXXX" }
Response message
{ "status":"Succeeded", "code":0, "message":null }