1. Refund 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
        POST
      • CheckRefundPricing
        POST
      • RefundRequest
        POST
      • CheckRefund
        POST
      • CheckReimbursed
        POST
      • DownloadAttachmentFile API
        POST
      • UploadAttachmentFile API
        POST
    • 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. Refund APIs

RefundResultNotify

1 Document Description#

1.1 Function#

This API could push the refund result to your endpoint, once the ticket has been refunded.
If you will integrate this API, please kindly provide a reception service URL based on HTTP/HTTPS protocol to PKFARE. And we will pre-set it in the system.

1.2 Target Reader#

The RefundResultNotify interface documentation is intended for web developers, maintenance and managers with some web development skills, an understanding of one of the major development languages such as Java, Python, ASP.NET, PHP, Node.js, and a basic knowledge of HTTP network protocols.

1.3 Character Encoding#

The character code of this API is UTF-8.

1.4 URLs#

The address URL is provided by buyer partner, PKFARE will request it.

1.5 Http Method#

POST

1.6 Request Header#

keyvalue
Content-Typeapplication/json

1.7 Response Header#

keyvalue
Content-Typeapplication/json

2 Request#

2.1 Request Sample#

{
    "orderNum": "916749866867277805",
    "parentOrderNum": "916749866867277803",
    "refOrderNum": "9167498668672778",
    "createTime": "2023-03-10 10:04:02",
    "passengerPriceList": [
        {
            "segmentList": [
                {
                    "segmentNo": 2,
                    "departure": "YVR",
                    "arrival": "MEX",
                    "flightNum": "AC996",
                    "cabinClass": "ECONOMY",
                    "bookingCode": "P"
                }
            ],
            "lastName": "YANG",
            "firstName": "TIFFANYBVC",
            "cardType": "P",
            "cardNum": "E07700466",
            "sex": "F",
            "birthday": "1990-08-23"
        }
    ],
    "refundType": "0",
    "refundReason": "0",
    "orderStatus": "Refund, to be reimbursed",
    "pnr": "NGLVYT",
    "platingCarrier": "AC",
    "journeys": [
        {
            "journeyTime": 815,
            "segments": [
                {
                    "airline": "AC",
                    "flightNum": "996",
                    "equipment": "7M8",
                    "cabinClass": "ECONOMY",
                    "bookingCode": "P",
                    "departure": "YVR",
                    "arrival": "MEX",
                    "departureTerminal": "",
                    "arrivalTerminal": "",
                    "departureDate": "2023-02-17",
                    "arrivalDate": "2023-02-17",
                    "departureTime": "16:30",
                    "arrivalTime": "23:50",
                    "flightTime": 440,
                    "codeShare": "N"
                }
            ],
            "departureTime": "10:15",
            "arrivalTime": "23:50",
            "departureDate": "2023-02-17",
            "arrivalDate": "2023-02-17"
        }
    ]
}

2.2 Request Parameter#

NameTypeRequired or NotParameter Description
orderNumStringYesPKFARE Refund Order number
parentOrderNumStringNoPKFARE Parent Order number of this refund order, it could be issued order number or change order number
refOrderNumStringYesPKFARE general order number, it may include more orders
createTimeStringYesOrder creation time, format yyyy-MM-dd HH:mm:ss,Beijing time(UTC+0)
passengerPriceListArrayYesPassenger and refund pricing information, refer to 2.2.1
refundTypeIntegerYesRefund Type:0-Voluntary , 1-Involuntary
refundReasonIntegerYesRefund Reason:0-Personal Reason, 1-Illness Reason, 2-Schedule Change Reason, 3-Crisis Reason, 4-Visa Refusal
orderStatusStringYesOrder stauts
pnrStringNoPNR of Order
airPnrStringNoAirline PNR of order
platingCarrierStringYesPlating carrier
journeysArrayYesJourney information, refer to 2.2.2

2.2.1 passengerPriceList#

NameTypeRequried or NotParameter Description
segmentListArrayYesSegment information, refer to2.2.3
lastNameStringYesLast name
firstNameStringYesFirst name
cardTypeStringNoTravel document type
cardNumStringNoTravel document number
cardExpiredDateStringNoTravel document expired date
nationalityStringYesNationality【Country 2 letters code】
psgTypeStringYesPassenger type
sexStringYesGender
birthdayStringYesBirthday,format [yyyy-MM-dd]
solutionsArrayNoRefund pricing information, refer to 2.2.4

