1. GetScheduleChangeList
PKFARE Flight Buyer API
  • Guides
    • Quick Start
    • Tricks for Playing with PKFARE API
    • Book air tickets with ancillaries
    • Raise refund requests
    • Raise change requests
    • Receive flight rescheduled notification
    • Add Paid Bags after the Booking
    • Branded Fare Integration Guide
  • API Reference
    • Air ticket booking APIs
      • TicketIssuanceNotify_V2
      • Shopping V10
      • PrecisePricing V12
      • Penalty V4
      • PreciseBooking V8
      • CancelOrder
      • OrderPricing V6
      • Ticketing
      • OrderDetail V14
      • RequestTicketing
      • ModifyOrderStatus
    • Ancillary booking APIs
      • AncillaryStatusPush
      • AncillaryPricing V6
      • AncillaryBooking
      • CancelAncillaryOrder
      • AncillaryTicketing
      • AncillaryOrderDetail
    • Flight schedule change APIs
      • ScheduleChangeNotify
      • GetScheduleChangeReply
      • GetScheduleChangeList
      • AcknowledgeScheduleChange
      • AcceptScheduleChange
    • Refund APIs
      • RefundResultNotify
      • ReimbursedResultNotify
      • Refund Pricing
      • CheckRefundPricing
      • RefundRequest
      • CheckRefund
      • CheckReimbursed
      • DownloadAttachmentFile API
      • UploadAttachmentFile API
    • Change APIs
      • ChangeResultPush
      • Change Reshop
      • Change Request
      • Change Passenger Info
      • Change Reprice
      • ChangeRepricePush
    • Void APIs
      • ReimbursedResultPush
      • VoidRequest
    • Cache APIs
      • CacheShopping
      • ValidateItinerary API
    • APIs with all versions
      • CheckInInfoPush
      • Raise change requests Copy
      • Shopping
        • Shopping
        • Shopping_V2
        • Shopping_V4
        • Shopping V7
        • Shopping V9
        • Shopping V8
      • PrecisePricing
        • PrecisePricing
        • PrecisePricing_V2
        • PrecisePricing_V6
        • PrecisePricing V9
        • PrecisePricing V10
        • PrecisePricing V11
      • Penalty
        • Penalty
        • Penalty V2
        • Penalty V3
      • PreciseBooking
        • PreciseBooking
        • PreciseBooking_V2
        • PreciseBooking_V5
        • PreciseBooking V6
        • PreciseBooking V7
      • OrderPricing
        • OrderPricing_V2
        • OrderPricing V4
        • OrderPricing V5
      • Ticketing
        • Ticketing
      • TicketNumPush
        • TicketingNumPush
        • TicketingNumPush_V2
        • TicketingNumPush_V3
        • TicketIssuanceNotify
      • CancelOrder
        • CancelOrder
      • OrderDetail
        • OrderDetail_V2
        • OrderDetail_V3
        • OrderDetail_V4
        • OrderDetail_V5
        • Json_OrderDetail_V7
        • Json_OrderDetail_V8
        • OrderDetail V9
        • OrderDetail V13
      • AncillaryPricing
        • AncillaryPricing
        • AncillaryPricing V5
      • AncillaryBooking
        • AncillaryBooking
      • CancelAncillaryOrder
        • CancelAncillaryOrder
      • AncillaryTicketing
        • AncillaryTicketing_V2
      • AncillaryStatusPush
        • AncillaryStatusPush
      • AncillaryOrderDetail
        • AncillaryOrderDetail
      • RequestTicketing
        • RequestTicketing
      • ScheduleChangeNotify
        • ScheduleChangeNotify
      • GetScheduleChangeList
        • GetScheduleChangeList
      • AcknowledgeScheduleChange
        • AcknowledgeScheduleChange
      • AcceptScheduleChange
        • AcceptScheduleChange
      • GetScheduleChangeReply
        • GetScheduleChangeReply
      • RefundPricing
        • RefundPricing
      • CheckRefundPricing
        • CheckRefundPricing
      • RefundRequest
        • RefundRequest
      • RefundResultNotify
        • RefundResultNotify
      • CheckRefund
        • CheckRefund
      • ReimbursedResultNotify
        • ReimbursedResultNotify
      • CheckReimbursed
        • CheckReimbursed
      • UploadAttachmentFile
        • UploadAttachmentFile
      • DownloadAttachmentFile
        • DownloadAttachmentFile
      • ChangeReshop
        • ChangeReshop
      • ChangeRequest
        • ChangeRequest
      • ChangePassengerInfo
        • ChangePassengerInfo
      • VoidRequest
        • VoidRequest
        • VoidRequest_V2
      • ReimbursedResultPush
        • ReimburseResultPush_V2
  • Development Instructions
    • Signature
    • Order Status Explanation
    • Booking errors explanation and suggestions
    • Price Breakdown Explanation
    • Airlines available from PKFARE
    • PKFARE Operation Notice
    • How to retrieve airlines'PNR and ticket numbers
    • PKFARE Buyer API solutionId Usage Guide
  • Notice
    • Release Note
  • Schemas
    • Schemas
      • ShoppingReq
      • Result«ShoppingResult»
      • Authentication
      • SearchDTO
      • JourneysDTO_1
      • PassengersDTO
      • ShoppingResult
      • SegmentsDTO
      • SolutionsDTO
      • BaggageDTO
      • ConditionsDTO
      • ChangeDTO
      • OtherDTO
      • RefundDTO
      • JourneysDTO
      • SegmentInfoDTO
  1. GetScheduleChangeList

