Function#
Through Cancel API, users can cancel orders and PNRs generated in GDS by PKFARE. Cancel API is used for canceling orders before ticketing.Versioning#
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 not to_be_paid |
| B010 | Order number not exist | order number does not exist |
| B037 | Order is not exists. OrderNum:XXX | Order is not exists |
| B041 | The order has been cancelled | Order has been canceled |
Request
Body Params application/json
{
"authentication": {
"partnerId": "{{partnerId}}",
"sign": "{{sign}}"
},
"cancel": {
"orderNum": "917132752968703001",
"virtualPnr": "WC7JP4"
}
}
Request Code Samples
curl --location 'https://api.pkfare.com/json/cancel' \
--header 'Content-Type: application/json' \
--data '{
"authentication": {
"partnerId": "",
"sign": ""
},
"cancel": {
"orderNum": "917132752968703001",
"virtualPnr": "WC7JP4"
}
}'
Responses
application/json
{
"errorCode": "0",
"errorMsg": "OK"
}
Modified at 2026-08-13 06:38:13