The Get Cancellation Charges API allows you to retrieve cancellation charges for flight bookings. This endpoint provides detailed information about charges, refund amounts, taxes, and per-passenger breakdown.
POST /flight/cancellation_charges
Header Required Description client-idYes Your unique client ID client-secretYes Your client secret key Content-TypeYes application/json
Parameter Type Required Description client_referenceIdstring Yes Unique client reference ID for tracking the request booking_idinteger Yes Unique ID for the booking you want to check cancellation charges for request_typestring Yes Type of cancellation request. Allowed values: full_cancellation or partial_cancellation
full_cancellation - Get charges for cancelling the entire booking
partial_cancellation - Get charges for cancelling specific passengers only
JSON
{
"client_referenceId": "WQGH762731",
"booking_id": 1984869,
"request_type": "full_cancellation"
}
Field Type Description statusstring Response status (SUCCESS or FAILED) status_codestring HTTP status code messagestring Response message dataobject Contains cancellation details
Field Type Description trace_idstring Unique trace ID for this request resultobject Contains detailed cancellation information
Field Type Description cancellation_chargesnumber Total cancellation charges amount refund_amountnumber Amount to be refunded after deducting charges currencystring Currency code (e.g., "INR") gstobject GST breakdown details cancellation_charges_detailsarray Per-passenger cancellation details
Field Type Description cgstobject Central GST details with rate and amount igstobject Integrated GST details with rate and amount sgstobject State GST details with rate and amount cessobject Cess details with rate and amount taxable_amountnumber Amount on which tax is calculated
Each passenger object contains:
Field Type Description titlestring Passenger title (Mr, Mrs, Ms, etc.) first_namestring Passenger's first name last_namestring Passenger's last name pax_typestring Passenger type (adult, child, infant) cancellation_chargenumber Cancellation charge for this passenger refund_amountnumber Refund amount for this passenger ticket_numberstring/null Ticket number if available
JSON
{
"status": "SUCCESS",
"status_code": "200",
"message": "Cancellation Charges successfully retrieved.",
"data": {
"trace_id": "5c95feff-28e4-4f76-b563-2ceb8bd9e323",
"result": {
"cancellation_charges": 8280,
"refund_amount": 1162,
"currency": "INR",
"gst": {
"cgst": {
"cgst_rate": 0,
"cgst_amount": 0
},
"igst": {
"igst_rate": 18,
"igst_amount": 18
},
"sgst": {
"sgst_rate": 0,
"sgst_amount": 0
},
"cess": {
"cess_rate": 0,
"cess_amount": 0
},
"taxable_amount": 100
},
"cancellation_charges_details": [
{
"title": "Mrs",
"first_name": "Payal",
"last_name": "Kumari",
"pax_type": "adult",
"cancellation_charge": 4140,
"refund_amount": 580.88,
"ticket_number": null
}
]
}
}
}
Total Charges : The cancellation_charges field shows the total amount that will be deducted
Refund Amount : The refund_amount shows what the customer will receive back
Tax Breakdown : The gst object provides detailed tax information including IGST at 18%
Per-Passenger Details : Each passenger's individual charges and refunds are listed separately
All amounts are in the specified currency (INR in this example)
GST is calculated and displayed separately for transparency
Individual passenger details help in understanding charge distribution
The trace_id can be used for tracking and support purposes
In case of errors, the API will return appropriate HTTP status codes with error messages. Common scenarios include:
400 Bad Request : Invalid booking ID or request parameters
404 Not Found : Booking not found
500 Internal Server Error : System error occurred
Always check the status field in the response to determine if the request was successful.