Flight API · Booking
FlightBookingCreation
The FlightBookingCreation used to execute the booking (PNR creation in GDS) and to submit the travelers information’s in case of LCC. The response will contain a PNR number in case of GDS and a temporary supplier reference in case of LCC.
Request
Case of GDS Flight
<?xml version="1.0" encoding="utf-8"?>
<FlightBookingCreationRQ>
<Credentials>
<Login>Cu2gOrbzhN0=</Login>
<Password>mtPXhFzrzuM=</Password>
</Credentials>
<User>707</User>
<Curr>EUR</Curr>
<Ilng>1</Ilng>
<SFM>?</SFM>
<Session>215</Session>
<OfficeId>?</OfficeId>
<Content>gds</Content>
<CarrierCode>AF</CarrierCode>
<Remark>no comment</Remark>
<Luggage>true</Luggage>
<ContactInformation>
<Id>2210</Id>
<Civility>3</Civility>
<FirstName>Salima</FirstName>
<LastName>Lamouri</LastName>
<Tel>2161111111</Tel>
<Address>Tunis</Address>
<ZipCode>2041</ZipCode>
<City>Ariana</City>
<Country>TN</Country>
<Email>ssalima@gmail.com</Email>
</ContactInformation>
<Passenger>
<Adult>1</Adult>
<Child>0</Child>
<Infant>0</Infant>
</Passenger>
<TravellerList>
<Traveller>
<Title>Mr</Title>
<FirstName>ghgh</FirstName>
<LastName>ghtrgh</LastName>
<DateOfBirth>01/01/1980</DateOfBirth>
</Traveller>
</TravellerList>
<IdAssignedUserPayment></IdAssignedUserPayment>
<Kit>
<PaymentGateway>?</PaymentGateway>
<SecutityCode>?</SecutityCode>
<IdAutorisation>?</IdAutorisation>
<CardType>?</CardType>
<CardBank>?</CardBank>
<BankCountry>?</BankCountry>
<CardNumber>?</CardNumber>
<ClientLastName>?</ClientLastName>
<ClientFirstName>?</ClientFirstName>
<ClientEmail>?</ClientEmail>
</Kit>
</FlightBookingCreationRQ>Case of LCC Flight
<FlightBookingCreationRQ>
<Credentials>
</Credentials>
<User>707</User>
<Curr>TND</Curr>
<Ilng>1</Ilng>
<Content>lcc</Content>
<CarrierCode>V14EVYBWRB1EY35S</CarrierCode>
<Remark>no comment</Remark>
<ContactInformation>
<Id>2210</Id>
<Civility>3</Civility>
<FirstName>Nabil_</FirstName>
<LastName>Elayeb_</LastName>
<Tel>2161111111</Tel>
<Address>Tunis</Address>
<ZipCode>2041</ZipCode>
<City>Ariana</City>
<Country>TN</Country>
<Email>nabil.elayeb@hotmail.fr</Email>
</ContactInformation>
<TravellerList>
<Traveller>
<Title>Mr</Title>
<FirstName>NEA</FirstName>
<LastName>ELA</LastName>
<DateOfBirth>01/01/1980</DateOfBirth>
<Parameters>
</Parameters>
</Traveller>
</TravellerList>
<IdAssignedUserPayment></IdAssignedUserPayment>
<Kit>
<PaymentGateway>?</PaymentGateway>
<SecutityCode>?</SecutityCode>
<IdAutorisation>?</IdAutorisation>
<CardType>?</CardType>
<CardBank>?</CardBank>
<BankCountry>?</BankCountry>
<CardNumber>?</CardNumber>
<ClientLastName>?</ClientLastName>
<ClientFirstName>?</ClientFirstName>
<ClientEmail>?</ClientEmail>
</Kit>
</FlightBookingCreationRQ>| Root | Sub root | Tag | Description |
|---|---|---|---|
| Credentials | Mandatory | ||
| Login | Mandatory | ||
| Password | Mandatory | ||
| User | Mandatory | ||
| Curr | Mandatory | ||
| Ilng | Mandatory | Numeric value | |
| Session | Optional | Only for GDS Flight | |
| SFM | Optional | Numeric value, Contains Amadeus service fees, Only for GDS | |
| OfficeId | Optional | Is the OfficeId received in FlightDetailRS, Only for GDS If you don’t specify the officeId, we use the first one in DB. | |
| Content | Mandatory | Can be GDS or LCC | |
| CarrierCode | Mandatory | Reference of the selected flight | |
| Remark | Mandatory | Utilized to store general remarks in a traveller record. | |
| Luggage | Optional: | “true” : means flight is with bags | |
| ContactInformation | |||
| Id | Optional | The Id of the customer | |
| Civility | Mandatory | The code civility of a contact. 1: Mr 2: Mrs 3: Ms | |
| FirstName | Mandatory | The first name of a contact. | |
| LastName | Mandatory | The name of a contact. | |
| Tel | Mandatory | The phone number of a contact. | |
| Mandatory | The email address of a contact. | ||
| Address | Mandatory | The address of a contact. | |
| ZipCode | Mandatory | The zip code of a contact. | |
| City | Mandatory | The city of a contact (free text). | |
| Country | Mandatory | The country code IsoCode of a contact. | |
| TravellerList | |||
| Traveller | |||
| Traveller:Title | Mandatory | Value must be one of: Mr, Mrs, Miss. No other values are supported as values like Ms | |
| Traveller:FirstName | Mandatory | The first name of the traveller | |
| Traveller:LastName | Mandatory | The name of the traveller | |
| Traveller:BirthOfDate | Mandatory | The date of birth of the traveller. This field is mandatory for traveller type: child and infant. | |
| Traveller: Parameters “GDS” --PassportNumber : Type Text (Optional) --PassportExpiryDate : Type Date (Optional) --FrequentFlyerNumber : Type Text (Optional) --Nationality : Type Text country iso code (Optional) -- NationalIDCard: Type Text (Optional) -- PassengerEmail: Type Text (Mandatory for the main passenger) -- PassengerTelephone: Type Text (Mandatory for the main passenger) “LCC” --PassportNumber : Type Text (Mandatory) --PassportExpiryDate : Type Date (Mandatory) --Nationality : Type country iso code (Mandatory) | Optional | This field is optional. You must specify the number and weight of baggage if you need baggage feature in the booking process. Please note that ‘easyJet’ policy for baggages is to have same number and weight for all travellers(0 for all / 2 for all…) NumberOfBags BaggageWeight FlightDetailRS For FrequentFlyerNumber parameter you must specify attribute company with iataCode (AF, TN, AZ, TK,..) | |
| IdAssignedUserPayment | Optional | Numeric Current agent: Available only for B2C | |
| Kit | |||
| Kit: PaymentGateway | Numeric Payment mode : Available only for B2C 4 : offline 6 : sps 8 : mtc Note : booking status will be reserved when you send 4 other case will be confirmed | ||
| Kit:SecutityCode | Boolean : 1 or 0 Value of 3DS | ||
| Kit:IdAutorisation | Text Id of autorisation | ||
| Kit:CardType | Text Type of card | ||
| Kit:CardBank | Text Bank of card | ||
| Kit:BankCountry | Text Country of bank | ||
| Kit:CardNumber | Text Number of card | ||
| Kit:ClientLastName | Text Last name of client | ||
| Kit:ClientFirstName | Text First name of client | ||
| Kit:ClientEmail | Text Email of client |
Response
<FlightBookingCreationRS>
<SupplierReference>V1IXNC4U0</SupplierReference>
<CyberesaReference>899</CyberesaReference>
<ConfidentialCode>opmlrtyu</ConfidentialCode>
<BillReference>123456</BillReference>
<Passengers>
<Passenger>
<FirstName>?</FirstName>
<LastName>?</LastName>
<Rates>
<AmountWithoutTax>?</AmountWithoutTax>
<AmountWithTax>?</AmountWithTax>
<Tax>?</Tax>
<TaxDetails>?</TaxDetails>
<Currency>?</Currency>
</Rates>
</Passenger>
</Passengers>
</FlightBookingCreationRS>
<FlightBookingCreationRS>
<Error id="2043">
<Message>
Price has changed at supplier site
</Message>
</Error>
<SupplierReference>W10SY7F7P</SupplierReference>
<CyberesaReference>2233</CyberesaReference>
<NewRate>208.825 DT</NewRate>
<Passengers>
<Passenger>
<FirstName>?</FirstName>
<LastName>?</LastName>
<Rates>
<AmountWithoutTax>?</AmountWithoutTax>
<AmountWithTax>?</AmountWithTax>
<Tax>?</Tax>
<Currency>?</Currency>
<TaxDetails>?</TaxDetails>
</Rates>
</Passenger>
</Passengers>
</FlightBookingCreationRS>| Root | SubRoot | Description |
|---|---|---|
| SupplierReference | Reference of PNR or LCC temporary supplier reference | |
| CyberesaReference | Reference of booking in CYBERESA | |
| Passengers | Passenger Details : to show price break down per passenger | |
| Passenger | ||
| Passenger:FirstName | First Name of passenger | |
| Passenger:LastName | Last Name of passenger | |
| Passenger:Rates:AmountWithoutTax | Amount Without Tax per passenger | |
| Passenger:Rates:AmountWithTax | Amount With Tax per passenger | |
| Passenger:Rates:Tax | Tax per passenger | |
| Passenger:Rates:Currency | Currency of amount | |
| Passenger:Rates:TaxDetails | Details of Tax per passanger |