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

Refund Pricing

POST
/json/refundPricing/generate

Function#

This API is used for price inquiries for refunded tickets. The purchaser request initiates an application according to the order number and the ticket number for which the refund is to be processed. After the application and verification is successful, the system will generate a Refund Pricing inquiry record in the system.

Note This API provides Postman examples, which you can obtain by contacting your account manager.

Error Code List#

error codeerror messagedescription
0Oksuccess
P001xxx is illegalinvalid parameters
B002Partner is not existsinvalid partner
B003Illegal signIllegal sign
B048Invalid buyerInvalid buyer
B037Order is not existOrder is not exist
S001System errorsystem error
B134Refund is not applicable for passenger [pax name]The passenger and ticket in the application already have an associated voided ticket or refund order and the status of the voided ticket or refund order is valid, and it is not allowed to initiate another refund offer application.
B142Passenger or ticket number is not in the orderThe order number in the request does not match the passenger or ticket number
B143Involuntary Refund is not applicable to check refundable price, please request refund request directly.Refund Pricing does not provide quotes for Involuntary Refund.
B136This is not all passengers and routings of the order, please kindly check.The parameter "allPaxOfOrder" is 1, but part of the ticket information is missing from the pnrList.
B146Order#[Order number] is not applicable for refund.The order in the request is not a ticket issuance or change order and cannot be requested for a refund.
B140Refund is not applicable for ticket number [ticket number]The ticket in the application is found to have a status of USED for all segments after the ticket is extracted, and it is not allowed to initiate a refund offer request again.
B147Ticket(s) [ticket number] is No-show, refund is not applicable.The ticket in the application has exceeded the No-show time limit and no refunds are allowed.
B145Passenger(s) must request to refund same routing for one time. If routing is varies, please request per passenger.In the case of multiple passengers, the itineraries for which refunds are requested must be the same. If the itineraries are not identical, the itinerary must be as requested by the passenger
B148UploadFileId is not exist.The Upload Filed ID in the request does not exist
B150This order was changed, please kindly use change order number.The order number specified in the request is the original order, and the passenger+segment specified in the PnrList already has a change order
B152pnrList information is not same as order, please kindly check.In the request, the journey of the order number and the information of the pnrList do not match
B166Please request refund for whole routings of the ticket(s).For some GDS orders, the system rules do not allow partial refund, please re-try by selecting the whole journey
B168Ticket is not applicable to check refund pricing, please call refund request directly.In the request, if the ticket has been confirmed and reissued, the rules could not be applied automatically and please raise Refund Request directly
B190Please select all passengers and segments before submitting.In cases of refund for the whole order, please select every passengers and segments before sending the request.

Request

Body Params application/json

