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

RequestTicketing

1 Document Description#

1.1 Function Description#

Using the TicketingRequest API, users can send ticket issuance reminders for flight orders.
1.
You can only prompt ticket issuance for flight orders. It does not support ticket issuance reminders for ancillary orders.
2.
It supports simultaneous ticket issuance reminders for multiple orders. The same order can only be prompted once within a 10-minute period.
Note This API provides Postman examples, which you can obtain by contacting your account manager.

1.2 Target Reader#

The RequestTicketing 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/requestTicketing
Prod environmenthttp://{{apiHost}}/requestTicketing

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

NameTypeRequired or NotParameter Description
authenticationObjectYesPartner ID and signature, refer to 2.1.2
dataObjectYesRequest, 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
issuingOrdersPushArrayYesTicket issuance reminder order list.
PKFARE orders

2.2 Request Parameter Construction#

2.2.1 Basic Request as JSON data structure#

{
  "authentication":{
      "partnerId": "BBsVSX7PfZmF04adBWYfCD7M4=",
      "sign": "17e707b9dae8459085dbb139e5f1bd"
  },
  "data": {
    "issuingOrdersPush": [
      "9187887878872501",
      "9187887878872201"  
    ]
  }
}

2.2.2 Encoding Basic Request by Base64#

ewogICJhdXRoZW50aWNhdGlvbiI6ewogICAgICAicGFydG5lcklkIjogIkJCc1ZTWDdQZlptRjA0YWRCV1lmQ0Q3TTQ9IiwKICAgICAgInNpZ24iOiAiMTdlNzA3YjlkYWU4NDU5MDg1ZGJiMTM5ZTVmMWJkIgogIH0sCiAgImRhdGEiOiB7CiAgICAiaXNzdWluZ09yZGVyc1B1c2giOiBbCiAgICAgICI5MTg3ODg3ODc4ODcyNTAxIu+8jAogICAgICAiOTE4Nzg4Nzg3ODg3MjIwMSIgIAogICAgXQogIH0KfQ==

2.2.3 Request Sample#

POST http://api.pkfare.com/requestTicketing
Content-Type:application/x-www-form-urlencoded

param=ewogICJhdXRoZW50aWNhdGlvbiI6ewogICAgICAicGFydG5lcklkIjogIkJCc1ZTWDdQZlptRjA0YWRCV1lmQ0Q3TTQ9IiwKICAgICAgInNpZ24iOiAiMTdlNzA3YjlkYWU4NDU5MDg1ZGJiMTM5ZTVmMWJkIgogIH0sCiAgImRhdGEiOiB7CiAgICAiaXNzdWluZ09yZGVyc1B1c2giOiBbCiAgICAgICI5MTg3ODg3ODc4ODcyNTAxIu+8jAogICAgICAiOTE4Nzg4Nzg3ODg3MjIwMSIgIAogICAgXQogIH0KfQ==

3 Response#

3.1 Basic Parameter#

NameTypeRequired or NotParameter Description
errorCodeStringYeserror code,refer to Error Code List
errorMsgStringNOerror message
dataArrayNOShowing details of failed ticket issuance orders.

3.1.1 Data#

NameTypeRequired or NotParameter Description
orderNumStringYesOrder numbers for failed ticket issuance orders.
【PKFARE】Order Number
errorCodeStringYesError codes for failed ticket issuance orders.
error code,refer to Error Code List
errorMsgStringYesError messages for failed ticket issuance orders.
error message,refer to Error Code List

3.2 Response Sample#

3.2.1 Success Response#

1.
All orders have been successfully prompted for ticket issuance.
{
  "errorCode": "0",
  "errorMsg": "OK"
  "data":[]
}
2.
Some orders failed to be prompted for ticket issuance.
{
  "errorCode": "0",
  "errorMsg": "OK"
  "data":[
    {
        "orderNum":"9108282828101",
        "errorCode":"B179",
        "errorMsg":"Duplicate ticketing request within 10 minutes."
    }
    {
        "orderNum":"9108282828101",
        "errorCode":"B180",
        "errorMsg":"Order is not in an unissued state."
    }
  ]
}

3.2.2 Error Response#

{
  "errorCode": "S001",
  "errorMsg": "System error"
  "data":[]
}

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 Error Code List#

erroCodeerroMsgDescription
0okRequest has been processed successfully.
S001System errorSystem error
S002timeoutRequest timeout
P001-Parameter is illegal
B037Order is not exists.Order is not exists.
B179Duplicate ticketing request within 10 minutes.Duplicate ticketing request for the same order within 10 minutes.
B180The order status is not issuing.Only Issuing order can be used in this API.
B181The ticketing reminder list contains more than 100 orders.The ticketing reminder list contains more than 100 orders.
Modified at 2024-05-06 02:00:32
Previous
AncillaryOrderDetail
Next
ScheduleChangeNotify