GetScheduleChangeList

1 Document Description#

1.1 Function Description#

After the order is generated, the airline may send the flight change information. Types of message include:
Flight cancelled
Flight cancelled, with protected flight(s)
Flight schedule changed, it could be time change, equipment change, terminal change, etc.
Through GetScheduleChangeList API, you are able to request by a time schedule to get the schedule change information.
Note When you requested AcknowledageScheduleChange and AcceptScheduleChange API, we will clear this message. Then, you will not get same message again.
Note If the flight has token off, the message will be cleared automatically. So you will not get its message.
Note If you request with a order number to get schedule change information, we will response the message for this order only. In this case, you has a order for issuing ticket, then passenger requested to change, you will got the second order which is change order. Multiple Schedule change messages existed and belongs to two orders. If you want to receive all messages of 1 request by indicating the order number for issuing ticket, you may contact PKFARE's implementor to change the setting.
Note To limited the size of response, the duration of "messageCreateTimeStart" and "messageCreateTimeEnd" should be within 24 hours.

1.2 Target Reader#

The GetScheduleChangeList API document targets developers who work in the fields of network development, maintenance as well as management. They should have the knowledge of at least one of the following programming languages: ASP, PHP, JAVA, ASP.NET or SQL.

1.3 Character Encoding#

The character code of this API is UTF-8.

1.4 Invoking Address#

Address in test environment: http://api.pkfare.com/scheduleChange/getScheduleChangeList
Address in production environment: http://pending.com/scheduleChange/getScheduleChangeList
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.

1.5 Request Type#

POST

1.6 Request Header#

keyvalue
Content-Typeapplication/x-www-form-urlencoded;charset=UTF-8

2.Request Parameter#

2.1 Parameter Construction#

