UTF-8.Note PKFARE will provide production domain after Buyer Partners finish integration and co-test. Please replace 'pending.com' with the domain which PKFARE provides individually.| key | value |
|---|---|
| Content-Type | application/json;charset=UTF-8 |
| Name | Type | Required or Not | Parameter Description | Sample |
|---|---|---|---|---|
| authentication | object | Yes | Partner ID and signature, refer to 2.1.2. | - |
| data | object | Yes | request, refer to 2.1.3. | - |
| Name | Type | Required or Not | Parameter Description | Sample |
|---|---|---|---|---|
| partnerId | String | Yes | Partner ID | - |
| sign | String | Yes | Signature, refer to 4.1 and 4.2 | - |
| Name | Type | Required or Not | Parameter Description | Sample |
|---|---|---|---|---|
| messageId | String | Yes | PKFARE message ID. You can get specific message by indicating the messageId | 1075841601001 |
| String | Yes | Email address for contacting after we completed accpeting schedule change procedure | abc@abc.com | |
| passengers | Array | Yes | Passenger information who accept the schedule change | - |
| Name | Type | Required or Not | Parameter Description | Sample |
|---|---|---|---|---|
| lastName | String | Yes | Last name | wang |
| firstName | String | Yes | First name | jia |
| birthday | String | Yes | Date of birth [yyyy-mm-dd] | 1988-10-10 |
| sex | String | Yes | Gender, M - male, F - Female. Refer to 5.4 | M |
| psgType | String | Yes | ADT - adult, CHD - child , INF-Infant. Refer to 5.3 | CHD |
| cardType | String | No | Travel document type. Refer to 5.2 | P |
| cardNum | String | No | Travel document number | P78921345 |
| cardExpiredDate | String | No | Travel document expiration date, [yyyy-mm-dd] | 2025-03-03 |
| nationality | String | Yes | Nationality of the passenger, 2 letters country code | CN |
{
"data": {
"messageId": "2944666",
"email": "jaylee.li@pkfare.com",
"passengers": [
{
"birthday": "2003-04-20",
"firstName": "CHRISTOPHER",
"lastName": "KING",
"nationality": "US",
"psgType": "ADT",
"sex": "M",
"cardType":"P",
"cardNum":"P76541234",
"cardExpiredDate":"2025-05-10"
}
]
},
"authentication": {
"partnerId": "RksVSX7PfZmWYsCD7M4=",
"sign": "17e707b5d9dae8459065dbb139e5f1bd"
}
}ewogICAgImRhdGEiOiB7CiAgICAgICAgIm1lc3NhZ2VJZCI6ICIyOTQ0NjY2IiwKICAgICAgICAiZW1haWwiOiAiamF5bGVlLmxpQHBrZmFyZS5jb20iLAogICAgICAgICJwYXNzZW5nZXJzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAiYmlydGhkYXkiOiAiMjAwMy0wNC0yMCIsCiAgICAgICAgICAgICAgICAiZmlyc3ROYW1lIjogIkNIUklTVE9QSEVSIiwKICAgICAgICAgICAgICAgICJsYXN0TmFtZSI6ICJLSU5HIiwKICAgICAgICAgICAgICAgICJuYXRpb25hbGl0eSI6ICJVUyIsCiAgICAgICAgICAgICAgICAicHNnVHlwZSI6ICJBRFQiLCAKICAgICAgICAgICAgICAgICJzZXgiOiAiTSIsCiAgICAgICAgICAgICAgICAiY2FyZFR5cGUiOiJQIiwKICAgICAgICAgICAgICAgICJjYXJkTnVtIjoiUDc2NTQxMjM0IiwKICAgICAgICAgICAgICAgICJjYXJkRXhwaXJlZERhdGUiOiIyMDI1LTA1LTEwIgogICAgICAgICAgICB9CiAgICAgICAgXQogICAgfSwKICAgICJhdXRoZW50aWNhdGlvbiI6IHsKICAgICAgICAicGFydG5lcklkIjogIlJrc1ZTWDdQZlptV1lzQ0Q3TTQ9IiwKICAgICAgICAic2lnbiI6ICIxN2U3MDdiNWQ5ZGFlODQ1OTA2NWRiYjEzOWU1ZjFiZCIKICAgIH0KfQ==http://pending.com/AcknowledgeScheduleChange?param=ewogICAgImRhdGEiOiB7CiAgICAgICAgIm1lc3NhZ2VJZCI6ICIyOTQ0NjY2IiwKICAgICAgICAiZW1haWwiOiAiamF5bGVlLmxpQHBrZmFyZS5jb20iLAogICAgICAgICJwYXNzZW5nZXJzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAiYmlydGhkYXkiOiAiMjAwMy0wNC0yMCIsCiAgICAgICAgICAgICAgICAiZmlyc3ROYW1lIjogIkNIUklTVE9QSEVSIiwKICAgICAgICAgICAgICAgICJsYXN0TmFtZSI6ICJLSU5HIiwKICAgICAgICAgICAgICAgICJuYXRpb25hbGl0eSI6ICJVUyIsCiAgICAgICAgICAgICAgICAicHNnVHlwZSI6ICJBRFQiLCAKICAgICAgICAgICAgICAgICJzZXgiOiAiTSIsCiAgICAgICAgICAgICAgICAiY2FyZFR5cGUiOiJQIiwKICAgICAgICAgICAgICAgICJjYXJkTnVtIjoiUDc2NTQxMjM0IiwKICAgICAgICAgICAgICAgICJjYXJkRXhwaXJlZERhdGUiOiIyMDI1LTA1LTEwIgogICAgICAgICAgICB9CiAgICAgICAgXQogICAgfSwKICAgICJhdXRoZW50aWNhdGlvbiI6IHsKICAgICAgICAicGFydG5lcklkIjogIlJrc1ZTWDdQZlptV1lzQ0Q3TTQ9IiwKICAgICAgICAic2lnbiI6ICIxN2U3MDdiNWQ5ZGFlODQ1OTA2NWRiYjEzOWU1ZjFiZCIKICAgIH0KfQ==JSON format. For concrete fields, please refer to the following tables.| Name | Type | Parameter Description | Sample |
|---|---|---|---|
| errorCode | String | Error Code, refer to 5.1 | 0 |
| errorMsg | String | Error Message | OK |
{
"errorCode":"0",
"errorMsg":"ok"
}{
"errorCode": "P001",
"errorMsg": "Invalid authentication."
}Sample
partnerId: abcdefg123456
partnerKey: jkHKhkikdhy258dffj
Sign = MD5(abcdefg123456jkHKhkikdhy258dffj) = d7e99ae9d5c3c7d7113aced071e3ca08| errorCode | errorMsg | Description |
|---|---|---|
| 0 | ok | Request has been processed successfully. |
| S001 | System error | System error. |
| P001 | xxx is illegal | Request parameter is illegal, xxx will display request parameter |
| B002 | Partner is not exists | Partner does not exist. |
| B003 | Illegal sign | Illegal sign. |
| B037 | Order is not exists. | Order does not exist. |
| B048 | Invalid buyer | Buyer is invalid. |
| B130 | Message is not exist. | Schedule change message does not exist. |
| B131 | Accept reject, duplicated to accept schedule change. | One passenger is allowed to accept once, if the passenger accept again, this message will be returned. |
| B132 | Accept reject, wrong passenger indicated. | The passenger is not in the order, please kindly check. |
| B133 | Accept reject, flight has departured. | After flight is departured, system will not allow to accept. |
| B186 | The flight change has been confirmed and is already being processed. Please kindly contact online service for help. | The flight change has been confirmed and is already being processed. |
| B187 | Infant confirmation cannot be done separately. | Infant confirmation cannot be done separately. |
| Enum | Description |
|---|---|
| P | Passport |
| N | Chinese Identity |
| O | Others |
| Enum | Description |
|---|---|
| ADT | adult |
| CHD | children[2-12 years old] |
| Enum | Description |
|---|---|
| M | Male |
| F | Female |
