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_V2

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_V2 has different parameter structure from TicketingNumPush API. Voiding information is added in TicketingNumPush_V2 API.

1.2 Target Reader#

The TicketingNumPush 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 PNRCA/JFDKHF
pnrStringGDS PNRHYFBKU
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
ticketNumsArraypassengers and corresponding ticket num,refer to 2.1.2-
buyerOrderStringbuyerOrder1234567
dataObjectInclude remark field for reference-
2.1.2 TicketNums#
NameTypeParameter DescriptionSample
ticketNumStringticket number, multiple number will be separated by '/', like9991234567890/99912345678911122334455667
lastNameStringlast nameWANG
firstNameStringfirst nameJANGO
cardTypeStringtravel document type. Refer to 4.1P
cardNumStringtravel document numberP1234567
sexStringgender, Refer to 4.2F
birthdayStringbirthday, format[yyyy-mm-dd]2000-01-01

2.2 Request Sample#

{
    "orderNum": "1010792124",
    "buyerOrder": "1234567",
    "airPnr": "CA/JFDKHF",
    "pnr": "HYFBKU"
    "paymentGate": "ALIPAY",
    "serialNum": "2013012200021000200172105074",
    "merchantOrder": "ALIPAY_20161101105225_1028814703",
    "permitVoid": 1,
    "lastVoidTime": "2018-01-03 13:00:00",
    "voidServiceFee": 20.00,
    "currency": "CNY",
    "data":
    {
        "remark": {}
        }
    "ticketNums": [
            {
                "birthday": "1980-10-11",
                "cardNum": "G154017482",
                "cardType": "P",
                "firstName": "MARY",
                "lastName": "SMITH",
                "sex": "F",
                "ticketNum": "9990000000001"
            },
            {
                "birthday": "1980-10-11",
                "cardNum": "G17492581",
                "cardType": "P",
                "firstName": "JO",
                "lastName": "SMITH",
                "sex": "M",
                "ticketNum": "9990000000002"
            },
            {
                "birthday": "2016-08-01",
                "cardNum": "G58396302",
                "cardType": "P",
                "firstName": "ANGEL",
                "lastName": "SMITH",
                "sex": "F",
                "ticketNum": "9990000000003"
            }
        ]
}

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 Gender#

EnumDescription
MMale
FFemale
Top
Modified at 2024-05-06 01:41:48
Previous
TicketingNumPush
Next
TicketingNumPush_V3