Please structure parameter as JSON format. Request should be transmitted after BASE64 encrypted
2.1.1 Basic Request#
NameTypeRequired or NotParameter DescriptionSample
authenticationobjectYesPartner ID and signature, refer to 2.1.2.-
dataobjectYesrequest, refer to 2.1.3.-
2.1.2 Authentication#
NameTypeRequired or NotParameter DescriptionSample
partnerIdStringYesPartner ID-
signStringYesSignature, refer to 4.1 and 4.2-
2.1.3 Data#
NameTypeRequired or NotParameter DescriptionSample
messageIdStringNoPKFARE message ID. You can get specific message by indicating the messageId1075841601001
orderNumStringNoPKFARE order number915690623484957501
messageTypeStringNoMessage type:
1-Flight changed
2-Flight canceled with protect flight
3-Flight canceled
4-Flight resumed.
5- Flight overbooking.
You can speicfic a message type to get the message list.
1
sensitivityLevelStringNoMessage sensitivity level:
0-This level is not eligible to request involuntary refund or changes, and it is not required to be accepted by passenger.
1-This level may not be eligible to request involuntary refund or changes, but it is required to be accepted by passenger.
2-This level is eligible to request involuntary refund or changes and it is required to be accepted by passenger.
You can spcific a sensitivity level to get the message list.
0
messageCreateTimeStartStringYesSchedule change message create time,[yyyy-mm-dd hh:mm:ss]. You can get message list which created in a time duration, this element is start time. The time is refer to Beijing time, which timezone is at GMT+8.2023-02-22 15:00:00
messageCreateTimeEndStringYesSchedule change message create time,[yyyy-mm-dd hh:mm:ss]. You can get message list which created in a time duration, this element is end time. The time is refer to Beijing time, which timezone is at GMT+8.2023-02-22 16:00:00

2.2 Request Sample#

2.2.1 JSON Format Sample#
{
    "data": {
        "messageCreateTimeStart": "2023-02-20 00:00:00",
        "messageCreateTimeEnd": "2023-02-20 20:00:00",
        "orderNum": "916766125109920601",
        "messageId":"123456",
        "messageType":"2",
        "sensitivityLevel":"2"

    },
    "authentication": {
        "partnerId": "sVSX7PfZmWYsCD7M4=",
        "sign": "e707b5d9dae8459065dbb139e5f1bd"
    }
}
2.2.2 Base64 Encryption#
Use BASE64 to encode request, and get result as below:
ewogICAgImRhdGEiOiB7CiAgICAgICAgIm1lc3NhZ2VDcmVhdGVUaW1lU3RhcnQiOiAiMjAyMy0wMi0yMCAwMDowMDowMCIsCiAgICAgICAgIm1lc3NhZ2VDcmVhdGVUaW1lRW5kIjogIjIwMjMtMDItMjAgMjA6MDA6MDAiLAogICAgICAgICJvcmRlck51bSI6ICI5MTY3NjYxMjUxMDk5MjA2MDEiLAogICAgICAgICJtZXNzYWdlSWQiOiIxMjM0NTYiLAogICAgICAgICJtZXNzYWdlVHlwZSI6IjIiLAogICAgICAgICJzZW5zaXRpdml0eUxldmVsIjoiMiIKCiAgICB9LAogICAgImF1dGhlbnRpY2F0aW9uIjogewogICAgICAgICJwYXJ0bmVySWQiOiAiUmtzVlNYN1BmWm1XWXNDRDdNND0iLAogICAgICAgICJzaWduIjogIjE3ZTcwN2I1ZDlkYWU4NDU5MDY1ZGJiMTM5ZTVmMWJkIgogICAgfQp9
2.2.3 Sending Encrypted Request Sample#
This sample is for reference only:
POST http://pending.com/scheduleChange/getScheduleChangeList
Content-Type: application/x-www-form-urlencoded

param=ewogICAgImRhdGEiOiB7CiAgICAgICAgIm1lc3NhZ2VDcmVhdGVUaW1lU3RhcnQiOiAiMjAyMy0wMi0yMCAwMDowMDowMCIsCiAgICAgICAgIm1lc3NhZ2VDcmVhdGVUaW1lRW5kIjogIjIwMjMtMDItMjAgMjA6MDA6MDAiLAogICAgICAgICJvcmRlck51bSI6ICI5MTY3NjYxMjUxMDk5MjA2MDEiLAogICAgICAgICJtZXNzYWdlSWQiOiIxMjM0NTYiLAogICAgICAgICJtZXNzYWdlVHlwZSI6IjIiLAogICAgICAgICJzZW5zaXRpdml0eUxldmVsIjoiMiIKCiAgICB9LAogICAgImF1dGhlbnRpY2F0aW9uIjogewogICAgICAgICJwYXJ0bmVySWQiOiAiUmtzVlNYN1BmWm1XWXNDRDdNND0iLAogICAgICAgICJzaWduIjogIjE3ZTcwN2I1ZDlkYWU4NDU5MDY1ZGJiMTM5ZTVmMWJkIgogICAgfQp9

