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

Variable Variable type Details Container
request Request the request itself aerocrsapi
id String the ID given by AeroCRS aerocrsapi/connector
password String the password give by AeroCRS aerocrsapi/connector
triptype String Type of request:
OW: One way
RT: Return
aerocrsapi/parms
adults Number Number of adults aerocrsapi/parms
child Number Number of children aerpcrsapi/parms
fromcode Text Code of departure aerocrsapi/bookflight
tocode Text Code of arrival aerocrsapi/bookflight
flightid Number Number you recieved from getFlights aerocrsapi/bookflight
<?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

Variable Variable type Details Container
booking container Contains all booking information aerocrs
items container Contains all items information aerocrs/booking
flight container Flight information aerocrs/booking/items
airline text Name of airline aerocrs/booking/items/flight
from text From destination name aerocrs/booking/items/flight
to text To destination name aerocrs/booking/items/flight
flightdate date YYYY/MM/DD date of flight aerocrs/booking/items/flight
depart time HH:MM time of departure aerocrs/booking/items/flight
arrive time HH:MM time of arrival aerocrs/booking/items/flight
number text Flight number aerocrs/booking/items/flight
invid number Number of flight booking (used internal) aerocrs/booking/items/flight
invpricing money Total pricing in USD for the flight aerocrs/booking/items/flight
adults number Number of adults booked aerocrs/booking
child number Number of children booked aerocrs/booking
totalprice money Total amount for all booking aerocrs/booking
bookingid number Booking ID to be used in the API aerocrs/booking
<?xml version="1.0" encoding="utf-8"?>
<aerocrs>
  <booking>
    <items>
      <flight>
        <airline>Safarilink</airline>
        <from>Nairobi-Wilson</from>
        <to>Amboseli</to>
        <flightdate>2012/03/13</flightdate>
        <depart>08:15</depart>
        <arrive>08:55</arrive>
        <number>011</number>
        <invid>429209</invid>
        <invpricing>270.00</invpricing>
      </flight>
      <flight>
        <airline>Safarilink</airline>
        <from>Amboseli</from>
        <to>Nairobi-Wilson</to>
        <flightdate>2012/03/14</flightdate>
        <depart>09:05</depart>
        <arrive>09:50</arrive>
        <number>012</number>
        <invid>429210</invid>
        <invpricing>263.00</invpricing>
      </flight>
    </items>
    <adults>2</adults>
    <child>0</child>
    <totalprice>533.00</totalprice>
    <bookingid>3751080</bookingid>
  </booking>
</aerocrs>

Contact Us

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

Latest Blog Posts