2.2.2 journeys#

NameTypeRequired or NotParameter Description
journeyTimeLongYesJourney Time,Unit:minutes
transferCountIntegerNoTransfer count
departureDateStringYesDeparture date, format [yyyy-mm-dd](local time)
arrivalDateStringYesArrival date, format [yyyy-mm-dd](local time)
departureTimeStringYesDeparture time, format [hh:mm](local time)
arrivalTimeStringYesArrival time, format [hh:mm](local time)
segmentsArrayYesSegment information, refer to 2.2.5

2.2.3 segmentList#

NameTypeRequired or NotParameter Description
segmentNoIntegerYesSegment sequency, start from "1"
departureStringYesDeparture airport code
arrivalStringYesArrival airport code
flightNumStringYesFlight number
cabinClassStringYesCabin class
bookingCodeStringYesBooking code
pnrStringNoPNR
airPnrStringNoAirline PNR
ticketNumStringNoTicket number

2.2.4 solutions#

NameTypeRequired or NotParameter Description
currencyStringYesCurrency
paidAmountBigDecimalYesPaid amount
usedAmountBigDecimalYesUsed fare and tax amount
nonRefundableAmountBigDecimalYesnonrefundable amount(Includes airline penalties, non-refundable taxes, and supplier ticketing service fees)
refundServiceFeeBigDecimalYesRefund service fee
refundAmountBigDecimalYesRefund amount
FormOfPaymentStringYesRefund form of payment:Depends on payment method, Airline voucher, Depends on refund result, EMD
voucherNumberStringNoVoucher number, for refund form of payment as Airline voucher or EMD
voucherFileIdStringNoVoucher File ID, for refund form of payment as Airline voucher. You can download this file by DownloadFile API
voucherCurrencyStringNoVoucher currency, for refund form of payment as Airline voucher or EMD
voucherAmountBigDecimalNoVoucher amount, for refund form of payment as Airline voucher or EMD
voucherValidFromStringNoVoucher valid date from, for refund form of payment as Airline voucher or EMD
voucherValidEndStringNoVoucher valid date to, for refund form of payment as Airline voucher or EMD
useForObject[Integer]NoUsage of Airline voucher or EMD:1-Issue ticket,2-Change ticket,3-Purchase ancillaries product
usageLimitationIntegerNoUsage limitation: 0 - Uncertain, 1-Passenger only, 2-No limitation

2.2.5 segments#

NameTypeRequired or NotParameter Description
airlineStringYesAirline code
flightNumStringYesFlight number
equipmentStringYesEquipment code
cabinClassStringYesCabin class
bookingCodeStringYesBooking code
departureStringYesDeparture airport code
arrivalStringYesArrival airport code
departureTerminalStringNoDeparture terminal
arrivalTerminalStringNoArrival terminal
departureDateStringYesDeparture Date, format [yyyy-mm-dd](local time)
arrivalDateStringYesArrival Date, format [yyyy-mm-dd](local time)
departureTimeStringYesDeparture time, format [hh:mm](local time)
arrivalTimeStringYesArrival time, format [hh:mm] (local time)
flightTimeIntegerYesFlying time, Unit: minutes
stayTimeIntegerNoStay time, Unit: minutes
codeShareStringYesCode-share flight identifier [Y-Yes, N-No]
opFltNoStringNoOperating flight number
opFltAirlineStringNoOperating airline
stopoverStringNoStopover airport code

3 Response#

3.1 Response Sample#

{
    "errorCode": "0",
    "errorMsg": "ok"
}

3.2 Response Parameter#

This response is returned by the buyer partners. Please respond in the format we provided below. Otherwise system is not able to recognize the response. If the response is not with 'errorCode' 0, it will be recognized as failed.
NameTypeRequired or NotParameter Description
errorCodeStringYesError Code, 0-Success,Other-Failed;If returned as "Failed", system will repush for 5 times.
errorMsgStringNoError Message

4.Repush#

If the response is not able to recorgnized the response or the response is not with 'errorCode' 0, system will repush for 5 times.
Modified at 2024-04-27 13:18:26
Previous
AcceptScheduleChange
Next
ReimbursedResultNotify