3. Response Parameter#

3.1 Response Parameter Construction#

Response in structuralized in JSON format. For concrete fields, please refer to the following tables.
3.1.1 Basic Parameter#
NameTypeParameter DescriptionSample
errorCodeStringError Code, refer to 5.10
errorMsgStringError MessageOK
dataObjectReturn data, will not be empty when error code is "0". Refer to 3.1.2-
3.1.2 Data#
NameTypeRequired or NotParameter DescriptionSample
orderNumStringYesPKFARE order number915690623484957501
buyerOrderStringNoBuyer partner's order number. If you would like to receive a buyerOrder, please send it in the request of preciseBooking API. The buyer order number will be record and send it back when schedule change happened.111111
messageIdStringYesPKFARE message id2222222
messageCreateTimeStringYesSchedule change message create time [ yyyy-mm-dd hh:mm:ss(GMT+8)]2023-02-21 19:15:10(GMT+8)
sensitivityLevelStringYesMessage sensitivity level:
0-This level is not eligible to request involuntary refund or changes, and it is not required to be accepted by passenger.
1-This level may not be eligible to request involuntary refund or changes, but it is required to be accepted by passenger.
2-This level is eligible to request involuntary refund or changes and it is required to be accepted by passenger.
0
orderPnrStringYesPNR of this order, the booking reference of reservation systemY78UJK
orderAirlinePnrStringYesAirline PNR of this order, the booking reference of airline systemCX/8IJ7LN
pnrListArrayNoPNR List of this order.Refer to 3.1.2.-
passengersArrayYespassengers of this order. Refer to 3.1.3.-
originFlightListArrayYesJourney and segment information before this schedule change. Refer to 3.1.4.-
changeFlightListArrayYesJourney and segment information after this schedule change. Refer to 3.1.5.-
3.1.2 PnrList#
NameTypeRequired or NotParameter DescriptionSample
segmentNoIntegerYesThe segment sequency of the journey1
departureStringYesDeparture airport code, 3 letters IATA codeHKG
arrivalStringYesArrival airport code, 3 letters IATA codeBKK
flightNumStringYesFlight number, format:Airline code and flight numberCX618
cabinClassStringYesCabin class. Refer to 5.2ECONOMY
bookingCodeStringYesBooking codeE
pnrStringNoPNR of this segment, the booking reference of reservation system. It will be blank if the reservation made for the whole order.Y78UJK
airPnrStringNoPNR of this segment, the booking reference of airline system. It will be blank if the reservation made for the whole order.CX/8IJ7LN
ticketNumsArrayNoPassesger and ticket number information. Refer to 2.1.8.-
3.1.3 Passengers#
NameTypeRequired or NotParameter DescriptionSample
lastNameStringYesLast namewang
firstNameStringYesFirst namejia
birthdayStringNoDate of birth [yyyy-mm-dd]1988-10-10
sexStringNoGender, M - male, F - Female. Refer to 5.5M
psgTypeStringYesADT - adult, CHD - child , INF-Infant. Refer to 5.4CHD
cardTypeStringNoTravel document type. Refer to 5.3P
cardNumStringNoTravel document numberP78921345
cardExpiredDateStringNoTravel document expiration date, [yyyy-mm-dd]2025-03-03
nationalityStringNoNationality of the passenger, 2 letters country codeCN
ticketNumStringNoTicket number. If multiple ticket numbers, it will be separted by slash[/]9991234567890/9991234567891
3.1.4 OriginFlightList#
NameTypeRequired or NotParameter DescriptionSample
journeysArrayYesJourney information. Refer to 3.1.6.-
3.1.5 changeFlightList#
NameTypeRequired or NotParameter DescriptionSample
journeysArrayYesJourney information. Refer to 3.1.6.-
3.1.6 journeys#
NameTypeRequired or NotParameter DescriptionSample
journeySeqIntegerYesJourney sequency, outbound refer to 1, inbound refer to 2.1
segmentsArrayYesflight information. Refer to 3.1.7.-
3.1.7 segments#
NameTypeRequired or NotParameter DescriptionSample
airlineStringYesAirline codeCX
flightNumStringYesFlight number618
equipmentStringNoEquipment code777
cabinClassStringYesCabin class. Refer to 5.2ECONOMY
bookingCodeStringYesBooking codeE
departureStringYesDeparture airport code, 3 letters IATA codeHKG
arrivalStringYesArrival airport code, 3 letters IATA codeBKK
departureTerminalStringNoDeparture terminal1
arrivalTerminalStringNoArrival terminal1
departureDateStringYesDeparture date, [yyyy-mm-dd], local time of departure city2025-03-03
arrivalDateStringYesArrival date, [yyyy-mm-dd], local time of arrival city2025-03-03
departureTimeStringYesDeparture time, [hh:mm],local time of departure city10:10
arrivalTimeStringYesArrival time, [hh:mm], local time of arrival city10:10
flightTimeIntegerNoFlight time, unit: minutes890
stayTimeIntegerNoStay time for stopover flight, unit: minutes120
codeShareStringNoCode share flight flag, Y - Code share flight, N - Not code share flightN
opFltNoStringNoOperation flight number160
opFltAirlineStringNoOperation airlineKA
stopoverStringNoStopover airport code, 3 letters IATA codeCNX
messageTypeStringNoMessage type:
1-Flight changed
2-Flight canceled with protect flight
3-Flight canceled
4-Flight resumed.
5- Flight overbooking.
For type 3, 4 and 5, there is no ChangeFlightList information.
1
3.1.8 ticketNums#
NameTypeRequired or NotParameter DescriptionSample
ticketNumStringNoTicket number-
lastNameStringYesLast namewang
firstNameStringYesFirst namejia
birthdayStringYesDate of birth [yyyy-mm-dd]1988-10-10
sexStringYesGender, M - male, F - Female. Refer to 5.5M
cardTypeStringNoTravel document type. Refer to 5.3P
cardNumStringNoTravel document numberP78921345

