1. AcceptScheduleChange
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. AcceptScheduleChange

AcceptScheduleChange

1 Document Description#

1.1 Function Description#

Through AcceptScheduleChange API, you are able to accept a the schedule change by passenger. Sensitivity Level in the schedule change message indicated whether it required to be accept or not. Airline may cancel the seat due to passenger does not accept schedule change. It is highly appreciated to use this API to accept schedule change.

1.2 Target Reader#

The AcceptScheduleChange 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/acceptScheduleChange
Address in production environment: http://pending.com/scheduleChange/acceptScheduleChange
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/json;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
messageIdStringYesPKFARE message ID. You can get specific message by indicating the messageId1075841601001
emailStringYesEmail address for contacting after we completed accpeting schedule change procedureabc@abc.com
passengersArrayYesPassenger information who accept the schedule change-
2.1.4 Passengers#
NameTypeRequired or NotParameter DescriptionSample
lastNameStringYesLast namewang
firstNameStringYesFirst namejia
birthdayStringYesDate of birth [yyyy-mm-dd]1988-10-10
sexStringYesGender, M - male, F - Female. Refer to 5.4M
psgTypeStringYesADT - adult, CHD - child , INF-Infant. Refer to 5.3CHD
cardTypeStringNoTravel document type. Refer to 5.2P
cardNumStringNoTravel document numberP78921345
cardExpiredDateStringNoTravel document expiration date, [yyyy-mm-dd]2025-03-03
nationalityStringYesNationality of the passenger, 2 letters country codeCN

2.2 Request Sample#

2.2.1 JSON Format Sample#
{
    "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"
    }
}
2.2.2 Base64 Encryption#
Use BASE64 to encode request, and get result as below:
ewogICAgImRhdGEiOiB7CiAgICAgICAgIm1lc3NhZ2VJZCI6ICIyOTQ0NjY2IiwKICAgICAgICAiZW1haWwiOiAiamF5bGVlLmxpQHBrZmFyZS5jb20iLAogICAgICAgICJwYXNzZW5nZXJzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAiYmlydGhkYXkiOiAiMjAwMy0wNC0yMCIsCiAgICAgICAgICAgICAgICAiZmlyc3ROYW1lIjogIkNIUklTVE9QSEVSIiwKICAgICAgICAgICAgICAgICJsYXN0TmFtZSI6ICJLSU5HIiwKICAgICAgICAgICAgICAgICJuYXRpb25hbGl0eSI6ICJVUyIsCiAgICAgICAgICAgICAgICAicHNnVHlwZSI6ICJBRFQiLCAKICAgICAgICAgICAgICAgICJzZXgiOiAiTSIsCiAgICAgICAgICAgICAgICAiY2FyZFR5cGUiOiJQIiwKICAgICAgICAgICAgICAgICJjYXJkTnVtIjoiUDc2NTQxMjM0IiwKICAgICAgICAgICAgICAgICJjYXJkRXhwaXJlZERhdGUiOiIyMDI1LTA1LTEwIgogICAgICAgICAgICB9CiAgICAgICAgXQogICAgfSwKICAgICJhdXRoZW50aWNhdGlvbiI6IHsKICAgICAgICAicGFydG5lcklkIjogIlJrc1ZTWDdQZlptV1lzQ0Q3TTQ9IiwKICAgICAgICAic2lnbiI6ICIxN2U3MDdiNWQ5ZGFlODQ1OTA2NWRiYjEzOWU1ZjFiZCIKICAgIH0KfQ==
2.2.3 Sending Encrypted Request Sample#
This sample is for reference only:
http://pending.com/AcknowledgeScheduleChange?param=ewogICAgImRhdGEiOiB7CiAgICAgICAgIm1lc3NhZ2VJZCI6ICIyOTQ0NjY2IiwKICAgICAgICAiZW1haWwiOiAiamF5bGVlLmxpQHBrZmFyZS5jb20iLAogICAgICAgICJwYXNzZW5nZXJzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAiYmlydGhkYXkiOiAiMjAwMy0wNC0yMCIsCiAgICAgICAgICAgICAgICAiZmlyc3ROYW1lIjogIkNIUklTVE9QSEVSIiwKICAgICAgICAgICAgICAgICJsYXN0TmFtZSI6ICJLSU5HIiwKICAgICAgICAgICAgICAgICJuYXRpb25hbGl0eSI6ICJVUyIsCiAgICAgICAgICAgICAgICAicHNnVHlwZSI6ICJBRFQiLCAKICAgICAgICAgICAgICAgICJzZXgiOiAiTSIsCiAgICAgICAgICAgICAgICAiY2FyZFR5cGUiOiJQIiwKICAgICAgICAgICAgICAgICJjYXJkTnVtIjoiUDc2NTQxMjM0IiwKICAgICAgICAgICAgICAgICJjYXJkRXhwaXJlZERhdGUiOiIyMDI1LTA1LTEwIgogICAgICAgICAgICB9CiAgICAgICAgXQogICAgfSwKICAgICJhdXRoZW50aWNhdGlvbiI6IHsKICAgICAgICAicGFydG5lcklkIjogIlJrc1ZTWDdQZlptV1lzQ0Q3TTQ9IiwKICAgICAgICAic2lnbiI6ICIxN2U3MDdiNWQ5ZGFlODQ1OTA2NWRiYjEzOWU1ZjFiZCIKICAgIH0KfQ==

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

3.2 Response Example#

3.2.1 Normal Response#
{
    "errorCode":"0",
    "errorMsg":"ok"
}
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.
B037Order is not exists.Order does not exist.
B048Invalid buyerBuyer is invalid.
B130Message is not exist.Schedule change message does not exist.
B131Accept reject, duplicated to accept schedule change.One passenger is allowed to accept once, if the passenger accept again, this message will be returned.
B132Accept reject, wrong passenger indicated.The passenger is not in the order, please kindly check.
B133Accept reject, flight has departured.After flight is departured, system will not allow to accept.
B186The 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.
B187Infant confirmation cannot be done separately.Infant confirmation cannot be done separately.

5.2 Type of Travel Document#

EnumDescription
PPassport
NChinese Identity
OOthers

5.3 Passenger Type#

EnumDescription
ADTadult
CHDchildren[2-12 years old]

5.4 Gender#

EnumDescription
MMale
FFemale
Top
Modified at 2024-05-06 02:07:12
Previous
AcknowledgeScheduleChange
Next
GetScheduleChangeReply