Example
{
    "authentication": {
        "partnerId": "",
        "sign": ""
    },
    "data": {
        "allPaxOfOrder": 0,
        "canceledReservationBeforeDeparture": 0,
        "refundReason": 2,
        "refundType": "1",
        "uploadedFileIds": [
            "42cf3947df03da6ce1555729c11745eb"
        ],
        "orderNum": "916783592892089401",
        "pnrList": [
            {
                "arrival": "SEA",
                "bookingCode": "string",
                "cabinClass": "string",
                "departure": "LAX",
                "flightNum": "DL1473",
                "segmentNo": 1,
                "ticketNums": [
                    {
                        "birthday": "2003-05-11",
                        "cardNum": "string",
                        "cardType": "string",
                        "firstName": "Joshua",
                        "pnr": "AB8SED",
                        "airPnr": "AB8SED",
                        "lastName": "Perez",
                        "sex": "M",
                        "ticketNum": "123456"
                    }
                ]
            }
        ]
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.pkfare.com/json/refundPricing/generate' \
--header 'Content-Type: application/json' \
--data '{
    "authentication": {
        "partnerId": "",
        "sign": ""
    },
    "data": {
        "allPaxOfOrder": 0,
        "canceledReservationBeforeDeparture": 0,
        "refundReason": 2,
        "refundType": "1",
        "uploadedFileIds": [
            "42cf3947df03da6ce1555729c11745eb"
        ],
        "orderNum": "916783592892089401",
        "pnrList": [
            {
                "arrival": "SEA",
                "bookingCode": "string",
                "cabinClass": "string",
                "departure": "LAX",
                "flightNum": "DL1473",
                "segmentNo": 1,
                "ticketNums": [
                    {
                        "birthday": "2003-05-11",
                        "cardNum": "string",
                        "cardType": "string",
                        "firstName": "Joshua",
                        "pnr": "AB8SED",
                        "airPnr": "AB8SED",
                        "lastName": "Perez",
                        "sex": "M",
                        "ticketNum": "123456"
                    }
                ]
            }
        ]
    }
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "data": {
        "lastConfirmTime": "2024-04-27 11:24:10",
        "merchantFee": 0,
        "needUploadFileId": 0,
        "orderNum": "917138447433426701",
        "passengerPriceList": [
            {
                "birthday": "1981-06-19",
                "cardType": "",
                "firstName": "KIM",
                "lastName": "JUNGWOOK",
                "segmentList": [
                    {
                        "airPnr": "LZPIZS",
                        "arrival": "TAG",
                        "bookingCode": "H",
                        "cabinClass": "ECONOMY",
                        "departure": "PUS",
                        "flightNum": "7C2151",
                        "pnr": "LZPIZS",
                        "segmentNo": 1,
                        "ticketNum": "8065401551090"
                    }
                ],
                "sex": "M",
                "solutions": [
                    {
                        "currency": "USD",
                        "formOfPayment": "Depends on payment method",
                        "nonRefundableAmount": 0,
                        "paidAmount": 86.24,
                        "refundAmount": 9.02,
                        "refundServiceFee": 8,
                        "usedAmount": 69.22
                    }
                ]
            },
            {
                "birthday": "2020-06-26",
                "cardType": "",
                "firstName": "KIM",
                "lastName": "JINSEO",
                "segmentList": [
                    {
                        "airPnr": "LZPIZS",
                        "arrival": "TAG",
                        "bookingCode": "H",
                        "cabinClass": "ECONOMY",
                        "departure": "PUS",
                        "flightNum": "7C2151",
                        "pnr": "LZPIZS",
                        "segmentNo": 1,
                        "ticketNum": "8065401551092"
                    }
                ],
                "sex": "M",
                "solutions": [
                    {
                        "currency": "USD",
                        "formOfPayment": "Depends on payment method",
                        "nonRefundableAmount": 0,
                        "paidAmount": 86.24,
                        "refundAmount": 9.02,
                        "refundServiceFee": 8,
                        "usedAmount": 69.22
                    }
                ]
            },
            {
                "birthday": "2016-06-27",
                "cardType": "",
                "firstName": "KIM",
                "lastName": "RIAN",
                "segmentList": [
                    {
                        "airPnr": "LZPIZS",
                        "arrival": "TAG",
                        "bookingCode": "H",
                        "cabinClass": "ECONOMY",
                        "departure": "PUS",
                        "flightNum": "7C2151",
                        "pnr": "LZPIZS",
                        "segmentNo": 1,
                        "ticketNum": "8065401546696"
                    }
                ],
                "sex": "F",
                "solutions": [
                    {
                        "currency": "USD",
                        "formOfPayment": "Depends on payment method",
                        "nonRefundableAmount": 0,
                        "paidAmount": 86.24,
                        "refundAmount": 9.02,
                        "refundServiceFee": 8,
                        "usedAmount": 69.22
                    }
                ]
            },
            {
                "birthday": "1982-11-30",
                "cardType": "",
                "firstName": "LEE",
                "lastName": "SUKKYOUNG",
                "segmentList": [
                    {
                        "airPnr": "LZPIZS",
                        "arrival": "TAG",
                        "bookingCode": "H",
                        "cabinClass": "ECONOMY",
                        "departure": "PUS",
                        "flightNum": "7C2151",
                        "pnr": "LZPIZS",
                        "segmentNo": 1,
                        "ticketNum": "8065401546695"
                    }
                ],
                "sex": "F",
                "solutions": [
                    {
                        "currency": "USD",
                        "formOfPayment": "Depends on payment method",
                        "nonRefundableAmount": 0,
                        "paidAmount": 86.24,
                        "refundAmount": 9.02,
                        "refundServiceFee": 8,
                        "usedAmount": 69.22
                    }
                ]
            }
        ],
        "refundPriceId": "17142098504554584",
        "refundPricingStatus": "refund_priced",
        "refundReason": 0,
        "refundType": 0
    },
    "errorCode": "0",
    "errorMsg": "ok",
    "success": true
}
🟢200Error
Modified at 2026-04-21 08:11:40
Previous
ReimbursedResultNotify
Next
CheckRefundPricing