Get Cancellation Charges

Get Cancellation Charges

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.

Endpoint

POST /flight/cancellation_charges

Headers

HeaderRequiredDescription
client-idYesYour unique client ID
client-secretYesYour client secret key
Content-TypeYesapplication/json

Request Parameters

ParameterTypeRequiredDescription
client_referenceIdstringYesUnique client reference ID for tracking the request
booking_idintegerYesUnique ID for the booking you want to check cancellation charges for
request_typestringYesType of cancellation request. Allowed values: full_cancellation or partial_cancellation

Request Type Options

  • full_cancellation - Get charges for cancelling the entire booking
  • partial_cancellation - Get charges for cancelling specific passengers only

Example Request

{
    "client_referenceId": "WQGH762731",
    "booking_id": 1984869,
    "request_type": "full_cancellation"
}

Response Structure

Success Response

FieldTypeDescription
statusstringResponse status (SUCCESS or FAILED)
status_codestringHTTP status code
messagestringResponse message
dataobjectContains cancellation details

Data Object

FieldTypeDescription
trace_idstringUnique trace ID for this request
resultobjectContains detailed cancellation information

Result Object

FieldTypeDescription
cancellation_chargesnumberTotal cancellation charges amount
refund_amountnumberAmount to be refunded after deducting charges
currencystringCurrency code (e.g., "INR")
gstobjectGST breakdown details
cancellation_charges_detailsarrayPer-passenger cancellation details

GST Object

FieldTypeDescription
cgstobjectCentral GST details with rate and amount
igstobjectIntegrated GST details with rate and amount
sgstobjectState GST details with rate and amount
cessobjectCess details with rate and amount
taxable_amountnumberAmount on which tax is calculated

Cancellation Charges Details Array

Each passenger object contains:

FieldTypeDescription
titlestringPassenger title (Mr, Mrs, Ms, etc.)
first_namestringPassenger's first name
last_namestringPassenger's last name
pax_typestringPassenger type (adult, child, infant)
cancellation_chargenumberCancellation charge for this passenger
refund_amountnumberRefund amount for this passenger
ticket_numberstring/nullTicket number if available

Example Response

{
    "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
                }
            ]
        }
    }
}

Response Analysis

Understanding the Response

  1. Total Charges: The cancellation_charges field shows the total amount that will be deducted
  2. Refund Amount: The refund_amount shows what the customer will receive back
  3. Tax Breakdown: The gst object provides detailed tax information including IGST at 18%
  4. Per-Passenger Details: Each passenger's individual charges and refunds are listed separately

Key Points

  • 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

Error Handling

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.

Language
Click Try It! to start a request and see the response here!