GetFlights

API GetFlights Request

  • This request will give you a list of flights, times, airlines etc.
  • Parameters will be destinations IDs (taken from the getDestinations) and flight dates needed.
  • You can request One-way or Return flights, one-way for one flight, and return for 2 flights same route returning on different dates.
  • Flight information will be based on number of passengers and availability to book.
  • Pricing information will be included in the response.

Send

Element Type Details
<request>
String the request itself
<id>
String the ID given by AeroCRS
<password>
String the password give by AeroCRS
<triptype>
String Type of request:
OW: One way
RT: Return
<fromcode>
String Destination <code> accepted from getDestinations
<tocode>
String Destination <code> accepted 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>
Number Number of adults
<child>
Number Number of children
<infant>
Number Number of infants
<?xml version="1.0" encoding="utf-8"?>
<aerocrsapi>
  <request>getFlights</request>
  <connector>
    <id>17C99F8D-6358-420C-A322-C71EA9592651</id>
    <password>test</password>
  </connector>
  <parms>
    <triptype>RT</triptype>
    <fromcode>WIL</fromcode>
    <tocode>ASV</tocode>
    <flightdate1>2014/06/13</flightdate1>
    <flightdate2>2014/06/14</flightdate2>
    <adults>2</adults>
    <child>0</child>
    <infant>0</infant>
  </parms>
</aerocrsapi>

Receive

