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

CheckReimbursed

1 Document Description#

1.1 Function Description#

Through CheckReimbursed API, you are able to request with a order number to check reimbursement status.

1.2 Target Reader#

The CheckReimbursement 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#

EnvironmentURL
Test environmenthttp://api.pkfare.com/refundReimburse/check
Prod environmenthttp://{{apiHost}}/refundReimburse/check
Notes The production environment call address is provided after you finish the API development and testing, and before the official launch. You can replace the {{apiHost}} in the production environment call address with the provided domain name.

1.5 Http Method#

POST

1.6 Request Header#

keyvalue
Content-Typeapplication/x-www-form-urlencoded

1.7 Response Header#

keyvalue
Content-Typeapplication/json

2 Request#

2.1 Request Parameter#

KeyParameter DescriptionType
paramThe value of Basic Request which is encoded by Base64. Basic Request is JSON data structure, please refer to details as following text.Text

2.1.1 Basic Request#

Sample
{
    "authentication": {
        "partnerId": "xxcsRCtssslnHt+bwONbMw=",
        "sign": "4f55459af1e610e872896a3c6"
    },
    "data": {
        "orderNum": "916783592892089401",
    }
}
NameTypeRequired or NotParameter Description
authenticationObjectYesPartner ID and signature, refer to 2.1.2
dataObjectYesRequest data,refer to 2.1.3

2.1.2 Authentication#

NameTypeRequired or NotParameter Description
partnerIdStringYesPartner ID
signStringYesSignature, refer to 4.1 and 4.2

2.1.3 Data#

NameTypeRequired or NotParameter Description
orderNumStringYesPKFARE Order Number

2.2 Request Parameter Construction#

2.2.1 Basic Request as JSON data structure#

{
    "authentication": {
        "partnerId": "xxcsRCtssslnHbwONbMw=",
        "sign": "4f55459078940e872896a3c6"
    },
    "data": {
        "orderNum": "916783592892089401",
    }
}

2.2.2 Encoding Basic Request by Base64#

eyJhdXRoZW50aWNhdGlvbiI6eyJwYXJ0bmVySWQiOiJzSXh4Y3NSQ3Rzc3Nsbkh0K0JpVDRid09OYk13PSIsInNpZ24iOiIyMzRmNTU0NTkwNzg5NDU5YWYxZTYxMGU4NzI4OTZhM2M2In0sImRhdGEiOnsib3JkZXJOdW0iOiI5MTY3ODM1OTI4OTIwODk0MDEiLH19

2.2.3 Request Sample#

POST http://open.pkfare.com/refundReimburse/check
Content-Type: application/x-www-form-urlencoded

param=eyJhdXRoZW50aWNhdGlvbiI6eyJwYXJ0bmVySWQiOiJzSXh4Y3NSQ3Rzc3Nsbkh0K0JpVDRid09OYk13PSIsInNpZ24iOiIyMzRmNTU0NTkwNzg5NDU5YWYxZTYxMGU4NzI4OTZhM2M2In0sImRhdGEiOnsib3JkZXJOdW0iOiI5MTY3ODM1OTI4OTIwODk0MDEiLH19

3 Response#

3.1 Response Sample#

{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "reimbursedOrderNum": "916787120452531002",
        "reimbursedOrderStatus": "Reimbursed",
        "payGate": "Voucher",
        "currency": "USD",
        "voucherList": [
            {
                "lastName": "YANGABC",
                "firstName": "TIFFANY",
                "birthday": "1990-08-23",
                "sex": "F",
                "psgType": "ADT",
                "voucherNumber": "1234567890123",
                "voucherCurrency": "THB",
                "voucherAmount": 222.22,
                "voucherValidFrom": "2023-03-20",
                "voucherValidEnd": "2023-03-22",
                "useFor": [
                    1
                ],
                "usageLimitation": 0
            }
        ],
        "voucherFileId": [
            "cc20fde65a836ad3e1555729c11745eb"
        ]
    }
}

3.2 Response Parameter#

NameTypeRequired or NotParameter Description
errorCodeStringYesError Code,0-Success,Others-Failed
errorMsgStringNoError Message
warningMsgStringNoWarning Message
dataObjectNoReturn data, will not be empty when error code is "0". Refer to3.2.1

3.2.1 data#

NameTypeRequired or NotParameter Description
reimbursedOrderNumStringYesPKFARE order number - Refund Order or Void Order
reimbursedOrderStatusStringYesOrder Status:REFUND, REIMBURSED; VOID, REIMBURSED
payGateStringNoPayment gateway: Prepay, Alipay, Voucher
paySerialNumStringNoPayment serial number
currencyStringYesCurrency
reimbursedAmountBigDecimalYesReimbursed amount
voucherListArrayNoWhen payment gateway is voucher, voucher information will return. Refer to 3.2.2
voucherFileIdObject[String]NoWhen payment gateway is voucher, a file ID may be returned. You can download the file by DownloadFile API.

3.2.2 voucherList#

NameTypeRequired or NotParameter Description
lastNameStringNoLast name
firstNameStringNoFirst Name
birthdayStringNoBirtheay,format[yyyy-mm-dd]
sexStringNoGender
psgTypeStringNoPassenger Type
voucherNumberStringNoVoucher number, for payment gateway as voucher
voucherCurrencyStringNoVoucher currency, for payment gateway as voucher
voucherAmountBigDecimalNoVoucher amount, for payment gateway as voucher
voucherValidFromStringNoVoucher valid date from, for payment gateway as voucher
voucherValidEndStringNoVoucher valid date to, for payment gateway as voucher
useForObject[Integer]NoVoucher usage, for payment gateway as voucher:1-Issue ticket,2-Change ticket,3-Purchase ancillaries product
usageLimitationIntegerNoVoucher usage limitaion, for payment gateway as voucher: 0 - Uncertain, 1-Passenger only, 2-No limitation

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#

Error CodeError MessageDescription
0OkSuccess
P001xxx is illegalRequest parameter is illegal, xxx will display request parameter
B002Partner is not existsPartner is not exists.
B003Illegal signSignature is illegal
B048Invalid buyerBuyer is invalid, please contact PKFARE account manager
S001System errorSystem error
B037Order is not existOrder is not exist
B141Order is not a refund order.Order number in the request is not a refund order
Modified at 2025-02-24 02:17:46
Previous
ReimbursedResultNotify
Next
UploadAttachmentFile