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

TicketingNumPush_V3

1 Document Description#

1.1 Function Description#

Buyer partners should provide a ticketing number reception service based on HTTP/HTTPS protocol to PKFARE for pushing back ticket numbers.
PKFARE will push back the ticketing numbers when the tickets are issued.
Note TicketingNumPush_V3 has different parameter structure from TicketingNumPush and TicketingNumPush_V2 API. PNRList information is added in TicketingNumPush_V3 API.

1.2 Target Reader#

The TicketingNumPush_V3 API document targets developers who work in the fields of network development, maintenance as well as management, and 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#

This address URL is provided by the customer.

2 Request Parameter#

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

2.1 Parameter Construction#

2.1.1 Basic Parameter#
NameTypeParameter DescriptionSample
orderNumString[PKFARE] order number1012674912
airPnrStringairline PNREDTCZP|R25TZS
pnrStringGDS PNREDTCZP|R25TZS
pnrListArrayPNR list, refer to 2.1.3-
passengersArraypassenger list, refer to 2.1.2-
paymentGateStringpayment gateALIPAY
serialNumStringpayment serial number2013012200021000200172105074
merchantOrderStringmerchant order number (for ALIPAY only)ALIPAY_20161101105225_1028814703
permitVoidIntegerallow to void ticket or not. [1-yes, 0-not allow]1
lastVoidTimeStringvoiding deadline. Voiding operation would not be allow after lastVoidTime. (GMT) [yyyy-mm-dd hh : mm :ss]2018-01-01 13:00:00
voidServiceFeeBigDecimalvoid service fee5.00
currencyStringcurrency for void service feeUSD
buyerOrderStringbuyerOrder1234567
dataObjectInclude remark field for reference-
2.1.2 passengers#
NameTypeParameter DescriptionSample
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. Refer to 4.1P
firstNameStringfirst nameJANGO
lastNameStringlast nameWANG
nationalityStringnationality [country code]CN
psgTypeStringpassenger type, refer to 4.2ADT
sexStringgender, Refer to 4.3F
ticketNumStringticket number, multiple number will be separated by '/', like9991234567890/99912345678911122334455667
2.1.3 pnrList#
NameTypeParameter DescriptionSample
segmentNoIntegersegment No.1
departureStringdeparture[IATA airport code]BKK
arrivalStringdestination[IATA airport code]CNX
flightNumStringflight No.FD112
cabinClassStringcabin class, refer to 4.4ECONOMY
bookingCodeStringcabin codeE
pnrStringPNREDTCZP
airPnrStringairline PNREDTCZP
ticketNumsArraypassengers and corresponding ticket num,refer to 2.1.4-
2.1.4 ticketNums#
NameTypeParameter DescriptionSample
passengerIndexIntegerpassenger No.1
ticketNumStringticket number9991234567890

2.2 Request Sample#

{
    "airPnr": "15CUCZ|25CUCZ|35CUCZ|45CUCZ",
    "currency": "CNY",
    "data": {
        "remark": {
            "code": "1",
            "msg": "product type is mismatched"
        }
    },
    "merchantOrder": "PREPAY_20221222145440_916716911545376001_4677",
    "orderNum": "916716911545376001",
    "passengers": [
        {
            "birthday": "1995-06-15",
            "cardExpiredDate": "2024-05-01",
            "cardNum": "E29384798",
            "cardType": "PP",
            "firstName": "BOB",
            "lastName": "BOB",
            "nationality": "CN",
            "psgType": "ADT",
            "sex": "M",
            "ticketNum": "1T9LO2/3T9LO2"
        },
        {
            "birthday": "1993-04-01",
            "cardExpiredDate": "2024-07-01",
            "cardNum": "E05849326",
            "cardType": "PP",
            "firstName": "JACK",
            "lastName": "LI",
            "nationality": "CN",
            "psgType": "ADT",
            "sex": "F",
            "ticketNum": "2T9LO2/4T9LO2"
        }
    ],
    "paymentGate": "PREPAY",
    "permitVoid": 0,
    "pnr": "187UIJHNJUIJIU8789|287UIJHNJUIJIU8789|387UIJHNJUIJIU8789",
    "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"
}

3 Response Parameter#

This response is returned by the buyer partners. Please respond as the format we provided below. Otherwise system is not able to recognize the response. If the response is not with 'errorCode' 0, system would try to push the ticket numbers to partners' URL again for 4 times.

3.1 Response Parameter Construction#

NameTypeParameter DescriptionSample
errorCodeStringerror code0
errorMsgStringerror messageok

3.2 Response Sample#

3.2.1 Normal Response#
{"errorCode":0,"errorMsg":"ok"}
3.2.2 Error Response#
{"errorCode":1,"errorMsg":"Failure reason"}
###4 Appendix

4.1 Type of Travel Document#

EnumDescription
PPassport
NChinese Identity
OOthers

4.2 Passenger Type#

EnumDescription
ADTadult
CHDchildren [2-12 years old]

4.3 Gender#

EnumDescription
MMale
FFemale

4.4 Cabin Class#

EnumDescription
ECONOMYeconomy class
PREMIUM ECONOMYpremium economy class
BUSINESSbusiness class
FIRSTfirst class
Top
Modified at 2024-05-06 01:42:19
Previous
TicketingNumPush_V2
Next
TicketIssuanceNotify