post https://api.aerocrs.com/v4/createBooking
This method will create a booking according to one or more flight id.
Important
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.
Request parameters
Parameter | Type | Description |
---|---|---|
triptype | String* | Type of request: OW: One-way RT: Return |
adults | Number* | Number of adults |
child | Number* | Number of children |
infant | Number | Number of infants (not mandatory) |
bookflight | Element* | Include the flight details |
fromcode | String* | Origin code from getDestinations |
tocode | String* | Destination code from getDestinations |
flightid | Number* | flightid received from getFlights |
currency | String (Optional) | Requested currency ISO (Example - USD) |
chargetype | String* | The iataCode chargetype |
- Mandatory parameters
Response
The method will response with all the details and a booking ID which you can use in other methods in AeroCRS API.
Parameter | Type | Description |
---|---|---|
booking | Element | The booking information, Holds items element |
items | Element | Holds several other elements e.g. flight, hotel etc. |
flight | Element | Holds the following elements: |
airline | String | Name of airline |
airlineid | Number | ID of airline in AeroCRS systems |
from | String | Name of destination of departure |
to | String | Name of destination of arrival |
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 |
class | String | Class code |
invid | Number | ID of booked flight (internal use) |
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) |
Infantfare | Money | Infant RACK fare (per 1 infant) |
tax | Money | Total TAX |
net_fare | Money | Total NET fare (charged) |
rack_fare | Money | Total rack fare |
totaltax | Money | Total TAX for flight |
currency | String | The currency used in the fare (ISO-4217) |
converttousd | Number | The conversion rate to USD as defined by the airline. |
terms | String | Related terms of the fare / booking class. |
adults | Number | Number of adults booked |
child | Number | Number of children booked |
infant | Number | Number of infants booked |
totalprice | Money | Total amount for all booking |
bookingid | Number | Booking ID to be used in the confirmBooking API |
pnrref | String | PNR Reference (Record locator) to show customer |
pnrptl | Date | Payment time limit in GMT time zone YYYY/MM/DD HH:MM |
pnrttl | Date | Ticketing time limit in GMT time zone YYYY/MM/DD HH:MM |
infaspax | Boolean | In case the airline defined infant as passenger |