Cyberesa Developers V2027.0.x
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
<?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

XML
<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>
RootSub rootTagDescription
CredentialsMandatory
LoginMandatory
PasswordMandatory
UserMandatory
CurrMandatory
IlngMandatoryNumeric value
SessionOptionalOnly for GDS Flight
SFMOptionalNumeric value, Contains Amadeus service fees, Only for GDS
OfficeIdOptionalIs the OfficeId received in FlightDetailRS, Only for GDS
If you don’t specify the officeId, we use the first one in DB.
ContentMandatoryCan be GDS or LCC
CarrierCodeMandatoryReference of the selected flight
RemarkMandatoryUtilized to store general remarks in a traveller record.
LuggageOptional:“true” : means flight is with bags
ContactInformation
IdOptionalThe Id of the customer
CivilityMandatoryThe code civility of a contact.
1: Mr
2: Mrs
3: Ms
FirstNameMandatoryThe first name of a contact.
LastNameMandatoryThe name of a contact.
TelMandatoryThe phone number of a contact.
EmailMandatoryThe email address of a contact.
AddressMandatoryThe address of a contact.
ZipCodeMandatoryThe zip code of a contact.
CityMandatoryThe city of a contact (free text).
CountryMandatoryThe country code IsoCode of a contact.
TravellerList
Traveller
Traveller:TitleMandatoryValue must be one of: Mr, Mrs, Miss. No other values are supported as values like Ms
Traveller:FirstNameMandatoryThe first name of the traveller
Traveller:LastNameMandatoryThe name of the traveller
Traveller:BirthOfDateMandatoryThe 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)
OptionalThis 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,..)
IdAssignedUserPaymentOptionalNumeric
Current agent: Available only for B2C
Kit
Kit: PaymentGatewayNumeric
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:SecutityCodeBoolean : 1 or 0
Value of 3DS
Kit:IdAutorisationText
Id of autorisation
Kit:CardTypeText
Type of card
Kit:CardBankText
Bank of card
Kit:BankCountryText
Country of bank
Kit:CardNumberText
Number of card
Kit:ClientLastNameText
Last name of client
Kit:ClientFirstNameText
First name of client
Kit:ClientEmailText
Email of client

Response

XML
<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>
RootSubRootDescription
SupplierReferenceReference of PNR or LCC temporary supplier reference
CyberesaReferenceReference of booking in CYBERESA
PassengersPassenger Details : to show price break down per passenger
Passenger
Passenger:FirstNameFirst Name of passenger
Passenger:LastNameLast Name of passenger
Passenger:Rates:AmountWithoutTaxAmount Without Tax per passenger
Passenger:Rates:AmountWithTaxAmount With Tax per passenger
Passenger:Rates:TaxTax per passenger
Passenger:Rates:CurrencyCurrency of amount
Passenger:Rates:TaxDetailsDetails of Tax per passanger
CYBERESA SARL au capital de 560 000 TND (R.C : B2437152011 – M.F : 1189611/V) Siège social : Immeuble 3S, Lotissement Ennassim, 1073 Montplaisir - Tunis - TUNISIE · Tél : +216 71 947 401 - Fax : +216 70 201 010 - Site web : www.cyberesa.net - Email : info@cyberesa.net 30/10/2023 –
© Cyberesa · Flight API V2027.0.x · updated 27/08/2026