1. Change APIs
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
        POST
      • Change Request
        POST
      • Change Passenger Info
        POST
      • Change Reprice
        POST
      • ChangeRepricePush
        POST
    • 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. Change APIs

ChangeResultPush

1 Function#

Buyer partners should provide a webhook/URL based on HTTP/HTTPS protocol to PKFARE for push change result and airlines PNR. PKFARE will push change ticket numbers when the tickets are issued. In another case, if the change order was rejected, a rejected reason would be provided.

2 Versioning#

VersionSandbox Invoking AddressUpdate
ChangeResultPushThis address is provided by the customer.

3 Character Encoding#

The character code of this API is UTF-8.

4 Request#

The request is sent by PKFARE API. Requesting method would be POST.

4.1 Schema#

NameTypeParameter DescriptionSample
Basic Parameter
orderNumString[PKFARE] order number1012674912
statusStringOrder status, it contains: CHANGED, or REJECTEDCHANGED
rejectReasonStringReject reasonchange is not permitted as per fare rules.
remarkStringReject reason remark-
parentOrderNumStringParent order number of this order96848725690201
refOrderNumStringMain order number, it could be considered as the original ticketing order number, it will relate to multiple orders if VOID/CHANGE/REFUND requested.943473218357
informTypeStringInclude Ticket_Issued, Ticket_Reissued, Ticket_ChangeTicket_Change
airPnrStringAirline PNREDTCZP
pnrStringGDS PNREDTCZP
pnrListArrayPNR list, refer to pnrList-
passengersArrayPassenger list, refer to passengers-
paymentGateStringPayment gateALIPAY
serialNumStringPayment serial number2013012200021000200172105074
merchantOrderStringMerchant order number (for ALIPAY only)ALIPAY_20161101105225_1028814703
permitVoidIntegerAllow to void ticket or not. [1-yes, 0-not allowed]1
lastVoidTimeStringVoiding deadline. Voiding operation would not be allowed after lastVoidTime. (GMT) [yyyy-mm-dd hh : mm : ss]2023-01-01 13:00:00
voidServiceFeeBigDecimalVoid service fee5.00
currencyStringCurrency for void service feeUSD
buyerOrderStringBuyerOrder1234567
dataObjectInclude remark field for reference-
passengers
passengerIndexStringPassenger sequence no. Positive and continuous integer starting from 1. If this booking contains infants. The passengerIndex is all the same as those in the booking request. If no infant, the passengerIndex(s) are generated by the system automatically.3
birthdayStringBirthday, format[yyyy-mm-dd]2000-01-01
cardExpiredDateStringTravel document expired date, format[yyyy-mm-dd]2000-01-01
cardNumStringTravel document numberP1234567
cardTypeStringTravel document type including P for Passport, N for Chinese Identity and O for Others.P
firstNameStringFirst nameJANGO
lastNameStringLast nameWANG
nationalityStringNationality [country code]CN
psgTypeStringPassenger type, including ADT for adults, CHD for children [age 2-12] and INF for infants [age 0-2, no seat]ADT
sexStringGender, including M for male, F for femaleF
associatedPassengerIndexIntegerThe associated adult passengerIndex. Only infant passengers have this parameter.1
ticketNumStringTicket number, multiple numbers will be separated by '/', like 9991234567890/99912345678911122334455667
pnrList
segmentNoIntegerSegment No.1
departureStringDeparture [IATA airport code]BKK
arrivalStringDestination [IATA airport code]CNX
flightNumStringFlight No.FD112
cabinClassStringCabin class including ECONOMY, PREMIUM ECONOMY, BUSINESS, and FIRST.ECONOMY
bookingCodeStringCabin codeE
pnrStringPNREDTCZP
airPnrStringAirline PNREDTCZP
ticketNumsArrayPassengers and corresponding ticket numbers, refer to ticketNum-
ticketNums
passengerIndexIntegerPassenger sequence no. Consistent with the passengerIndex under each passenger.1
ticketNumStringTicket number9991234567890

