Flight Fare Quote

This method is required to re-price the selected itinerary.

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 flight farerule

action

string

( query )

Must be "fareQuote" 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.

ModeType

string

( query )

Must be either "Test" or "LIVE"

Your application must be approved from Adivaha Personnel. All the transactions will be treated as LIVE once the parameter is set to LIVE.

ResultIndex

string

( query )

Result Index ie. "OB1"

TraceId

string

( query )

Trace Id (Get Trace Id from search response)

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": "fareQuote",
  "mode": "Test",
  "ResultIndex": "OB1",
  "TraceId": "da0b789a-f1c7-43dd-bcda-772890fe6edd"
}
					 

Response

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

{
    "status": "200",
    "status_message": "OK",
    "responseData": {
        "Response": {
            "Error": {
                "ErrorCode": 0,
                "ErrorMessage": ""
            },
            "InsuranceResult": {
                "Results": [
                    {
                        "InsuranceResultIndex": 1,
                        "PlanCode": "820ed27f-49df-4c00-9464-ed9664ef3c9d",
                        "PlanCoverage": 4,
                        "PlanDescription": "Axa Spl Smart Domestic Plan",
                        "PlanName": "Axa Spl Smart Domestic Plan",
                        "PlanType": 1,
                        "PolicyEndDate": "2021-09-09T23:59:59",
                        "PolicyStartDate": "2021-09-09T00:00:00",
                        "PremiumList": [
                            {
                                "MaxAge": 70,
                                "MinAge": 0,
                                "PassengerCount": 1,
                                "Price": {
                                    "CommissionEarned": 48.3,
                                    "Currency": "INR",
                                    "GrossFare": 161,
                                    "KrishiKalyanTax": 0,
                                    "OfferedPrice": 112.7,
                                    "OfferedPriceRoundedOff": 112.7,
                                    "PublishedPrice": 161,
                                    "PublishedPriceRoundedOff": 161,
                                    "ServiceTax": 0,
                                    "SwachhBharatTax": 0,
                                    "TdsOnCommission": 19.32
                                }
                            }
                        ],
                        "Price": {
                            "CommissionEarned": 48.3,
                            "Currency": "INR",
                            "GrossFare": 161,
                            "KrishiKalyanTax": 0,
                            "OfferedPrice": 112.7,
                            "OfferedPriceRoundedOff": 112.7,
                            "PublishedPrice": 161,
                            "PublishedPriceRoundedOff": 161,
                            "ServiceTax": 0,
                            "SwachhBharatTax": 0,
                            "TdsOnCommission": 19.32
                        }
                    }
                ]
            },
            "IsPriceChanged": false,
            "ResponseStatus": 1,
            "Results": {
                "IsHoldAllowedWithSSR": true,
                "ResultIndex": "OB1",
                "Source": 5,
                "IsLCC": false,
                "IsRefundable": true,
                "IsPanRequiredAtBook": false,
                "IsPanRequiredAtTicket": false,
                "IsPassportRequiredAtBook": false,
                "IsPassportRequiredAtTicket": false,
                "GSTAllowed": true,
                "IsCouponAppilcable": true,
                "IsGSTMandatory": false,
                "IsHoldAllowed": true,
                "AirlineRemark": "CORPORATE FARE.",
                "ResultFareType": "RegularFare",
                "Fare": {
                    "Currency": "INR",
                    "BaseFare": 1000,
                    "Tax": 703,
                    "TaxBreakup": [
                        {
                            "key": "K3",
                            "value": 63
                        },
                        {
                            "key": "YQTax",
                            "value": 0
                        },
                        {
                            "key": "YR",
                            "value": 250
                        },
                        {
                            "key": "PSF",
                            "value": 0
                        },
                        {
                            "key": "UDF",
                            "value": 0
                        },
                        {
                            "key": "INTax",
                            "value": 63
                        },
                        {
                            "key": "TransactionFee",
                            "value": 0
                        },
                        {
                            "key": "OtherTaxes",
                            "value": 327
                        }
                    ],
                    "YQTax": 0,
                    "AdditionalTxnFeeOfrd": 0,
                    "AdditionalTxnFeePub": 0,
                    "PGCharge": 0,
                    "OtherCharges": 0,
                    "ChargeBU": [
                        {
                            "key": "TBOMARKUP",
                            "value": 0
                        },
                        {
                            "key": "GLOBALPROCUREMENTCHARGE",
                            "value": 0
                        },
                        {
                            "key": "CONVENIENCECHARGE",
                            "value": 0
                        },
                        {
                            "key": "OTHERCHARGE",
                            "value": 0
                        }
                    ],
                    "Discount": 0,
                    "PublishedFare": 1703,
                    "CommissionEarned": 8.81,
                    "PLBEarned": 0,
                    "IncentiveEarned": 0,
                    "OfferedFare": 1694.19,
                    "TdsOnCommission": 3.52,
                    "TdsOnPLB": 0,
                    "TdsOnIncentive": 0,
                    "ServiceFee": 0,
                    "TotalBaggageCharges": 0,
                    "TotalMealCharges": 0,
                    "TotalSeatCharges": 0,
                    "TotalSpecialServiceCharges": 0
                },
                "FareBreakdown": [
                    {
                        "Currency": "INR",
                        "PassengerType": 1,
                        "PassengerCount": 1,
                        "BaseFare": 1000,
                        "Tax": 703,
                        "TaxBreakUp": [
                            {
                                "key": "YR",
                                "value": 250
                            },
                            {
                                "key": "INTax",
                                "value": 63
                            },
                            {
                                "key": "K3",
                                "value": 63
                            },
                            {
                                "key": "OtherTaxes",
                                "value": 327
                            }
                        ],
                        "YQTax": 0,
                        "AdditionalTxnFeeOfrd": 0,
                        "AdditionalTxnFeePub": 0,
                        "PGCharge": 0,
                        "SupplierReissueCharges": 0
                    }
                ],
                "Segments": [
                    [
                        {
                            "Baggage": "15KG",
                            "CabinBaggage": null,
                            "CabinClass": 0,
                            "TripIndicator": 1,
                            "SegmentIndicator": 1,
                            "Airline": {
                                "AirlineCode": "AI",
                                "AirlineName": "Air India",
                                "FlightNumber": "9843",
                                "FareClass": "E",
                                "OperatingCarrier": "9I-843"
                            },
                            "Origin": {
                                "Airport": {
                                    "AirportCode": "DEL",
                                    "AirportName": "Indira Gandhi Airport",
                                    "Terminal": "3",
                                    "CityCode": "DEL",
                                    "CityName": "Delhi",
                                    "CountryCode": "IN",
                                    "CountryName": "India"
                                },
                                "DepTime": "2021-09-09T07:15:00"
                            },
                            "Destination": {
                                "Airport": {
                                    "AirportCode": "JAI",
                                    "AirportName": "Jaipur",
                                    "Terminal": "2",
                                    "CityCode": "JAI",
                                    "CityName": "Jaipur",
                                    "CountryCode": "IN",
                                    "CountryName": "India"
                                },
                                "ArrTime": "2021-09-09T08:15:00"
                            },
                            "Duration": 60,
                            "GroundTime": 0,
                            "Mile": 0,
                            "StopOver": false,
                            "FlightInfoIndex": "",
                            "StopPoint": "",
                            "StopPointArrivalTime": "0001-01-01T00:00:00",
                            "StopPointDepartureTime": "0001-01-01T00:00:00",
                            "Craft": "ATR",
                            "Remark": null,
                            "IsETicketEligible": true,
                            "FlightStatus": "Confirmed",
                            "Status": ""
                        }
                    ]
                ],
                "LastTicketDate": "2021-09-09T23:59:00.000",
                "TicketAdvisory": null,
                "FareRules": [
                    {
                        "Origin": "DEL",
                        "Destination": "JAI",
                        "Airline": "AI",
                        "FareBasisCode": "EIP9I",
                        "FareRuleDetail": "",
                        "FareRestriction": "",
                        "FareFamilyCode": "",
                        "FareRuleIndex": ""
                    }
                ],
                "PenaltyCharges": {
                    "ReissueCharge": "3000 INR",
                    "CancellationCharge": "3000 INR"
                },
                "AirlineCode": "AI",
                "ValidatingAirline": "AI"
            },
            "TraceId": "da0b789a-f1c7-43dd-bcda-772890fe6edd"
        }
    }
}