Professional Documents
Culture Documents
CyberesaWS Hotel 10.0.0
CyberesaWS Hotel 10.0.0
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
04/03/2020 – page 1/49
Solutions e-tourisme
Document Control
2.Delete node
SelectedRooms:Options:Option:@id from
HotelBookingCreationREQ
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
04/03/2020 – page 2/49
Solutions e-tourisme
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
04/03/2020 – page 3/49
Solutions e-tourisme
• HotelCancellationPolicy: add
<source> node to the request
envelope
• HotelBookingCancellation:
add<source> node to the request
envelope
21/03/2019 Sofien Ouelhazi • update API StaticDataRQ()
Add new node rooms.
20/05/2019 Sofien Ouelhazi • update API BookingListRS ()
Add new node PaidAmount.
03/07/2019 Imed Gharsalli • add attribute tolerance to
ExpectedPrice in
HotelBookingCreation API
• update state node with id attribute in
BookingList API
04/07/2019 Abderraouf Hatmi • add API HotelRoomSelection
04/07/2019 Abderraouf Hatmi • update API HotelSearchREQ: add
new nodes to filter results based on
hotels ids: hotels_ids or
exclude_hotels_ids
04/07/2019 Imed Gharsalli • update API HotelSearchREQ: return
mandatory supplements in <room>
when applicable
09/10/2019 Mohamed Ali • update BookingList() and
Mejri HotelBookingCreation() APIs
parameters descriptions
25/12/2019 Akrem Rouis • Add new node <NonRefundable> to
HotelSearch() and
HotelCancellationPolicy() APIs
13/01/2020 Achraf Bouanani • Updated StaticDataRQ() API added
new nodes in <hotel>
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
04/03/2020 – page 4/49
Solutions e-tourisme
Introduction ......................................................................................................................................................... 6
Authentication & Security ............................................................................................................................... 6
Method POST ...................................................................................................................................................... 6
WORKFLOW ........................................................................................................................................................ 7
API HotelSearch()............................................................................................................................................... 8
API HotelBookingCreation()..........................................................................................................................14
API HotelBookingCancellation() ..................................................................................................................22
API HotelCancellationPolicy() ......................................................................................................................23
API StaticDataRQ() ..........................................................................................................................................26
API HotelDetailRQ() .........................................................................................................................................31
API TripBookingList() .....................................................................................................................................38
API CreditCheck() ............................................................................................................................................41
API HotelBookingAcknowledge() ................................................................................................................43
API BookingList() .............................................................................................................................................44
API HotelRoomSelection() .............................................................................................................................47
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
04/03/2020 – page 5/49
Solutions e-tourisme
Introduction
This document describes how to use APIs when accessing CYBERESA Web Services.
This document describes also each API, its structure for request and response, which parameters are
mandatory and optional and error management.
Method POST
The following is a sample HTTP POST request and response. The placeholders shown need to be
replaced with actual values.
Request
strRQ=string
Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0"?>
xml
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
04/03/2020 – page 6/49
Solutions e-tourisme
WORKFLOW
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
04/03/2020 – page 7/49
Solutions e-tourisme
API HotelSearch()
This function is dedicated for hotels search
Request
<HotelSearchREQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<SearchDetails>
<BookingDetails>
<User>?</User>
<Language>?</Language>
<FromDate>?</FromDate>
<ToDate>?</ToDate>
<IdCity>?</IdCity>
<Rooms>
<Room>
<Pax>
<Adult>2</Adult>
<Child age=””>0</Child>
</Pax>
<Boarding>?</Boarding>
</Room>
<Room>
<Pax>
<Adult>1</Adult>
<Child age=”8-10”>2</Child>
</Pax>
<Boarding>?</Boarding>
</Room>
<Room>
<Pax>
<Adult>2</Adult>
<Child age=”9”>1</Child>
</Pax>
<Boarding>?</Boarding>
</Room>
</Rooms>
</BookingDetails>
<Filters>
<Budget minimum=”?” Maximum=”?”>?</Boarding>
<Keywords>?</Keywords>
<Categories>
<Category>?</Category>
</Categories>
<Sort>
<By>?</By>
</Sort>
<OnlyAvailable>True/False</OnlyAvailable>
<ItemsPerPage>?</ItemsPerPage>
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
04/03/2020 – page 8/49
Solutions e-tourisme
<PageNumber>?</PageNumber>
<hotels_ids>?</hotels_ids>
<exclude_hotels_ids>?</exclude_hotels_ids>
</Filters>
</SearchDetails>
</HotelSearchREQ>
Credential Mandatory
SearchDetails BookingDetails
BookingDetails :Rooms :Room :Pax Describe configuration of requested pax within Mandatory
the search
BookingDetails :Rooms :Room:Pax : Number Of adults for the current room Numeric Mandatory
Adult configuration
BookingDetails :Rooms :Room:Pax : Number of children for the current room Numeric Mandatory
Child : configuration
BookingDetails :Rooms :Room:Pax : Children ages separated by “-” Text Mandatory for child
Child @Age ex: “5” or “5-6”
Filters
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
04/03/2020 – page 9/49
Solutions e-tourisme
hotels_ids Return only those hotels ids if exists or available Text Optional
exclude_hotels_ids Exclude those hotels ids from results if exists or Text Optional
available
Response
<HotelSearchRES>
<ErrorResult id=’?’>
<message>?</message>
</ErrorResult>
<FromDate>?</FromDate>
<ToDate>?</ToDate>
<Language>?</Language>
<Currency>?</Currency>
<City id=’?’>?</City>
<Destination id=’?’>?</Destination>
<PaginationData currentPage=’?’ TotalPages=’?’ />
<Hotels count=’?’>
<Hotel id=’?’>
<Source>?</Source>
<Title>?</Title>
<PromotionTitle>?</PromotionTitle>
<Category id=>?</Category>
<ThumbImage url=’?’>?</ThumbImage>
<Review id=’?’>
<Note>?</Note>
<Number>?</Number>
</Review>
<Localization>
<Longitude>?</Longitude>
<Latitude>?</Latitude>
</Localization>
<Address>?</Address>
<GlobalSupplement>?</GlobalSupplement>
<Rooms>
<Room id=’?’ Count=’?’>
<Adult>?</Adult>
<Child maxage=’?’ minage=’?’ age=’?’>?</Child>
<Title>?</Title>
<Boardings>
<Boarding id=’?’>
<Title>?</Title>
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
04/03/2020 – page 10/49
Solutions e-tourisme
ErrorResult
Hotels
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
04/03/2020 – page 11/49
Solutions e-tourisme
Hotels :Hotel :Source Id of the third-party supplier (if exists) Numeric Optional
Rooms
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
04/03/2020 – page 12/49
Solutions e-tourisme
authorized FromDate to
start booking : if
@code=203
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
04/03/2020 – page 13/49
Solutions e-tourisme
CancellationPolicy
API HotelBookingCreation()
This function is dedicated to create the booking.
Request
<HotelBookingCreationREQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<City id=’?’>?</City>
<Destination id=’?’>?</Destination>
<User>?</User>
<Language>?</Language>
<Currency>?</Currency>
<FromDate>?</FromDate>
<ToDate>?</ToDate>
<HotelID>?</HotelID>
<IdToken>?</IdToken>
<Source>?</Source>
<Recommandation>?</Recommandation>
<CodePromo>?</CodePromo>
<expectedprice tolerance=’?’>?</expectedprice>
<SelectedRoom id=’1’>
<Adult>2</Adult>
<Child>0</Child>
<Boarding id=’?’ />
<Customers>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age></Age>
</Customer>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age></Age>
</Customer>
</Customers>
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
04/03/2020 – page 14/49
Solutions e-tourisme
</SelectedRoom>
<SelectedRoom id=’2’>
<Adult>1</Adult>
<Child>0</Child>
<Boarding id=’?’ />
<Customers>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age></Age>
</Customer>
</Customers>
</SelectedRoom>
<SelectedRoom id=’3’>
<Adult>1</Adult>
<Child>2</Child>
<Boarding id=’?’ />
<Customers>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age></Age>
</Customer>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age>3</Age>
</Customer>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age>6</Age>
</Customer>
</Customers>
</SelectedRoom>
<SelectedRoom id=’4’>
<Adult>2</Adult>
<Child>2</Child>
<Boarding id=’?’ />
<Customers>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age></Age>
</Customer>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age></Age>
</Customer>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age>4</Age>
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
04/03/2020 – page 15/49
Solutions e-tourisme
</Customer>
<Customer>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</FirstName>
<Age>7</Age>
</Customer>
</Customers>
</SelectedRoom>
…
</SelectedRooms>
<IdAssignedUserPayment></IdAssignedUserPayment>
<Kit>
<PaymentGateway>?</PaymentGateway>
<SecurityCode>?</SecurityCode>
<IdAutorisation>?</IdAutorisation>
<CardType>?</CardType>
<CardBank>?</CardBank>
<BankCountry>?</BankCountry>
<CardNumber>?</CardNumber>
<ClientLastName>?</ClientLastName>
<ClientFirstName>?</ClientFirstName>
<ClientEmail>?</ClientEmail>
</Kit>
<PaymentDetails>
<Name></Name>
<CardNumber></CardNumber>
<CVC></CVC>
<ExpiryDate></ ExpiryDate >
</PaymentDetails>
<Customer>
<Id>?</Id>
<Email>?</Email>
</Customer>
</HotelBookingCreationREQ>
Credential Mandatory
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
04/03/2020 – page 16/49
Solutions e-tourisme
SelectedRooms:Selecte Adult count for the current room configuration Numeric Mandatory
dRoom:Adult
SelectedRooms:Selecte Child count for the current room configuration Numeric Mandatory
dRoom:Child
SelectedRooms: Child age (only for children, DO NOT PASS for Numeric Mandatory for children
SelectedRoom:Passeng adults !!!) DO NOT PASS
ers: Age for adults !!!
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
04/03/2020 – page 17/49
Solutions e-tourisme
Kit Optional
Kit: PaymentGateway Payment mode : Available only for B2C Numeric 4 : offline
6 : sps
8 : mtc
PaymentDetails
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
04/03/2020 – page 18/49
Solutions e-tourisme
Response
<HotelBookingCreationRES>
<ErrorResult id=?>
<message>?</message>
</ErrorResult>
<User>?</User>
<FromDate>?</FromDate>
<ToDate>?</ToDate>
<Language>?</Language>
<Currency>?</Currency>
<HotelID>?</HotelID>
<HotelTitle>?</HotelTitle>
<Category>?</Category>
<OrderDetails id=’?’ idtoken=’?’ password=’?’>
<CancellationPolicies>
<CancellationPolicy>
<FromDate>?</FromDate>
<Fee>?</Fee>
</CancellationPolicy>
</CancellationPolicies>
<NoShowPolicy>
<Fee>?</Fee>
</NoShowPolicy>
<Rooms>
<Room id=’?’>
<Adult>?</Adult>
<Child>?</Child>
<Title>?</Title>
<Boarding id=?>
<Rate>?</Rate>
<Title>?</Title>
</Boarding>
<Passengers>
<Passenger>
<Civility>?</Civility>
<FirstName>?</FirstName>
<LastName>?</LastName>
<Age>?</Age>
<Reduction id=’?’>?</Reduction>
</Passenger>
</Passengers>
</Room>
</Rooms>
<State id=’?’>?</State>
<TotalRate>?</TotalRate>
<GlobalSupplement>?</GlobalSupplement>
</OrderDetails>
<PaymentDetails>
<TransactionId>?</TransactionId>
<AuthorizationId>?</AuthorizationId>
</PaymentDetails>
</HotelBookingCreationRES>
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
04/03/2020 – page 19/49
Solutions e-tourisme
CancellationPolicie CancellationPolicies
s
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
04/03/2020 – page 20/49
Solutions e-tourisme
PaymentDetails
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
04/03/2020 – page 21/49
Solutions e-tourisme
PaymentDetails: Payment Authorization code Numeric Payment Authorization code (if paid
AuthorizationId by bank card)
API HotelBookingCancellation()
This function is dedicated to cancel an order already confirmed
Request
<HotelBookingCancellationREQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<User>?</User>
<Language>?</Language>
<OrderId>?</OrderId>
<Source>?</Source>
</HotelBookingCancellationREQ>
Credential Mandatory
Response
<HotelBookingCancellationRES>
<ErrorResult id=’?’>
<message>?</message>
</ErrorResult>
<ReturnedValue>
<OrderCancelled>?</OrderCancelled>
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
04/03/2020 – page 22/49
Solutions e-tourisme
<IdOrder>?</IdOrder>
<Rate>?</Rate>
<Currency>?</Currency>
</ReturnedValue>
</HotelBookingCancellationRES>
API HotelCancellationPolicy()
This function is dedicated to return the hotel cancellation policy
<HotelCancellationPolicyREQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<User>?</User>
<Currency>?</Currency>
<Language>?</Language>
<HotelID>?</HotelID>
<FromDate>?</FromDate>
<ToDate>?</ToDate>
<SelectedRoom id=’1’>
<Adult>1</Adult>
<Child age=’9’>1</Child>
<Boarding id=’?’ />
</SelectedRoom>
<SelectedRoom id=’2’>
<Adult>1</Adult>
<Child>0</Child>
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
04/03/2020 – page 23/49
Solutions e-tourisme
Credential Mandatory
Response
<HotelCancellationPolicyRES>
<ErrorResult id=’?’>
<message>?</message>
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
04/03/2020 – page 24/49
Solutions e-tourisme
</ErrorResult>
<User>?</User>
<Currency>?</Currency>
<NonRefundable>?</NonRefundable>
<CancellationPolicies>
<CancellationPolicy>
<FromDate>?</FromDate>
<Fee>?</Fee>
</CancellationPolicy>
</CancellationPolicies>
<NoShowPolicy>
<Fee>?</Fee>
</NoShowPolicy>
</HotelCancellationPolicyRES>
CancellationPolicies CancellationPolicies
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
04/03/2020 – page 25/49
Solutions e-tourisme
API StaticDataRQ()
This function is dedicated to get list of currencies, languages, destinations , hotels , categories and
boardings.
Request
<StaticDataRQ gethotelslist=’?’>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<Ilng>?</Ilng>
<User>?</User>
</StaticDataRQ >
:@gethotelslist
Credential Mandatory
Response
<Root>
<Currencies>
<Currency>
<Id>?</Id>
<Title>?</Title>
</Currency>
</Currencies>
<Languages>
<Language>
<Id>?</Id>
<Title>?</Title>
</Language>
</Languages>
<Destinations>
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
04/03/2020 – page 26/49
Solutions e-tourisme
<Destination id=’?’>
<Title>?</Title>
<Cities>
<City>
<Id>?</Id>
<Title>?</Title>
</City>
</Cities>
</Destination>
</Destinations>
<Hotels>
<Hotel>
<Id>?</Id>
<Title>?</Title>
<IdCity>?</IdCity>
<Address>?</Address>
<Longitude>?</Longitude>
<Latitude>?</Latitude>
</Hotel>
</Hotels>
<Categories>
<Category>
<Id>?</Id>
<Title>?</Title>
</Category>
</Categories>
<HotelBoardings>
<HotelBoarding>
<Id>?</Id>
<Priority>?</Priority>
</HotelBoarding>
</HotelBoardings>
<HotelBoardingsL>
<HotelBoardingL>
<IdHotelsBoarding>?</IdHotelsBoarding>
<Title>?</Title>
<SMSTitle>?</SMSTitle>
</HotelBoardingL>
</HotelBoardingsL>
<Boardings>
<Boarding>
<IdHotelBoarding>?</IdHotelBoarding>
<IdHotel>?</IdHotel>
<Title>?</Title>
</Boarding>
</Boardings>
<Rooms>
<Room>
<Id>?</Id>
<Title>?</Title>
<Generic>?</Generic>
<MinPax>?</MinPax>
<MaxPax>?</MaxPax>
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
04/03/2020 – page 27/49
Solutions e-tourisme
<MinAdult>?</MinAdult>
<MaxAdult>?</MaxAdult>
<MinChild>?</MinChild>
<MaxChild>?</MaxChild>
<MinInfant>?</MinInfant>
<MaxInfant>?</MaxInfant>
<PricePerPax>?</PricePerPax>
</Room>
</Rooms>
<Options>
<Option id=”?”>?</Option>
</Options>
</Root>
Currencies
Languages
Destinations
@Id
Categories
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
04/03/2020 – page 28/49
Solutions e-tourisme
HotelBoardings
ID
Priority
IdHotelsBoarding
IdLanguage
Title
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
04/03/2020 – page 29/49
Solutions e-tourisme
SMSTitle
IdHotelBoarding
IdHotel
Title
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
04/03/2020 – page 30/49
Solutions e-tourisme
PricePerPax
Options
API HotelDetailRQ()
This function is dedicated to get hotel 's details.
Request
<HotelDetailRQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<User>?</User>
<Ilng>?</Ilng>
<HotelID>?</HotelID>
<WithHotelMap>?</WithHotelMap>
<WithHotelAdvancedDetail>?</WithHotelAdvancedDetail>
<WithHotelSections>?</WithHotelSections>
<WithHotelReviews>?</WithHotelReviews>
<WithHotelImages>?</WithHotelImages>
<WithTravellersReviews>?</WithTravellersReviews>
<Source>?</Source>
</HotelDetailRQ>
Credential Mandatory
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
04/03/2020 – page 31/49
Solutions e-tourisme
Response
<HotelDetailRS>
<Id>?</Id>
<Title>?</Title>
<ShowMap>?</ShowMap>
<ShowRewiew>?</ShowRewiew>
<Destination>?</Destination>
<City id=’?’>?</City>
<Category id=’?’>?</Category>
<Summary>?</Summary>
<Description>?</Description>
<ImageUrl>?</ImageUrl>
<PromotionTitle>?</PromotionTitle>
<ShowSection>?</ShowSection>
<ShowImage>?</ShowImage>
<Review count=?>?</Review>
<Address>?</Address>
<Email>?</Email>
<WebSite>?</WebSite>
<Fax>?</Fax>
<Phone>?</Phone>
<SectionList>
<Section id=’?’>?</Section>
</SectionList>
<HotelMap>
<Latitude>?</Latitude>
<Longitude>?</Longitude>
<Zoom>?</Zoom>
</HotelMap>
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
04/03/2020 – page 32/49
Solutions e-tourisme
<HotelAdvancedDetail>
<Reductions>
<Reduction>?</Reduction>
</Reductions>
<Facilities>
<Facility>?</Facility>
</Facilities>
<Rooms>
<Room>?</Room>
</Rooms>
<Options>
<Option id=”?”>?</Option>
</Options>
<Supplements>
<Supplement>?</Supplement>
</Supplements>
<Boards>
<Board>?</Board>
</Boards>
<Locations>
<Location>?</Location>
</Locations>
<Themes>
<Theme id=’?’>?</Theme>
</Themes>
</HotelAdvancedDetail>
<HotelReview>
<ReviewSatisfactionCriterias>
<SatisfactionCriterias>
<IdSatisfactionCriteria>?</IdSatisfactionCriteria>
<SatisfactionCriteria>?</SatisfactionCriteria>
<AverageMark>?</AverageMark>
</SatisfactionCriterias>
</ReviewSatisfactionCriterias>
<ReviewTravellerCategories>
<Traveller>
<IdTravellerCategory>?</IdTravellerCategory>
<TravellerCategory>?</TravellerCategory>
<ReviewsNumber>?</ReviewsNumber>
</Traveller>
</ReviewTravellerCategories>
</HotelReview>
<HotelImages>
<Image title=?>?</Image>
</HotelImages>
<TravellersReviews>
<TravellersReview>
<Name>?</Name>
<TravelerCategory id=’?’>?</TravelerCategory >
<FromDate>?</FromDate>
<ToDate>?</ToDate>
<SubmissionDate>?</SubmissionDate>
<Title>?</Title>
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
04/03/2020 – page 33/49
Solutions e-tourisme
<Comment>?</Comment>
<Criterias>
<Criteria id=’?’ Title=’?’ Value=’?’ />
</Criterias>
</TravellersReview>
</TravellersReviews >
</HotelDetailRS>
Id Id of hotel Numeric
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
04/03/2020 – page 34/49
Solutions e-tourisme
Review
SectionList
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
04/03/2020 – page 35/49
Solutions e-tourisme
Facilities
Rooms
Options
Supplements
Boards
Locations
Themes
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
04/03/2020 – page 36/49
Solutions e-tourisme
ReviewSatisfactionCriterias :
SatisfactionCriterias
ReviewTravellerCategories
ReviewTravellerCategories : Traveller
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
04/03/2020 – page 37/49
Solutions e-tourisme
TravellersReview : Criterias
Criterias :Criteria
API TripBookingList()
This function is dedicated to mTrip.com mobile application to get hotels and flight bookings made since
specific date time and filters on the id Member if needed.
Request:
XML Format
<TripBookingListRQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
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
04/03/2020 – page 38/49
Solutions e-tourisme
<User>?</User>
<IdMember>?</IdMember>
<Ilng>?<Ilng>
<FromDate>?</FromDate>
</TripBookingListRQ>
JSON Format
{"TripBookingListRQ":{"Credential":{"Login":"?","Password":"?"},"User":"?", "Ilng":"?","FromDate":"?"}}
Credential
Response:
JSON Format
{"TripBookingListRS":{"Bookings":{"Booking":[{"@kind":"accommodation","booking_number":"?","name":"?","from_date":"?"
,"to_date":"?","adress":"?","picture_url":"?","tyoe_of_room":"?","city":"?","phone":"?","email":"?","location":{"latitude":"?","lon
gitude":"?"},"travelers":{"?":[{"name":"?","type_of_room":"?"},{"name":"?","type_of_room":"?"},{"name":"?","type_of_room":"?
"},{"name":"?","type_of_room":"?"}]}},{"@kind":"transport","reservation_reference":"?","transport_number":"?","class":?,"dep
arture_date":"?","departure_city":"?","arrival_city":"?","airline_company":"?","departure_airport":"?","departure_airport_iata"
:"?","arrival_airport":"?","arrival_airport_iata":"?","departure_terminal":"?","arrival_terminal":"?","arrival_date":"?","duration":"
?","departure_location":{"latitude":"?","longitude":"?"},"Arrival_location":{"latitude":"?","longitude":"?"},"travelers":{"traveler":{
"name":" ?","ticket_number":"?"}}}]}}}
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
04/03/2020 – page 39/49
Solutions e-tourisme
[kind="transport"]
[kind="accommodation"]
transport_number The number identifying the transport, e.g. the flight string Mandatory
number for a flight(PNR)
departure_city The city from where the transport leaves string Mandatory
arrival_airport The arrival airport or the arrival station for other string Optional
transport mode
Format: 1h :30m
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
04/03/2020 – page 40/49
Solutions e-tourisme
API CreditCheck()
This function is dedicated to get current used and remaining credit (if exists)
Request:
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
04/03/2020 – page 41/49
Solutions e-tourisme
Credential
Response
<CreditCheck>
<Deposit>?</Deposit>
<ConsumedDeposit>?</ConsumedDeposit>
<RemainingDeposit>?</RemainingDeposit>
<RemainingPercentage>?</RemainingPercentage>
<ConsumedPercentage>?</ConsumedPercentage>
<DateDeposit>?</DateDeposit>
<DaysLeft>?</DaysLeft>
</CreditCheck>
Example
<CreditCheck>
<Deposit>285000 DZD</Deposit>
<ConsumedDeposit>282939 DZD</ConsumedDeposit>
<RemainingDeposit>2061 DZD</RemainingDeposit>
<RemainingPercentage>0.723157894736843</RemainingPercentage>
<ConsumedPercentage>0.992768421052632</ConsumedPercentage>
<DateDeposit>05/04/2016</DateDeposit>
<DaysLeft>2.85542820183856</DaysLeft>
</CreditCheck>
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
04/03/2020 – page 42/49
Solutions e-tourisme
API HotelBookingAcknowledge()
This function is dedicated to retrieve the response about previous sent booking to a PMS.
Request
<HotelBookingAcknowledgeRQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<User>?</User>
<Ilng>?</Ilng>
<Orders>
<Order>
<Id>?</Id>
<Operation>?</Operation>
<Comments>?</Comments>
</Order>
…
</Orders>
</HotelBookingAcknowledgeRQ>
Credential Mandatory
Login Text
Password Text
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
04/03/2020 – page 43/49
Solutions e-tourisme
Response
<HotelBookingAcknowledgeRS>
<ErrorResult id='?'>
<message>?</message>
</ErrorResult>
<Orders>
<Order>
<Id>?</Id>
<Status>?</Status>
<Comments>?</Comments>
</Order>
</Orders>
</HotelBookingAcknowledgeRS>
Orders
API BookingList()
This function is dedicated to retrieve the bookings in priority for the given hotel.
Uses idtoken if exist, or idorder if exist or return all bookings starting from lastupdate date.
Request
<BookingListRQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<User>?</User>
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
04/03/2020 – page 44/49
Solutions e-tourisme
<Ilng>?</Ilng>
<hotel>?</hotel>
<idtoken>?</idtoken>
<idorder>?</idorder>
<lastupdate>?</lastupdate>
</BookingListRQ>
Credential Mandatory
Login Text
Password Text
Response
<BookingListRS>
<ErrorResult id='?'>
<message>?</message>
</ErrorResult>
<bookings>
<booking>
<id>?</id>
<totalnetRate>?</totalnetRate>
<totalPaidAmount>?</totalPaidAmount>
<idaffiliate>?</idaffiliate>
<city>?</city>
<hoteltitle> ?</hoteltitle>
<fromdate> ?</fromdate>
<todate> ?</todate>
<remarks> ?</remarks>
<lastupdate> ?</lastupdate>
<state id="?"> ?</state>
<rooms>
<room>
<type> ?</type>
<boarding> ?</boarding>
<netRate> ?</netRate>
<Supplements/>
<customers>
<customer>
<name> ?</name>
<reductions> ?</reductions>
<kind> ?</kind>
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
04/03/2020 – page 45/49
Solutions e-tourisme
</customer>
</room>
</rooms>
</booking>
</bookings>
<Started>
</Started>
<ResponseTime>
</ResponseTime>
<BookingListRS>
bookings
totalnetRate
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
04/03/2020 – page 46/49
Solutions e-tourisme
saved as
onrequest
2 : the booking
is cancelled
rooms
customers
API HotelRoomSelection()
This function is dedicated for hotel Room Selection and return all applicable rooms definitions,
boardings, supplements, globalsupplements…
Request
<HotelRoomSelectionRQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<User>?</User>
<Curr>?</Curr>
<Language>?</Language>
<HotelId>?</HotelId>
<FromDate>?</FromDate>
<ToDate>?</ToDate>
</HotelRoomSelectionRQ>
Credential Mandatory
Login Text
Password Text
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
04/03/2020 – page 47/49
Solutions e-tourisme
Response
<HotelRoomSelectionRS>
<ErrorResult id='?'>
<message>?</message>
</ErrorResult>
<rooms>
<room minAd='?' maxAd='?' minChild='?' maxChild='?'>
<id >?</id>
<title>?</title>
<price>?</price>
<boardings>
<boarding id='?' title='?' price='?' ></boarding>
</boardings>
<Supplements>
<Supplement id='?' title='?' price='?' Mandatory='?' PerNight='?'PerPax='?'></Supplement>
</Supplements>
<GlobalSupplements>
<GlobalSupplement id='?' title='?' price='?' Mandatory='?' PerNight='?'PerPax='?'></GlobalSupplement>
</GlobalSupplements>
</room>
</rooms>
<HotelRoomSelectionRS>
rooms
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
04/03/2020 – page 48/49
Solutions e-tourisme
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
04/03/2020 – page 49/49