| key | value |
|---|---|
| Content-Type | application/json |
| key | value |
|---|---|
| Content-Type | application/json |
| Name | Type | Required or not | Parameter Description | Sample |
|---|---|---|---|---|
| orderNum | String | Yes | PKFARE order number | 915690623484957501 |
| messageId | String | Yes | PKFARE message id | 4433422 |
| passengers | Array | Yes | passengers of this order. Refer to 2.1.2. | - |
| originFlightList | Array | Yes | Journey and segment information before this schedule change. Refer to 2.1.3. | - |
| changeFlightList | Array | No | Journey and segment information after this schedule change. Refer to 2.1.4. | - |
| Name | Type | Required or not | Parameter Description | Sample |
|---|---|---|---|---|
| lastName | String | Y | Last name | wang |
| firstName | String | Y | First name | jia |
| birthday | String | N | Date of birth [yyyy-mm-dd] | 1988-10-10 |
| sex | String | N | Gender, M - male, F - Female. Refer to 4.5 | M |
| psgType | String | Y | ADT - adult, CHD - child , INF-Infant. Refer to 4.4 | CHD |
| cardType | String | N | Travel document type. Refer to 4.3 | P |
| cardNum | String | N | Travel document number | P78921345 |
| cardExpiredDate | String | N | Travel document expiration date, [yyyy-mm-dd] | 2025-03-03 |
| nationality | String | N | Nationality of the passenger, 2 letters country code | CN |
| newTicketNum | String | N | New ticket number. If multiple ticket numbers, it will be separted by slash[/] | 9991234567890/9991234567891 |
| Name | Type | Required or not | Parameter Description |
|---|---|---|---|
| journeys | Array | Yes | Journey information. Refer to 2.1.5. |
| Name | Type | Required or not | Parameter Description |
|---|---|---|---|
| journeys | Array | Yes | Journey information. Refer to 2.1.5. |
| Name | Type | Required or not | Parameter Description |
|---|---|---|---|
| journeySeq | Int | Yes | Journey sequency, outbound refer to 1, inbound refer to 2. |
| segments | Array | Yes | flight information. Refer to 2.1.6. |
| Name | Type | Required or not | Parameter Description | Sample |
|---|---|---|---|---|
| airline | String | Yes | Airline code | CX |
| flightNum | String | Yes | Flight number | 618 |
| equipment | String | No | Equipment code | 777 |
| cabinClass | String | Yes | Cabin class. Refer to 4.2 | ECONOMY |
| bookingCode | String | Yes | Booking code | E |
| departure | String | Yes | Departure airport code, 3 letters IATA code | HKG |
| arrival | String | Yes | Arrival airport code, 3 letters IATA code | BKK |
| departureTerminal | String | No | Departure terminal | 1 |
| arrivalTerminal | String | No | Arrival terminal | 1 |
| departureDate | String | Yes | Departure date, [yyyy-mm-dd], local time of departure city | 2025-03-03 |
| arrivalDate | String | Yes | Arrival date, [yyyy-mm-dd], local time of arrival city | 2025-03-03 |
| departureTime | String | Yes | Departure time, [hh:mm],local time of departure city | 10:10 |
| arrivalTime | String | Yes | Arrival time, [hh:mm], local time of arrival city | 10:10 |
| flightTime | Integer | No | Flight time, unit: minutes | 890 |
| stayTime | Integer | No | Stay time for stopover flight, unit: minutes | 120 |
| codeShare | String | No | Code share flight flag, Y - Code share flight, N - Not code share flight | N |
| opFltNo | String | No | Operation flight number | 160 |
| opFltAirline | String | No | Operation airline | KA |
| stopover | String | No | Stopover airport code, 3 letters IATA code | CNX |
| messageType | String | No | Message type: 1-Flight changed 2-Flight canceled with protect flight 3-Flight canceled 4-Flight resumted. 5- Flight overbooking. For type 3, 4 and 5, there is no ChangeFlightList information. | 1 |
{
"changeFlightList":[
{
"journeySeq":"1",
"segments":[
{
"airline":"OD",
"arrival":"KUL",
"arrivalDate":"2024-03-08",
"arrivalTerminal":"1",
"arrivalTime":"19:00",
"bookingCode":"A",
"cabinClass":"ECONOMY",
"codeShare":"N",
"departure":"HKG",
"departureDate":"2024-03-08",
"departureTerminal":"2",
"departureTime":"15:10",
"equipment":"7M8",
"flightNum":"111",
"flightTime":230
}
]
}
],
"messageId":"4430826",
"orderNum":"917086774832458201",
"originFlightList":[
{
"journeySeq":"1",
"segments":[
{
"airline":"OD",
"arrival":"KUL",
"arrivalDate":"2024-03-07",
"arrivalTerminal":"1",
"arrivalTime":"19:00:00",
"bookingCode":"T",
"cabinClass":"ECONOMY",
"codeShare":"N",
"departure":"HKG",
"departureDate":"2024-03-07",
"departureTerminal":"2",
"departureTime":"15:10:00",
"equipment":"7M8",
"flightNum":"111",
"flightTime":230,
"messageType":"1"
}
]
}
],
"passengers":[
{
"birthday":"2004-02-21",
"cardExpiredDate":"2025-02-15",
"cardNum":"G41501437",
"cardType":"P",
"firstName":"YANG",
"lastName":"ZHANG",
"nationality":"CN",
"psgType":"ADT",
"sex":"M"
}
]
}| Name | Type | Required or Not | Parameter Description |
|---|---|---|---|
| errorCode | String | Yes | error code,refer to Error Code List |
| errorMsg | String | NO | error message |
{
"errorCode": "0",
"errorMsg": "OK"
}| erroCode | erroMsg | Description |
|---|---|---|
| 0 | ok | Request has been processed successfully. |
| Enum | Description |
|---|---|
| ECONOMY | Economy Class |
| PREMIUM ECONOMY | Premium Economy Class |
| BUSINESS | Business Class |
| FIRST | First Class |
| Enum | Description |
|---|---|
| P | Passport |
| N | Chinese Identity |
| O | Others |
| Enum | Description |
|---|---|
| ADT | adult |
| CHD | children[2-12 years old] |
| INF | infant[0-2 years old] |
| Enum | Description |
|---|---|
| M | Male |
| F | Female |