3.2 Response Example#

3.2.1 Normal Response#
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": [
        {
            "orderNum": "916766125109920601",
            "messageId": "2944668",
            "messageCreateTime": "2023-02-22 15:07:10",
            "sensitivityLevel": "1",
            "orderPnr": "TGBYHN",
            "orderAirlinePnr": "TGBYHN",
            "pnrList": [
                {
                    "segmentNo": 1,
                    "departure": "PEK",
                    "arrival": "HKG",
                    "flightNum": "391",
                    "cabinClass": "ECONOMY",
                    "bookingCode": "B",
                    "pnr": "TGBYHN",
                    "airPnr": "TGBYHN",
                    "ticketNums": [
                        {
                            "ticketNum": "123321",
                            "lastName": "YANGUJM",
                            "firstName": "TIFFANY",
                            "cardType": "PP",
                            "cardNum": "E07700466",
                            "sex": "F",
                            "birthday": "1990-08-23"
                        }
                    ]
                },
                {
                    "segmentNo": 2,
                    "departure": "HKG",
                    "arrival": "BKK",
                    "flightNum": "617",
                    "cabinClass": "ECONOMY",
                    "bookingCode": "A",
                    "pnr": "TGBYHN",
                    "airPnr": "TGBYHN",
                    "ticketNums": [
                        {
                            "ticketNum": "456456",
                            "lastName": "YANGUJM",
                            "firstName": "TIFFANY",
                            "cardType": "PP",
                            "cardNum": "E07700466",
                            "sex": "F",
                            "birthday": "1990-08-23"
                        }
                    ]
                }
            ],
            "passengers": [
                {
                    "birthday": "1990-08-23",
                    "cardType": "PP",
                    "cardNum": "E07700466",
                    "cardExpiredDate": "2024-03-17",
                    "lastName": "YANGUJM",
                    "firstName": "TIFFANY",
                    "nationality": "CN",
                    "psgType": "ADT",
                    "sex": "F",
                    "ticketNum": "123321"
                }
            ],
            "originFlightList": [
                {
                    "journeySeq": "1",
                    "segments": [
                        {
                            "airline": "CX",
                            "flightNum": "391",
                            "equipment": "333",
                            "cabinClass": "ECONOMY",
                            "bookingCode": "S",
                            "departure": "PEK",
                            "arrival": "HKG",
                            "departureDate": "2023-03-31",
                            "arrivalDate": "2023-03-31",
                            "departureTime": "13:40",
                            "arrivalTime": "17:35",
                            "flightTime": 235,
                            "stayTime": 0,
                            "codeShare": "N",
                            "messageType": "1"
                        },
                        {
                            "airline": "CX",
                            "flightNum": "617",
                            "equipment": "333",
                            "cabinClass": "ECONOMY",
                            "bookingCode": "S",
                            "departure": "HKG",
                            "arrival": "BKK",
                            "departureDate": "2023-03-31",
                            "arrivalDate": "2023-03-31",
                            "departureTime": "21:50",
                            "arrivalTime": "23:50",
                            "flightTime": 180,
                            "stayTime": 0,
                            "codeShare": "N",
                            "messageType": "1"
                        }
                    ]
                }
            ],
            "changeFlightList": [
                {
                    "journeySeq": "1",
                    "segments": [
                        {
                            "airline": "CX",
                            "flightNum": "391",
                            "equipment": "333",
                            "cabinClass": "ECONOMY",
                            "bookingCode": "B",
                            "departure": "PEK",
                            "arrival": "HKG",
                            "departureDate": "2023-03-31",
                            "arrivalDate": "2023-03-31",
                            "departureTime": "13:40",
                            "arrivalTime": "17:35",
                            "stayTime": 0,
                            "codeShare": "N",
                            "stopover": ""
                        },
                        {
                            "airline": "CX",
                            "flightNum": "617",
                            "equipment": "333",
                            "cabinClass": "ECONOMY",
                            "bookingCode": "A",
                            "departure": "HKG",
                            "arrival": "BKK",
                            "departureDate": "2023-03-31",
                            "arrivalDate": "2023-03-31",
                            "departureTime": "21:50",
                            "arrivalTime": "23:50",
                            "stayTime": 0,
                            "codeShare": "N",
                            "stopover": ""
                        }
                    ]
                }
            ]
        }
    ]
}
3.2.2 Error Response#
{
    "errorCode": "P001",
    "errorMsg": "Invalid authentication."
}