Element Type Details
The following elements are within <flight> which represents a flight within <flights>
<airline>
text Name of the airline
<airlineid>
number ID of airline in AeroCRS systems
<airlinelogo>
link Valid link to airline logo
<from>
text Name of destination of departure
<to>
text Name of destination of arrival
<fromcode>
text Code of destination of departure
<tocode>
text Code of destination of arrival
<direction>
text direction of the requested 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>
text Number of the flight
<bookable>
Boolean Is the flight bookable with this username and password via the API
<via>
text 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> is 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>
date Return date
<invAdlt>
number Number of adults flying
<invKids>
number Number of children flying
<DepartureShow>
number +/- days up to 3, put 0 to show specific date
<ReturnShow>
number 0 – not in use
<CompanyWebDiscount>
number Percentage of discount from RACK FARE below if booked on the website.
Each rule of a flight will be represented in a <rule> element, all rules per flight are represented within <Rules> element
<rule>
text Free text of flight specific rule
Each class of a flight will be represented in a <class> element, all classes per flight are represented within <classes> element
<classcode>
text Class code
<flightid>
number Flight ID to be used in API for createBooking
<rackfare_adult>
money Rack fare for adult in USD (per passenger)
<rackfare_child>
money Rack fare for child in USD (per passenger)
<agtfare_adult>
money Agent’s fare for adult in USD (per passenger)
<agtfare_child>
money Agent’s fare for child in USD (per passenger)
<tax>
money Tax for adult / child in USD (per passenger)
<currency>
text The currency used in the fare (ISO-4217)
<ttl>
datetime Ticketing time limit in GMT time zone YYYY/MM/DD HH:MM
<aerocrs>
   <flights>
      <flight>
         <airline>Safarilink</airline>
         <airlineid>4</airlineid>
         <airlinelogo>https://clients.enoyaone.com/images/system-logos/system-4.png</airlinelogo>
         <from>Nairobi-Wilson</from>
         <to>Amboseli</to>
         <fromcode>WIL</fromcode>
         <tocode>ASV</tocode>
         <direction>Outbound</direction>
         <flightdate>2014/06/13</flightdate>
         <depart>07:30</depart>
         <arrive>09:00</arrive>
         <number>011</number>
         <bookable>false</bookable>
         <via>VIA TSV</via>
         <totalminutes>90</totalminutes>
         <linktowebsite>
            <url>http://www.flysafarilink.com/booking/search-results-flights.asp</url>
            <DepartureDateVal>2014/06/13</DepartureDateVal>
            <TripType>RT</TripType>
            <FromDSTid>41</FromDSTid>
            <ToDSTid>42</ToDSTid>
            <ReturnDateVal>2014/06/14</ReturnDateVal>
            <invAdlt>2</invAdlt>
            <invKids>0</invKids>
            <DepartureShow>0</DepartureShow>
            <ReturnShow>0</ReturnShow>
         </linktowebsite>
         <CompanyWebDiscount>0</CompanyWebDiscount>
         <Rules>
            <rule>This%20service%20operates%20subject%20to%20minimum%202%20pax%20in%20high%20season%20and%204%20pax%20in%20low%20season%2C%20so%20if%20you%20are%20a%20single%20pax%20or%20in%20the%20event%20other%20booked%20pax%20cancel%2C%20you%20may%20be%20required%20to%20pay%20for%20the%20additional%20seats.</rule>
         </Rules>
         <flightcode>390454</flightcode>
         <classes>
            <class flightcode="390454">
               <classcode>Y</classcode>
               <flightid>1093120</flightid>
               <rackfare_adult>122.00</rackfare_adult>
               <rackfare_child>85.40</rackfare_child>
               <agtfare_adult>122.00</agtfare_adult>
               <agtfare_child>85.40</agtfare_child>
               <tax>10</tax>
               <currency>USD</currency>
               <ttl>2014/05/30 07:30</ttl>
            </class>
         </classes>
      </flight>
      <flight>
         <airline>Airkenya Express LTD</airline>
         <airlineid>5</airlineid>
         <airlinelogo>https://clients.enoyaone.com/images/system-logos/system-5.png</airlinelogo>
         <from>Nairobi-Wilson</from>
         <to>Amboseli</to>
         <fromcode>WIL</fromcode>
         <tocode>ASV</tocode>
         <direction>Outbound</direction>
         <flightdate>2014/06/13</flightdate>
         <depart>07:30</depart>
         <arrive>08:00</arrive>
         <number>881</number>
         <bookable>true</bookable>
         <via />
         <totalminutes>30</totalminutes>
         <linktowebsite>
            <url>http://www.airkenya.com/booking/search-results-flights.asp</url>
            <DepartureDateVal>2014/06/13</DepartureDateVal>
            <TripType>RT</TripType>
            <FromDSTid>212</FromDSTid>
            <ToDSTid>226</ToDSTid>
            <ReturnDateVal>2014/06/14</ReturnDateVal>
            <invAdlt>2</invAdlt>
            <invKids>0</invKids>
            <DepartureShow>0</DepartureShow>
            <ReturnShow>0</ReturnShow>
         </linktowebsite>
         <CompanyWebDiscount>5</CompanyWebDiscount>
         <Rules />
         <flightcode>374574</flightcode>
         <classes>
            <class flightcode="374574">
               <classcode>Y</classcode>
               <flightid>1038976</flightid>
               <rackfare_adult>110.50</rackfare_adult>
               <rackfare_child>77.35</rackfare_child>
               <agtfare_adult>110.50</agtfare_adult>
               <agtfare_child>77.35</agtfare_child>
               <tax>17</tax>
               <currency>USD</currency>
               <ttl>2014/05/30 07:30</ttl>
            </class>
         </classes>
      </flight>
      <flight>
         <airline>Mombasa Air Safari</airline>
         <airlineid>99</airlineid>
         <airlinelogo>https://clients.enoyaone.com/images/system-logos/system-99.png</airlinelogo>
         <from>Nairobi Wilson</from>
         <to>Amboseli</to>
         <fromcode>WIL</fromcode>
         <tocode>ASV</tocode>
         <direction>Outbound</direction>
         <flightdate>2014/06/13</flightdate>
         <depart>12:15</depart>
         <arrive>13:00</arrive>
         <number>401</number>
         <bookable>false</bookable>
         <via />
         <totalminutes>45</totalminutes>
         <linktowebsite>
            <url>http://www.mombasaairsafari.com/booking/search-results-flights.asp</url>
            <DepartureDateVal>2014/06/13</DepartureDateVal>
            <TripType>RT</TripType>
            <FromDSTid>839</FromDSTid>
            <ToDSTid>252</ToDSTid>
            <ReturnDateVal>2014/06/14</ReturnDateVal>
            <invAdlt>2</invAdlt>
            <invKids>0</invKids>
            <DepartureShow>0</DepartureShow>
            <ReturnShow>0</ReturnShow>
         </linktowebsite>
         <CompanyWebDiscount>0</CompanyWebDiscount>
         <Rules>
            <rule>Minimum%204%20passengers%20required%20to%20operate%20on%20Amboselli%20and%20Tsavo.</rule>
         </Rules>
         <flightcode>474198</flightcode>
         <classes>
            <class flightcode="474198">
               <classcode>Y</classcode>
               <flightid>1396943</flightid>
               <rackfare_adult>125.00</rackfare_adult>
               <rackfare_child>94.00</rackfare_child>
               <agtfare_adult>125.00</agtfare_adult>
               <agtfare_child>94.00</agtfare_child>
               <tax>0</tax>
               <currency>USD</currency>
               <ttl>2014/06/03 12:15</ttl>
            </class>
         </classes>
      </flight>
      <flight>
         <airline>Safarilink</airline>
         <airlineid>4</airlineid>
         <airlinelogo>https://clients.enoyaone.com/images/system-logos/system-4.png</airlinelogo>
         <from>Amboseli</from>
         <to>Nairobi-Wilson</to>
         <fromcode>ASV</fromcode>
         <tocode>WIL</tocode>
         <direction>Inbound</direction>
         <flightdate>2014/06/14</flightdate>
         <depart>09:05</depart>
         <arrive>09:50</arrive>
         <number>012</number>
         <bookable>false</bookable>
         <via />
         <totalminutes>45</totalminutes>
         <linktowebsite>
            <url>http://www.flysafarilink.com/booking/search-results-flights.asp</url>
            <DepartureDateVal>2014/06/14</DepartureDateVal>
            <TripType>RT</TripType>
            <FromDSTid>42</FromDSTid>
            <ToDSTid>41</ToDSTid>
            <ReturnDateVal>2014/06/14</ReturnDateVal>
            <invAdlt>2</invAdlt>
            <invKids>0</invKids>
            <DepartureShow>0</DepartureShow>
            <ReturnShow>0</ReturnShow>
         </linktowebsite>
         <CompanyWebDiscount>0</CompanyWebDiscount>
         <Rules>
            <rule>This%20service%20operates%20subject%20to%20minimum%202%20pax%20in%20high%20season%20and%204%20pax%20in%20low%20season%2C%20so%20if%20you%20are%20a%20single%20pax%20or%20in%20the%20event%20other%20booked%20pax%20cancel%2C%20you%20may%20be%20required%20to%20pay%20for%20the%20additional%20seats.</rule>
         </Rules>
         <flightcode>390546</flightcode>
         <classes>
            <class flightcode="390546">
               <classcode>Y</classcode>
               <flightid>1093489</flightid>
               <rackfare_adult>122.00</rackfare_adult>
               <rackfare_child>85.40</rackfare_child>
               <agtfare_adult>122.00</agtfare_adult>
               <agtfare_child>85.40</agtfare_child>
               <tax>10</tax>
               <currency>USD</currency>
               <ttl>2014/05/31 09:05</ttl>
            </class>
         </classes>
      </flight>
      <flight>
         <airline>Airkenya Express LTD</airline>
         <airlineid>5</airlineid>
         <airlinelogo>https://clients.enoyaone.com/images/system-logos/system-5.png</airlinelogo>
         <from>Amboseli</from>
         <to>Nairobi-Wilson</to>
         <fromcode>ASV</fromcode>
         <tocode>WIL</tocode>
         <direction>Inbound</direction>
         <flightdate>2014/06/14</flightdate>
         <depart>08:10</depart>
         <arrive>08:40</arrive>
         <number>882</number>
         <bookable>true</bookable>
         <via />
         <totalminutes>30</totalminutes>
         <linktowebsite>
            <url>http://www.airkenya.com/booking/search-results-flights.asp</url>
            <DepartureDateVal>2014/06/14</DepartureDateVal>
            <TripType>RT</TripType>
            <FromDSTid>226</FromDSTid>
            <ToDSTid>212</ToDSTid>
            <ReturnDateVal>2014/06/14</ReturnDateVal>
            <invAdlt>2</invAdlt>
            <invKids>0</invKids>
            <DepartureShow>0</DepartureShow>
            <ReturnShow>0</ReturnShow>
         </linktowebsite>
         <CompanyWebDiscount>5</CompanyWebDiscount>
         <Rules />
         <flightcode>374940</flightcode>
         <classes>
            <class flightcode="374940">
               <classcode>Y</classcode>
               <flightid>1039708</flightid>
               <rackfare_adult>110.50</rackfare_adult>
               <rackfare_child>77.35</rackfare_child>
               <agtfare_adult>110.50</agtfare_adult>
               <agtfare_child>77.35</agtfare_child>
               <tax>17</tax>
               <currency>USD</currency>
               <ttl>2014/05/31 08:10</ttl>
            </class>
         </classes>
      </flight>
   </flights>
</aerocrs>

Contact Us

Phone: +972 (3) 7219664
Fax: +972 (57) 7970943

Latest Blog Posts