post https://api.aerocrs.com/v5/getFlight
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
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 |
adults | Numeric* | Number of adults |
child | Numeric* | Number of children |
infant | Numeric | Number of infants |
flightid1 | Numeric* | The flightid of the departure flight |
fareid1 | Numeric* | The fareid of the departure flight |
flightid2 | Numeric | The flightid of the return flight (if requested) |
fareid2 | Numeric | The fareid of the return flight (if requested) |
currency | String | Currency Code ('USD' for example) |
chargetype | String | The iataCode chargetype |
- Mandatory parameters
Response parameters
Parameter | Type | Description |
---|---|---|
flights | Element | The following elements are within which represents a flight within |
flight | Element | The following parameters are within flight |
airline | String | Name of the airline |
airlineid | Number | ID of airline in AeroCRS systems |
airlinelogo | Link | Country name |
childagefrom | Number | Applicable chid agt start according to airline rules |
childageto | Number | Applicable chid age end (inclusive) according to airline rules |
chargetaxoninfant | Boolean | Should you charge tax on infant |
from | String | Name of destination of departure |
to | String | Name of destination of arrival |
via | String | Text if the flight is VIA or connecting at a specific location. |
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. |
flightcode | Number | Flight internal code |
linktowebsite | Element | an 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. |
url | Link | The link to the airline website |
DepartureDateVal | Date | The date in YYYY/MM/DD format |
TripType | String | Trip type for the website |
FromDSTid | Number | From Destination ID |
ToDSTid | Number | To Destination ID |
ReturnDateVal | Link | The date in YYYY/MM/DD format |
invAdlt | Number | Number of adults flying |
invKids | Link | Number of children flying |
CompanyWebDiscount | Number | Percentage of discount from RACK FARE below if booked on the website. |
terms | Element | Each rule of a flight will be represented in a element, all rules per flight are represented within element |
class | Element | Each class of a flight will be represented in a element, all classes per flight are represented within element. (cabinclass/cabincode/brand) |
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 (4 decimals) | Rack fare for adult without VAT (per passenger) |
rackfare_child_no_vat | Money (4 decimals) | Rack fare for child without VAT (per passenger) |
rackfare_infant_no_vat | Money (4 decimals) | Rack fare for infant without VAT (per passenger) |
agtfare_adult_no_vat | Money (4 decimals) | Agent’s fare for adult without VAT (per passenger) |
agtfare_child_no_vat | Money (4 decimals) | Agent’s fare for child without VAT(per passenger) |
agtfare_infant_no_vat | Money (4 decimals) | Agent's fare for infant without VAT(per passenger) |
tax_no_vat | Money (4 decimals) | Tax for adult / child without VAT (per passenger) |
vat_on_fare | Number (4 decimals) | VAT percentage on fare |
vat_on_tax | Number (4 decimals) | VAT percentage on TAX |
currency | String | The currency used in the fare (ISO-4217) |
baggage | String | Baggage string number and mass unit |
classshowonweb | Boolean | If class is show on website.(true/false) |
services | Array | An Array of supported services with status - true / false |