4 Signature#

4.1 Parameters for Signature#

partnerId,partnerKey

4.2 Signature#

Combine partnerId and partnerKey to make MD5 encryption on the final value.
Sign = MD5(partnerId+partnerKey)
Sample
partnerId: abcdefg123456
partnerKey: jkHKhkikdhy258dffj
Sign = MD5(abcdefg123456jkHKhkikdhy258dffj) = d7e99ae9d5c3c7d7113aced071e3ca08

5 Appendix#

5.1 Error Code List#

errorCodeerrorMsgDescription
0okRequest has been processed successfully.
S001System errorSystem error.
P001xxx is illegalRequest parameter is illegal, xxx will display request parameter
B002Partner is not existsPartner does not exist.
B003Illegal signIllegal sign.
B035Concurrency limited. Please contact PKFARE API support team for assistant.Concurrent users contral. Please contact PKFARE API support for assistant.
B037Order is not exist.Order does not exist.
B048Invalid buyerBuyer is invalid.
B130Message is not exist.Schedule change message does not exist.

5.2 Cabin Class#

EnumDescription
ECONOMYEconomy Class
PREMIUM ECONOMYPremium Economy Class
BUSINESSBusiness Class
FIRSTFirst Class

5.3 Type of Travel Document#

EnumDescription
PPassport
NChinese Identity
OOthers

5.4 Passenger Type#

EnumDescription
ADTadult
CHDchildren[2-12 years old]

5.5 Gender#

EnumDescription
MMale
FFemale
Top
Modified at 2024-05-06 02:05:22
Previous
ScheduleChangeNotify
Next
AcknowledgeScheduleChange