Travel Portal Development, Travel Portal Solution, Travel Whitelabel

Cancellation Charges

This method is used to obtain the Cancellation Charges for LCC airlines like Indigo,Spicejet, GoAir.

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your PID

Must be Your API Key

Customer-Ip

string

( header )

Must be IP address of the customer, as captured by your integration. Send IPV4 addresses only.

Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.

Also used for fraud recovery and other important analytics.

Definition and request parameters for cancellation cahrges.

action

string

( query )

Must be "getCancellationCharges" as parameter

Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.

BookingId

string

( query )

Unique booking id received in Ticket Response

RequestType

Enumeration

( query )

Request type

Mandatory[RequestType = 1]

Cancellation Request

API Endpoint: https://www.abengines.com/api/v1/travel-api/flights/

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);

POST:
{
  "action": "getCancellationCharges",
  "BookingId": "55286645",
  "RequestType": "1"
}
					 

Response

The API returns an HTTP response, which generally includes the result of the request invocation

{
    "Response": {
        "ResponseStatus": 1,
        "TraceId": "46254cfa-5905-4c3d-b9aa-a1a8a17a7355",
        "RefundAmount": 389,
        "CancellationCharge": 3166,
        "Remarks": "Cancellation charges may vary as per the airline policy.",
        "Currency": "INR"
    }
}