Description
The carrier is used to upload flight information to the package. |
Path
HTTP Verb | URL |
---|---|
Post | /services/carrier/lineHaul |
Request
...
Elements
1 | Field (API) | Data Type | Length | Mandatory | Details | |||||||
2 | bizType | Number | M | Type of transportation, when select the following serial numbers: 1: Air Transport; |
2: Land Transportation; 3: Ocean Transport; 4: Railway Transport | |||||||||||
3 | mawb | String | 40 | M |
Master Air WayBill | ||||||||||||
4 | flightNo | String | 80 | M | Flightnumber | |||||||
5 | etd | String | 19 | M | Estimatedtimeofdeparture Format: yyyy-MM-ddHH:mm:ss,
| |||||||
6 | eta | String | 19 | M | Estimatedtimeofarrival Format: yyyy-MM-ddHH:mm:ss,
| |||||||
7 | origin | String | 80 | M | Departureairportcode | |||||||
8 | destination | String | 80 | M | Destinationairportcode | |||||||
9 | totalParcels | String | 80 | M | Totalnumberofparcels | |||||||
10 | dataType | Number | M | Type,chooseone 1.Parcel(TrackingNo.) 2.Bag(BagNo. | ||||||||
11 | dataNos | List | 200 | M | Whendatatypechoose“1”,input TrackingNo., Whendatatypechoose“2”,inputBag No | |||||||
12 | atd | String | 19 | O | Actual time of departure Format: yyyy-MM-dd HH:mm:ss,
| |||||||
13 | ata | String | 19 | O | Actual time of arrival Format: yyyy-MM-dd HH:mm:ss,
| |||||||
14 | airlineCheckIn | String | 19 | O | Airline Check-In Time Format: yyyy-MM-dd HH:mm:ss,
| |||||||
15 | recovery | String | 19 | O | Fields for other purposes Format: yyyy-MM-dd HH:mm:ss,
| |||||||
16 | handoverTime | String | 19 | O | Delivery time Format: yyyy-MM-dd HH:mm:ss,
| |||||||
17 | rcsTime | String | 19 | O | Fields for other purposes Format: yyyy-MM-dd HH:mm:ss,
| |||||||
18 | via1 | String | 3 | O | First stopover | |||||||
19 | via2 | String | 3 | O | Second stopover | |||||||
20 | hawb | String | 32 | O | House Air Waybill | |||||||
21 | grossWeight | Double | O | Gross Weight (Unit: Kg) | ||||||||
22 | volumetricWeight | Double | O | Volumetric Weight (Unit: Kg) | ||||||||
23 | chargeableWeight | Double | O | Chargeable Weight (Unit: Kg) | ||||||||
24 | comments | String | O | Comments | ||||||||
25 | remark | String | 255 | O | Remark |
...
Response Elements
1 | Field | Type | Mandatory/Optional |
Description | |||
2 | status | String | M |
Succeeded/Failure | ||||
3 | code | Number | O | Returncode, |
please refer to the following code and message relationship table. | ||||
4 | message | String | O | Responsemessage |
, please refer to the following code and message relationship table. | ||||
5 | uuid | String | M | The unique identifier for this LineHaul record. |
Error Code & Message
code | message |
999400 |
MAWB is required | |
300051 | The bag no is error. |
140007 | XXX Barcode already exists. |
2000000 | XXX is required. |
1002000 | Time is invalid |
1003000 | Data is empty. |
2200018 | The port is not configured, please contact the system administrator. |
2200004 | The airline is not configured, please contact the system administrator. |
2200005 | MAWB is invalid. |
Request message
代码块 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{ "bizType":"1", "mawb":"78467878565", "flightNo":"CZ455", "etd":"2022-04-12 08:01:02", "eta":"2022-04-13 08:01:02", "origin":"CAN", "destination":"AMS", "atd":"2022-05-31 14:20:05", "ata":"2022-05-31 17:30:05", "totalParcels":"2", "dataType":1, "dataNos":[ "JB000013817", "000013802" ] } |
...
代码块 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
"status":"Succeeded",
"code":0,
"message":null,
"uuid": "Qu57HhAhW6TTTQGm1Dvn_a"
} |