Flight Search

Method : POST
URL : https://stagev2a.rechargkit.biz/flight/flightSearch
Header : Authorization:Bearer {{api_token}}

Request

PARAM TYPE REQUIRED DESCRIPTION
Adults int Y This field contains values from 1-9. At least one adult must be selected.
Cabin int Y This field has enumeration values (Economy =0,First=1,Business=2,PremiumEconomy=4).
Childs int Optional Domain range for this field is 0-9.
SearchDetails array Y
PARAM TYPE REQUIRED DESCRIPTION
BeginDate Date(YYYY-MM-DD) Y It represents journey date. This value should be in date format ‘yyyy-mm-dd’.
Origin string Y This value represents source city name.
Destination string Y It represents destination city/airport name .It cannot be same as source value.
Infants int Optional This field’s domain has values from 0-2. Number of infants cannot be more than number of adults as per single booking.
TraceId string Y It is a unique id (Max 40) or Empty (EMT will return in the search response).
TripType int Y This is an Enumeration type parameter which has a specified list of values OneWay=0 and RoundTrip=1.

Response

PARAM Description
Errors Error Code: '0' for Request Success Others for API Request Failure
msg Error message from API provider
status Status Code: '1' for SUCCESS , '2' for PENDING and '3' for FAILURE
Journeys It includes JourneyDetail and Segments
Segments
PARAM Description PARAM Description PARAM Description
BondType string IsBaggageFare bool IsSpecialId bool
Bonds Class Type IsCache bool ItineraryKey string
Deeplink string(only for meta search user) IsHoldBooking bool JourneyIndex int
EngineID Enumeration Type IsInternational bool NearByAirport bool
Fare Class Type IsRoundTrip bool Remark string
FareRule string IsSpecial bool SearchId string
Bonds
PARAM Description DESCRIPTION
BoundType string Represents Inbound/Outbound flight
ItineraryKey string Represents a string value for a particular journey from source to destination
IsBaggageFare bool Fares for baggage facility(True/False)
JourneyTime string Represents journey duration
Legs Class Type Represents details about flight
Legs
PARAM TYPE Description PARAM TYPE Description PARAM TYPE Description
AircraftCode string This is provided by airline (for eg: VX09KHT7TSm+Z hCrSZcPJg==) Cabin string This field has enumeration values (Economy =0,First=1,Busi ness=2,Premiu mEconomy=4) Duration string It represents the total time duration of the journey.
AircraftType string Provided by airline CarrierC ode string Flight carrier code FareBasis Code string Flight fare basis code
AirlineName string Represents code of the airline(SG,6E,AI etc.) Currenc yCode string Represents currency codes(INR for india) FareClass OfService string It is an array type having a list of constant values.
ArrivalDate DateTime It represents arrival date of the Journey. Departu reDate string It represents departure date of the journey. FlightDes ignator string Flight designator details
ArrivalTe rminal string It represents arrival terminal of the Journey. Departu reTermi nal string It represents departure terminal of the Journey. FlightDet ailRefKey string Id for flight details
ArrivalTi me string It represents arrival time of the Journey. Departu reTime DateTime It represents departure time of the journey. FlightNa me string It represents the flight name(SpiceJet,I ndiGo,AirIndia etc.).
Available Seat string Total numbers of seats available. Destinat ion string It represents destination city/airport name .It cannot be same as source value. FlightNu mber string It represents the flight number
BaggageUn it string Units like KG and G etc. Group string It represents the the Bound Type (OutBound=0, InBound=1) Origin string This value represents source city name. Three alphabetic IATA code should be entered by user to get valid source city. This field should not contain More than and less than 3 characters.
BaggageWe ight string It represents the weight of the baggage. IsConne cting bool It contains boolean value(True/Fals e) Provider Code string Airline provider code
BoundType string Represents Inbound/Outbo und flight Number OfStops string Total number of stops between source to destination Remarks string Brief description
Fare
PARAM TYPE Description
BasicFare decimal Represents basic fares excluding of any other service charges
ExchangeRate decimal Exchange Rate
PaxFares Class Type It contains pax wise information about BaggageUnit,BaggageWeight,BasicFare,PaxType etc and Pax fare can be multiple for any pax type so have to sum the pax array.
TotalFareWithOutMarkUp decimal Total amount
TotalTaxWithOutMarkUp decimal Total tax
PaxFares
PARAM TYPE Description
BaggageUnit string >Units like KG and G etc.
BaggageWeight string It represents the weight of the baggage.
BaseTransactionAmount decimal It contains transaction amount
BasicFare decimal Represents basic fares excluding of any other service charges
CancelPenalty decimal Cancel before departure date within twenty four hours(CAN-BEF 24_0:14811)
ChangePenalty decimal Change before departure date within twenty fore hours (CHG-BEF 24_0:4443.0)
EquivCurrencyCode string Flight equivalent currency code
Fare Class Type
QUERY PARAM TYPE Description
Amount decimal Calculated amount of other services like tax, PSF, UDF
ChargeCode string This field stores a specific code for applied charge.
ChargeType string Represents which type of charge has been applied(Like Tax, Service Charge, Travel Fee, Fare Price)
FareBasisCode string Flight fare basis code
FareInfoKey string Flight fare information key
FareInfoValue string Flight fare information value
MarkUP decimal Flight markup
PaxType Enumeration Type This property has enumeration type and has specified list of constant values as (ADT, CHD and INF)
Refundable bool Represents whether this flight is refundable or non refundable
TotalFare decimal Calculated amount of other services like tax, PSF, UDF
TotalTax decimal Total tax
TransactionAmount decimal Transaction amount

