flight-api-GetAirResults

Flight API

GetAirResults

This method is used to fetch all the flight details to display to users.
(Session time from search till booking will be 30 mins)

Path /api/GetAirResults

Method Type : Post

Request:


{
"OriginCode": "string",
"DestinationCode": "string",
"FromDate": "string",
"ToDate": "string",
"CabinType": "string",
"AdultCount": "string",
"ChildCount": "string",
"InfantCount": "string",
"TripType": "string"
}

  • OriginCode : Requires the 3 characters IATA airport code to pass.
  • DestinationCode : Requires the 3 characters IATA airport code to pass.
  • FromDate : The Travel From Date.
  • ToDate : The Travel To Date. Required for Round Trip flow. For one way, the client has to pass an empty value i.e. “”.
  • CabinType : Requires the 1 character cabin class. Description of Cabin types are given below.
  • AdultCount : Requires number of adults
  • ChildCount : Requires number of children.
  • InfantCount : Requires number of infants.
  • TripType : Requires to identify whether the request is for One way or Round trip

Type of CabinClass:

  • Economy => E
  • Business => B
  • First Class => F

Type of TripType

  • OneWay => O
  • RoundTrip => R

Sample Request :


{
"originCode": "NUM",
"destinationCode": "RUH",
"fromDate": "260625",
"toDate": "",
"cabinType": "E",
"adultCount": "1",
"childCount": "0",
"infantCount": "0",
"tripType": "O"
}

Response:

Below are the definitions of all the objects.

RequestID : Unique Identifier for each response to get and useful in terms of further request API’s.
Key : Unique identifier for each flight information to get and useful in terms of further request with selected flight.
totalPrice : Total booking price.
totalTax : Total tax inclusive in totalPrice tag.
totalVat : Total VAT inclusive in totalPrice tag.
currency : Definition of currency.
supplier : Identifier of selected supplier.
paxCount : Identifies for total pax count.
outBoundInfo : Shows the outbound flight information i.e. for One way. Breakdown of outBoundInfo mentioned below in Reference 1.1.

Objects in outBoundInfo: (Reference 1.1)

departureDate : Identifier for departure date. (ddMMyy format)
departureTime : Identifier for departure time.
arrivalDate : Identifier for arrival date. (hhmm format)
arrivalTime : Identifier for arrival time.
fromAirportCode : Identifier for departure airport code.
departureTerminal : identifier for departure airport terminal (Null in case of no terminal)
arrivalTerminal : Identifier for arrival airport terminal (Null in case of no terminal)
toAirportCode : Identifier for arrival airport code.
marketingCarrier : Identifier for marketing carrier (Includes airline code always)
operatingCarrier : Identifier for operating carrier (Includes airline code always)
flightNumber : Identifier of flight number

equipmentType : Identifier for equipment name and description.
layoverTime : Identifier for layover time duration.
adultFare : Description of objects are defined in Reference 1.2.
childFare : Description of objects are defined in Reference 1.2.
infantFare : Description of objects are defined in Reference 1.2.
checkInBaggage : Identifier to get the information of check in baggage. Here “N” defines the “Piece(s)” & other than “N” will be considered as “Kg(s)”. (In case of Saudia airline 1 Pc = 23 kgs.)
cabinBaggage : Identifier to get the information of cabin baggage. (If we have no information we can show 7kg by default).
totalFare : Identifier for final selling price.
validatingCarrier : Identifier for validating carrier.

Objects in adultFare/childFare/infantFare: (Reference 1.2)

price : Identifier for pax (can be adult, child, infant) (per pax) total fare.
tax : Identifier for tax (per pax) inclusive in price tag.
vat : Identifier for vat (per pax) inclusive in price tag.
fareType : Identifier for fare type information.
refundableStatus : Identifier for flight is refundable or non- refundable.