4.2 Example#

1.
Request Sample (Two Adults, One Way Trip with Two Segments)
plainCopy code{
    "airPnr": "15CUCZ|25CUCZ|35CUCZ|45CUCZ",
    "currency": "CNY",
    "informType":"Ticekt_Change",
    "parentOrderNum":"916716911545376001",
    "refOrderNum":"9167169115453760"
    "merchantOrder": "PREPAY_20221222145440_916716911545376001_4677",
    "orderNum": "916716911545376003",
    "status": "CHANGED",
    "passengers": [
        {
            "passengerIndex": 1,
            "birthday": "1995-06-15",
            "cardExpiredDate": "2024-05-01",
            "cardNum": "E29384798",
            "cardType": "PP",
            "firstName": "Wei",
            "lastName": "Chen",
            "nationality": "CN",
            "psgType": "ADT",
            "sex": "M",
            "ticketNum": "1T9LO2/3T9LO2"
        },
        {
            "passengerIndex": 2,
            "birthday": "1993-04-01",
            "cardExpiredDate": "2024-07-01",
            "cardNum": "E05849326",
            "cardType": "PP",
            "firstName": "Xiaotong",
            "lastName": "Li",
            "nationality": "CN",
            "psgType": "ADT",
            "sex": "F",
            "ticketNum": "2T9LO2/4T9LO2"
        }
    ],
    "paymentGate": "PREPAY",
    "permitVoid": 0,
    "pnr": "187UIJHNJUIJIU8789|287UIJHNJUIJIU8789|387UIJHNJUIJIU8789|487UIJHNJUIJIU8789",
    "pnrList": [
        {
            "airPnr": "15CUCZ",
            "arrival": "NRT",
            "bookingCode": "H",
            "cabinClass": "ECONOMY",
            "departure": "HKG",
            "flightNum": "812",
            "pnr": "187UIJHNJUIJIU8789",
            "segmentNo": 1,
            "ticketNums": [
                {
                    "passengerIndex": 1,
                    "ticketNum": "1T9LO2"
                }
            ]
        },
        {
            "airPnr": "25CUCZ",
            "arrival": "NRT",
            "bookingCode": "H",
            "cabinClass": "ECONOMY",
            "departure": "HKG",
            "flightNum": "812",
            "pnr": "287UIJHNJUIJIU8789",
            "segmentNo": 1,
            "ticketNums": [
                {
                    "passengerIndex": 2,
                    "ticketNum": "2T9LO2"
                }
            ]
        },
        {
            "airPnr": "45CUCZ",
            "arrival": "MEX",
            "bookingCode": "H",
            "cabinClass": "ECONOMY",
            "departure": "NRT",
            "flightNum": "180",
            "pnr": "487UIJHNJUIJIU8789",
            "segmentNo": 2,
            "ticketNums": [
                {
                    "passengerIndex": 2,
                    "ticketNum": "4T9LO2"
                }
            ]
        },
        {
            "airPnr": "35CUCZ",
            "arrival": "MEX",
            "bookingCode": "H",
            "cabinClass": "ECONOMY",
            "departure": "NRT",
            "flightNum": "180",
            "pnr": "387UIJHNJUIJIU8789",
            "segmentNo": 2,
            "ticketNums": [
                {
                    "passengerIndex": 1,
                    "ticketNum": "3T9LO2"
                }
            ]
        }
    ],
    "serialNum": "PREPAY_20221222145440_916716911545376001_4677"
}

5 Response#

5.1 Schema#

NameTypeParameter DescriptionSample
errorCodeStringerror code0
errorMsgStringerror messageok

5.2 Example#

1.
Success Response
{"errorCode":0,"errorMsg":"ok"}
Modified at 2024-08-15 03:57:21
Previous
UploadAttachmentFile API
Next
Change Reshop