CreateBooking

API CreateBooking Request

    • This request will create a booking according to flight id’s (taken from getFlights).

You might get a response that from the time of getFlights to your createBooking request seats have been occuipied.

  • You can create a booking for up to 20 flights in one createBooking request.
  • Creating a booking must be actioned on one airline each time, if you wish to book from 2 different airlines, you will need to run createBooking separtly for each airline.
  • System will check if you have the rights to create a booking for the chosen airline.
  • The response will give you a booking ID.
  • Bookings are kept for 20 minutes on airline’s inventory.
  • The system will not allow over TTL (ticketing time limit) pending bookings to be created, each class of booking, the airline define when does it needs to be ticketed, as PENDING status bookings are not ticketed, the system will prevent it from creation (according to your deposit or credit facilities with the airline or AeroCRS)

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
<adults>
Number Number of adults
<child>
Number Number of children
<fromcode>
Text Code of departure
<tocode>
Text Code of arrival
<flightid>
Number <flightid> you received from getFlights
<?xml version="1.0" encoding="utf-8"?>
<aerocrsapi>
  <request>createBooking</request>
  <connector>
    <id>17C99F8D-6358-420C-A322-C71EA9592651</id>
    <password>test</password>
  </connector>
  <parms>
    <triptype>RT</triptype>
    <adults>2</adults>
    <child>0</child>
  </parms>
  <bookflight>
    <fromcode>WIL</fromcode>
    <tocode>ASV</tocode>
    <flightid>271602</flightid>
  </bookflight>
  <bookflight>
    <fromcode>ASV</fromcode>
    <tocode>WIL</tocode>
    <flightid>271818</flightid>
  </bookflight>
</aerocrsapi>

Receive

The system will return a <booking> element with the following elements within:

Element Type Details
<items> element will hold several elements for example: flight, hotel etc.
<flight> element will hold the following elements:
<airline>
text Name of airline
<airlineid>
number The airline ID in AeroCRS system
<from>
text From destination name
<to>
text To destination name
<flightdate>
date YYYY/MM/DD date of flight
<depart>
time HH:MM time of departure
<arrive>
time HH:MM time of arrival
<number>
text Flight number
<class>
text The class code booked
<invid>
number Number of flight booking (used internal)
<invpricing>
money Total charged in the currency for the flight
<Adultfare>
money Adult RACK fare (per 1 adult)
<Childfare>
money Child RACK fare (per 1 child)
<tax>
money Total TAX
<net_fare>
money Total NET fare (charged)
<rack_fare>
money Total rack fare
<totaltax>
money Total TAX for flight
This is a general <booking> element elements
<adults>
number Number of adults booked
<child>
number Number of children booked
<totalprice>
money Total amount for all booking
<bookingid>
number Booking ID to be used in the API in confirmBooking
<pnrref>
string PNR Reference (Record locator) to show customer
<?xml version="1.0" encoding="UTF-8"?>
<aerocrs>
   <booking>
      <items>
         <flight>
            <airline>Northair ltd.</airline>
            <airlineid>20</airlineid>
            <from>Nairobi-wilson</from>
            <to>Mombasa</to>
            <fromcode>WIL</fromcode>
            <tocode>MBA</tocode>
            <flightdate>2014/05/13</flightdate>
            <depart>10:00</depart>
            <arrive>11:00</arrive>
            <number>901</number>
            <class>W</class>
            <invid>1649032</invid>
            <invpricing>232.16</invpricing>
            <Adultfare>80.00</Adultfare>
            <Childfare>80.00</Childfare>
            <tax>20.00</tax>
            <net_fare>185.60</net_fare>
            <rack_fare>160.16</rack_fare>
            <totaltax>46.40</totaltax>
         </flight>
      </items>
      <adults>2</adults>
      <child>0</child>
      <totalprice>232.16</totalprice>
      <bookingid>21733077</bookingid>
      <pnrref>20ABA34</pnrref>
   </booking>
</aerocrs>

Contact Us

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

Latest Blog Posts