Request Data (flight search):


                                         {
                                     {
                                      "Adults":2,
                                      "Cabin":0,
                                      "Childs":0
                                      }
                                     ]
                                     "FlightSearchDetails":[,
                                     "BeginDate":"2023-11-05",
                                      "Origin":BBI,
                                     "Destination":"CCU",
                            
                                        ]   
                                    } 
                                    "Infants":"0",
                                      "TraceId":123456789123,
                                     "TripType":"0",         
                                        
                                     
                                      

Response Data (flight search):


                              
                             
                                "error":0,
                                "msg":order success,
                                "status":1
                                "searchdetails":[
                                    {
                                        "Destination":null,
                                        "JourneyDetail":null,
                                        "Origin":null 
                                        "Segments":[
                                            {
                                    }
                                } ]
                                "BondType":OutBound,
                                "Bonds":[
                                {
                                 "BoundType":OutBound,
                                 "IsBaggageFare":false,
                                 "IsSSR":false,
                                 "ItineraryKey":b7SqRwmVDL7OJQP+J0ySES9vx7BMZSMJFZdVwW+LEF0=",,
                                 "JourneyTime":"01h 00m",
                                 "Legs":[
                                ]
                                {
                                    "AircraftCode": "6E",
                                    "AircraftType":"320",
                                    "AirlineName":"6E",
                                }

                                "addOnDetai":null,
                                {
                                    
                                }
                                "CurrencyCode":"INR",
                                "Deeplink":""
                                "EngineID": "0",
                                "ExtSeatAvailStatus":"false",
                                
                                }
                                "Fare":,
                                {
                                "BasicFare":1000,
                                "BrandKeys":"null,",.....
                               
                                }
                                "PaxFares":,
                                {
                                "AdminMarkUP":0,
                                "AirlinePnr":"null,",.....
                               
                                }
                                "Fare":,
                                {
                                "Amount":50,
                                "ChargeCode":PHF,
                                "ChargeType":"TravelFee",.....
                               
                                    [
                                    {
                                        "Amount":" 838",
                                        "ChargeCode":"Tax",
                                        "ChargeType":"Tax",
                                    }
                                        
                                    {
                                        "FareBasisCode": "RGB1",
                                        "FareInfoKey":"0~R~ ~6E~RGB1~1008~~0~1~~X",
                                    }
                                        
                                    "RefundAmount":"0",
                                    "RequestedFare":"0",
                                    ]
                                  
                                        {
                                            "FareCategory":"0",
                                            "FareIndicator":"0",............
                                        }
                                            
                                    
                                      

                              }