post https://api.aerocrs.com/v4/getFlights
The method will allow you to get a list of flights over all the airlines which host their inventory on AeroCRS.
Important
Flight information will be based on the number of passengers and availability to book, you will not receive flight information which does not match your query.
Request
Parameter | Type | Description |
---|---|---|
triptype | String* | Type of request: OW: One-way RT: Return |
fromcode | String* | Destination code received from getDestinations |
tocode | String* | Destination code received from getDestinations |
flightdate1 | Date* | YYYY/MM/DD date of the departure flight |
flightdate2 | Date | YYYY/MM/DD date of the return flight (if requested) |
adults | Numeric* | Number of adults |
child | Numeric* | Number of children |
infant | Numeric | Number of infants |
currency | String | Currency Code ('USD' for example) |
chargetype | String | The iataCode chargetype |
- Mandatory parameters
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.
Parameter | Type | Description |
---|---|---|
airline | String | Name of the airline |
airlineid | Number | ID of airline in AeroCRS systems |
airlinelogo | Link | Country name |
childagefrom | Number | Applicable chid start age according to airline rules |
childageto | Number | Applicable chid start end (inclusive) according to airline rules |
chargetaxoninfant | Boolean | Airline charge tax on infant |
from | String | Name of destination of departure |
to | String | Name of destination of arrival |
fromcode | String | Code of destination of departure |
tocode | String | Code of destination of arrival |
direction | String | Direction of the flight (outbound/inbound) |
flightdate | Date | YYYY/MM/DD date of the flight |
depart | Time | HH:MM 24hours time of departure |
arrive | Time | HH:MM 24hours time of arrival |
number | String | Flight number |
bookable | Boolean | Is the flight bookable with this username and password via the API |
via | String | Text if the flight is VIA or connecting at a specific location. |
totalminutes | Number | The number of minutes of the flight. |
linktowebsite | Link | The "deeplink" to the website itinerary page, you can redirect the customer to this page for continuation of his booking on the airline IBE |
CompanyWebDiscount | Number | Percentage of discount from RACK FARE below if booked on the website. |
rule | String | Free text of flight specific rule |
flightcode | Number | Flight internal code |
classes | Element | Each class of a flight will be represented in a class element, all classes per flight are represented within classes element |
class | Element | Include all the class details |
attributes | Element | attribute within class, include flightcode parameter |
flightcode | String | Flight internal code (within class element) |
classcode | String | Class code |
classname | String | Class name |
cabinclass | String | Cabin Class |
flightid | Number | Flight ID to be used in API for createBooking |
rackfare_adult | Money | Rack fare for adult (per passenger) |
rackfare_child | Money | Rack fare for child (per passenger) |
rackfare_infant | Money | Rack fare for infant (per passenger) |
agtfare_adult | Money | Agent’s fare for adult (per passenger) |
agtfare_child | Money | Agent’s fare for child (per passenger) |
agtfare_infant | Money | Agent's fare for infant (per passenger) |
tax | Money | Tax for adult / child (per passenger) |
rackfare_adult_no_vat | Money | Rack fare for adult without VAT (per passenger) |
rackfare_child_no_vat | Money | Rack fare for child without VAT (per passenger) |
rackfare_infant_no_vat | Money | Rack fare for infant without VAT (per passenger) |
agtfare_adult_no_vat | Money | Agent’s fare for adult without VAT (per passenger) |
agtfare_child_no_vat | Money | Agent’s fare for child without VAT(per passenger) |
agtfare_infant_no_vat | Money | Agent's fare for infant without VAT(per passenger) |
tax_no_vat | Money | Tax for adult / child without VAT (per passenger) |
vat_on_fare | Number | VAT percentage on fare |
vat_on_tax | Number | VAT percentage on TAX |
currency | String | The currency used in the fare (ISO-4217) |
converttousd | Number | The conversion to USD from the local currency of displayed fare. |
ttl | Date | Ticketing time limit in GMT time zone YYYY/MM/DD HH:MM |
baggage | String | Baggage string number and mass unit |
classshowonweb | Boolean | Is the class show on web |
CompanyAllowDifClass | Boolean | If the airline allows booking of two different classes for a RT booking |