Function# Through Ticketing API, users can request PKFARE to deduct credits (currently only Prepay and Alipay are supported). Ticket numbers would be provided by TickeitngNumPush or orderDetail API. Versioning# Below is the most updated version. Error Code List# errorCode errorMsg Description 0 ok request has been processed successfully S001 System error system error P001 - wrong parameter B002 Partner is not exists partnerID does not exist B003 Illegal sign illegal sign. Please check your signature B009 Order status is invalid order status is invalid B010 Order number not exist order number does not exist B022 Ticketing failed balance left is not enough to pay the order B024 Order has been paid order has already been paid. No need to pay again
Request Body Params application/json
{
"authentication" : {
"partnerId" : "" ,
"sign" : ""
} ,
"ticketing" : {
"email" : "jango.wang@pkfare.com" ,
"name" : "Jango/Wang" ,
"orderNum" : "1012674912" ,
"telNum" : "13249073855" ,
"PNR" : "KHZ1WU"
}
} Request Code Samples
curl --location 'https://api.pkfare.com/json/ticketing' \
--header 'Content-Type: application/json' \
--data-raw '{
"authentication": {
"partnerId": "",
"sign": ""
},
"ticketing": {
"email": "jango.wang@pkfare.com",
"name": "Jango/Wang",
"orderNum": "1012674912",
"telNum": "13249073855",
"PNR": "KHZ1WU"
}
}' Responses application/json
Generate Code
{
"errorCode" : "0" ,
"errorMsg" : "ok" ,
"data" : {
"orderNum" : "1012704540" ,
"orderAmount" : 2015 ,
"transactionExpense" : 2.02 ,
"payAmount" : 2017.02
}
}
Modified at 2026-08-13 06:37:41