The method will allow you to validate selling information about a specific flight

Usage

Use this method after retrieving the information from getDestinations, you should enter additional information on dates, number of passengers etc.

Response

The method will reply with the available flights on AeroCRS, note that some of the flights might not be "bookable" according to your agreement type.

📘

Important

Flight information will be based on number of passengers and availability to book, you will not receive flight information which does not match your query.

Request parameters

ParameterTypeDescription
requestString*getFlight (method name)
idString*Identification token
passwordString*Password
triptypeString*Type of request:
OW: One-way
RT: Return
fromcodeString*Destination code received from getDestinations
tocodeString*Destination code received from getDestinations
adultsNumeric*Number of adults
childNumeric*Number of children
infantNumericNumber of infants
flightid1Numeric*The flightid of the departure flight
fareid1Numeric*The fareid of the departure flight
flightid2NumericThe flightid of the return flight (if requested)
fareid2NumericThe fareid of the return flight (if requested)
currencyStringCurrency Code ('USD' for example)
chargetypeStringThe iataCode chargetype

❗️
  • Mandatory parameters

Response parameters

ParameterTypeDescription
flightsElementThe following elements are within which represents a flight within
flightElementThe following parameters are within flight
airlineStringName of the airline
airlineidNumberID of airline in AeroCRS systems
airlinelogoLinkCountry name
childagefromNumberApplicable chid agt start according to airline rules
childagetoNumberApplicable chid age end (inclusive) according to airline rules
chargetaxoninfantBooleanShould you charge tax on infant
fromStringName of destination of departure
toStringName of destination of arrival
viaStringText if the flight is VIA or connecting at a specific location.
fromcodeStringCode of destination of departure
tocodeStringCode of destination of arrival
directionStringDirection of the flight (outbound/inbound)
flightdateDateYYYY/MM/DD date of the flight
departTimeHH:MM 24hours time of departure
arriveTimeHH:MM 24hours time of arrival
numberStringFlight number
bookableBooleanIs the flight bookable with this username and password via the API
viaStringText if the flight is VIA or connecting at a specific location.
totalminutesNumberThe number of minutes of the flight.
flightcodeNumberFlight internal code
linktowebsiteElementan element within 'flight' which can be built to redirect to the airline website, each element besides the 'url' should be put in GET in the URL line.
urlLinkThe link to the airline website
DepartureDateValDateThe date in YYYY/MM/DD format
TripTypeStringTrip type for the website
FromDSTidNumberFrom Destination ID
ToDSTidNumberTo Destination ID
ReturnDateValLinkThe date in YYYY/MM/DD format
invAdltNumberNumber of adults flying
invKidsLinkNumber of children flying
CompanyWebDiscountNumberPercentage of discount from RACK FARE below if booked on the website.
termsElementEach rule of a flight will be represented in a element, all rules per flight are represented within element
classElementEach class of a flight will be represented in a element, all classes per flight are represented within element. (cabinclass/cabincode/brand)
flightidNumberFlight ID to be used in API for createBooking
rackfare_adultMoneyRack fare for adult (per passenger)
rackfare_childMoneyRack fare for child (per passenger)
rackfare_infantMoneyRack fare for infant (per passenger)
agtfare_adultMoneyAgent’s fare for adult (per passenger)
agtfare_childMoneyAgent’s fare for child (per passenger)
agtfare_infantMoneyAgent's fare for infant (per passenger)
taxMoneyTax for adult / child (per passenger)
rackfare_adult_no_vatMoney (4 decimals)Rack fare for adult without VAT (per passenger)
rackfare_child_no_vatMoney (4 decimals)Rack fare for child without VAT (per passenger)
rackfare_infant_no_vatMoney (4 decimals)Rack fare for infant without VAT (per passenger)
agtfare_adult_no_vatMoney (4 decimals)Agent’s fare for adult without VAT (per passenger)
agtfare_child_no_vatMoney (4 decimals)Agent’s fare for child without VAT(per passenger)
agtfare_infant_no_vatMoney (4 decimals)Agent's fare for infant without VAT(per passenger)
tax_no_vatMoney (4 decimals)Tax for adult / child without VAT (per passenger)
vat_on_fareNumber (4 decimals)VAT percentage on fare
vat_on_taxNumber (4 decimals)VAT percentage on TAX
currencyStringThe currency used in the fare (ISO-4217)
baggageStringBaggage string number and mass unit
classshowonwebBooleanIf class is show on website.(true/false)
servicesArrayAn Array of supported services with status - true / false
Language