Professional Documents
Culture Documents
Travelomatix Hotel Api Documentation Final
Travelomatix Hotel Api Documentation Final
Version 3.0
This document is a preliminary release and may be changed prior to final commercial release. This
document is provided for information purposes only and Accentria Solutions Pvt Ltd makes no
warranties, either express or implied, in this document.
The information contained in this document represents the current view of Accentria Solutions Pvt Ltd
on the issues discussed as of the date of publication. Information in this document, including URL and
other Internet Web site references, is subject to change without notice.
8) .2 BOOK…………………………………………………………………………………………………….. 34
8) 2.1 BOOK REQUEST…………………………………………………………………………………….. 35
8) 2.2 Book Response in Case of Successful Booking …………………………………………… 36
1
9) HotelBookingDetail……………………………………………………………………………………….….. 38
11) GETCANCELLATIONREFUNDDETAILS………………………………………………………………… 41
DOCUMENT CONTROL
Document Control
DOCUMENT CONTROL
Version Issue Date Description
This document describes Travelomatix Hotel API which can be integrated into various applications (Web
app, Mobile app etc).
It is intended specially for developers and other team members to help them know how the Hotel
API Service works. This guide provides all the required information to integrate this Travelomatix
API.
All the steps right from search, to getting the room prices and policies along with the hotel details,
to price verification before booking & then final booking are sequentially followed by using a
shared transaction identifier (Resulttoken).
We strongly recommended that you read the complete guide before integration. This is RESTful
service which communicates only in JSON Format. You may use online tools like
“http://jsonlint.com/” or “http://jsonviewer.stack.hu/” (or other some similar tools) to validate
the JSON Format.
This guide explains the use of each method, what support we are providing to use the API
efficiently, how to access the resources provided by Accentria Solutions Pvt Ltd, etc. This
document also contains the certification process you need to go through for Go Live access. The
document assumes that you are familiar with web services technology. Still if you face any issue
or any concern you can reach us on:
2
Email: support@travelomatix.com
1. FEATURES
Light search with improved response time, and response content GZIP enabled
Cancellation policies available in free text/ Json nodes Format (whichever available)
2. PATHWAY
The Travelomatix Hotel API offers the following pathway to create a booking as per the
provided criteria.
3
BLOCK Gets the updated price of the selected rooms before
ROOM making a booking
Gets the updated cancellation policies of the selected
rooms before making a booking
CANCEL
4
3. COMPRESSION
For some destinations, you may get around 800 to 1200 results. Transmission of such big responses takes extra
time over the internet. To overcome this problem and reduce transmission/ response time by about 80 %, system
is enabled with gzip compression. Please check the below steps on how to receive compressed response.
4. HEADER
5. SEARCH
This section covers the methods involved in knowing basic availability of Hotels in a city, Hotel details,
Availability of rooms and Cancellation policies to avoid any penalty. HOTELSEARCH This method is used to
search hotels available for booking in a specific city within a date range. This method checks:
Note: General availability of hotels in a specific city.
3. Hotel price might vary for same Search Request with different GuestNationality.
http://prod.services.travelomatix.com/webservices/index.php/hotel_v3/service/Search
5
"CheckInDate": "27-06-2018",
"NoOfNights": 1,
"CountryCode": "IN",
"CityId": 6743,
"GuestNationality": "IN",
"NoOfRooms": 1,
"RoomGuests": [
{
"NoOfAdults": 2,
"NoOfChild": 0
}
],
}
2 Room with 3 adults 2 Childs
{
"CheckInDate": "27-06-2018",
"NoOfNights": 1,
"CountryCode": "IN",
"CityId": 6743,
"GuestNationality": "IN",
"NoOfRooms": 2,
"RoomGuests": [
{
"NoOfAdults": 1,
"NoOfChild": 2,
"ChildAge": [
"4",
"6"
]
},
{
"NoOfAdults": 1,
"NoOfChild": 0
}
],
6
6 NoOfRooms Integer Requested number of Mandatory
rooms
7 RoomGuests [ ] Array Requested number of Mandatory
rooms
7.1 NoOfAdults Integer Number of adults in Mandatory
the room
7.2 NoOfChild Integer Number of children Mandatory
in the room (Minimum value should be 0)
7.3 ChildAge [ ] Integer Array Mandatory (Only when
Child age childcount is more than ‘0’
{
"Status": 1,
"Message": "",
"Search": {
"HotelSearchResult": {
"HotelResults": [
{
"ResultIndex": 21,
"HotelCode": "H!0534131",
"HotelName": "Nile Residency",
"HotelCategory": "",
"StarRating": 3,
"HotelDescription": "",
"HotelPolicy": "No Hotel Policy Found",
“HotelPromotionContent”:” "Early Booking Saver. Rate includes 30% discount!”,
“HotelPromotion”:30
"Price": {
"PublishedPrice": 1238.1,
"PublishedPriceRoundedOff": 1239,
"OfferedPrice": 1238.1,
"OfferedPriceRoundedOff": 1239,
"RoomPrice": 1239,
"Tax": 0,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 1239,
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"HotelPicture":
"http:\/\/demo.travelomatix.com\/demo_alpha\/new\/cdn\/1\/images\/H05341311514872453360cc27e586a4dc
e887eedf8168928f5ddc5602b.jpg",
"ImageOrder": 1,
"HotelAddress": "No.61, 4th main 1st CrossBehind, Ayyappa Temple Madiwala, Bengaluru 560068",
"HotelContactNo": "",
"HotelMap": "",
"Latitude": 12.92400737,
"Longitude": 77.61798203,
"HotelLocation": "Bangalore",
"SupplierPrice": "",
"RoomDetails": [
],
"ResultToken": "aaf9b468415ad7237d7df7398dde3342*_*1*_*Z7xwAEwGkj7cEnTc",
"HotelAmenities": [
"Fireplace in lobby ",
7
" Free wired Internet ",
" Ceiling fan ",
" Minimum check-in age is 18",
" Laundry facilities "
],
"Free_cancel_date": "",
"trip_adv_url": "",
"trip_rating": "",
"trip_reviews": "",
"trip_review_url": "",
"web_reviews_url": ""
},
"CityId": "6743"
}
}
}
2 HotelResults [ ] Mandatory
(Can be blank in case no
Array of Array of the unique hotels found for requested
element hotel results City)
2.1 ResultIndex Mandatory
Integer Result Index
2.2 HotelCode String Mandatory
(HotelCode to be echoed
Unique hotel code back in further requests)
2.3 HotelName String Unique hotel name Mandatory
8
2.14 Longitude String Longitude inFormation Optional
of
the hotel
2.15 HotelLocation String Hotel Location Optional
2.16 Price [ ] Array Price Array Mandatory
(Minimum price of the
hotel rooms)
2.16.1 RoomPrice Decimal Price of the room Mandatory
2.16.2 Tax Decimal Optional
Tax applicable for the
room
2.16.3 ExtraGuestCharge Decimal Extra Guest Charges Optional
applicable for the room
2.16.4 ChildCharge Decimal Child Charges applicable Optional
for the room
2.16.5 OtherCharges Decimal Other Charges Optional
applicable
for the room
2.16.6 Discount Decimal Discount applicable for Optional
the room (Currently not in use)
2.16.7 PublishedPrice Decimal Mandatory
Published Price of the (This price would be
room different only if Room
Price is on PUBLISHED.
In case of NET, Published
Price would be same as
Offered Price)
2.16.8 Integer Published Price Mandatory
PublishedPriceRounde (rounded (This price is for display
dOff off) of the room purpose only)
2.16.9 Decimal Offered Price of the Mandatory
OfferedPrice room
2.16.10 Integer Offered Price (rounded Mandatory
off) of the room (This price is for display
OfferedPriceRoundedO ff purpose only)
2.16.11 Decimal Commission applicable Optional
on the Room Price (TBO will part this amount
if Room Price is on
AgentCommission Published)
2.16.12 Decimal Optional
Agent Mark Up (Agent will earn this
applicable amount if Hotel markup is
AgentMarkUp on the Room Price set from backend)
2.16.3 Decimal Optional
Agent Mark Up
applicable
ServiceTax on the Room Price
2.16.4 TDS Decimal TDS applicable on Optional
2.16.5 String Price currency(Mandatory)
CurrencyCode Price currency
2.17 decimal Trip Advisor Rating Optional
(This would come only
when trip advisor rating is
available for the particular
trip_rating hotel)
2.18 trip_adv_url String Trip Advisor image URL Optional
9
(This would come only
when trip advisor rating/
url is available for the
particular hotel)
2.19 Trip Advisor Reviews Optional
count (This would come only
when trip advisor trip reviews
count is available for the
trip_reviews Integer particular hotel)
2.20 Trip Advisor Review Url Optional
(This would come only
when trip advisor trip reviews
url is available for the
trip_review_url String particular hotel)
2.21 Trip Advisor hotel Optional
Review url (This would come only
when trip advisor hotel reviews
is available for the
web_reviews_url String particular hotel)
2.22 datetime API last cancellation
date Mandatory
Free_cancel_date API last cancellation date
6. HOTELINFO
This method is used to request for hotel descriptive content information based on ‘ResultToken’,
HotelDetailsResponse consist of the Hotel images, facilities, attractions, amenities and other basic details of the
hotel.
Sample Request:
{
"ResultToken": "eddd9094df28bee5e2004e935d810992*_*1*_*wEt3Sk7WzRqH7I1h"
}
10
particular search/
book at
Travelomatix's end)
Sample Response:
{
"Status": 1,
"Message": "",
"HotelDetails": {
"HotelInfoResult": {
"HotelDetails": {
"checkin": "2018-06-27",
"checkout": "2018-06-28",
"HotelName": "Ekaa",
"HotelCode": "H!0393714",
"StarRating": 4,
"Description": " Property Location<\/b> Located in Begur, Hotel Ekaa is in the entertainment district and
convenient to The Oxford College and Laser Republic. This 4-star hotel is within close proximity of Columbia Asia
Hospital and St. John's Auditorium.<\/p> Rooms<\/b> Make yourself at home in one of the 32 air-conditioned
rooms featuring fireplaces and LCD televisions. Complimentary wireless Internet access keeps you connected, and
cable programming is available for your entertainment. Private bathrooms have deep soaking bathtubs and
complimentary toiletries. Conveniences include phones, as well as safes and desks.<\/p> Amenities<\/b> Take
advantage of recreation opportunities including a nightclub and a fitness center. Additional amenities at this
Victorian hotel include complimentary wireless Internet access, concierge services, and a television in a common
area. Guests can catch a ride to nearby destinations on the area shuttle (surcharge).<\/p> Dining<\/b> Enjoy
Indian cuisine at Melange, one of the hotel's 2 restaurants, or stay in and take advantage of the 24-hour room
service. Snacks are also available at the coffee shop\/cafe. Mingle with other guests at the complimentary
reception, held daily. Quench your thirst with your favorite drink at the bar\/lounge. A complimentary hot\/cold
buffet breakfast is served daily from 6 AM to 10:30 AM.<\/p> Business, Other Amenities<\/b> Featured amenities
include complimentary wired Internet access, a business center, and express check-in. Planning an event in Begur?
This hotel has 3000 square feet (270 square meters) of space consisting of a conference center and a meeting
room. A roundtrip airport shuttle is provided for a surcharge (available 24 hours), and free valet parking is available
onsite.<\/p>",
"Attractions": [
],
"HotelPolicy": "No Hotel Policy Found",
"HotelFacilities": [
"Fitness facilities ",
" Concierge services ",
" Total number of rooms - 32",
" Number of floors - 3",
" Phone ",
" Free toiletries ",
" Iron\/ironing board ",
" Diners Club ",
" MasterCard ",
" Free breakfast ",
" Room service (24 hours) ",
" Desk ",
11
" Business center ",
" Express check-out ",
" Premium TV channels ",
" Designated smoking areas ",
" Free WiFi ",
" Free wired Internet ",
" Minimum check-in age is 16",
" Conference space size (meters) - 270",
" Free reception ",
" RV, bus, truck parking ",
" No pets or service animals allowed ",
" One meeting room ",
" Luggage storage ",
" Air conditioning ",
" Bar\/lounge ",
" Free newspaper ",
" In-room safe ",
" Laundry facilities ",
" Safe-deposit box at front desk ",
" Premium bedding ",
" Pay movies ",
" Multilingual staff ",
" Pets not allowed ",
" Free bottled water ",
" Blackout drapes\/curtains ",
" LCD TV ",
" Check-in time ends at noon",
" Free self parking ",
" Free valet parking ",
" Free parking nearby ",
" Rollaway\/extra beds (surcharge) ",
" Conference space ",
" Refrigerator ",
" Minibar ",
" Coffee\/tea maker ",
" Daily housekeeping ",
" Fireplace ",
" Discover ",
" JCB International ",
" Ceiling fan ",
" Coffee shop or cafe ",
" Check-in time starts at noon",
" Check-out time is noon",
" Dry cleaning\/laundry service ",
" Free WiFi ",
" Accessible bathroom ",
" In-room accessibility ",
" Number of restaurants - 2",
" Conference space size (feet) - 3000",
" Conference center ",
" Elevator\/lift ",
" Number of buildings\/towers - 1",
" Airport transportation (surcharge) ",
" Private bathroom ",
" Visa ",
" Coffee\/tea in common areas ",
12
" Television in common areas ",
" Nightclub ",
" In-room climate control (air conditioning) ",
" Free newspapers in lobby ",
" Spa treatment room(s) ",
" Microwave (on request) ",
" Express check-in ",
" Hair dryer (on request) ",
" Cable TV service ",
" Year Built 2012",
" Area shuttle (surcharge) ",
" Deep soaking bathtub"
],
"Address": "52 Hosur Main Road, Kudlu Gate, Behind Kudlu Gate Bus Stand, Krishna Reddy Industrial Area,
Hosapalaya, Muneshwara Nagar, Bangalore 560068, Karnataka",
"Latitude": 12.889924596,
"Longitude": 77.6394521779,
"Images": [
"https:\/\/cdn.grnconnect.com\/hotels\/images\/a6\/ad\/a6ad384d009a8a2e6aa8f0d405510690e878e89d.jpg"
],
"first_room_details": {
"Price": {
"PublishedPrice": 1430.1,
"PublishedPriceRoundedOff": 1431,
"OfferedPrice": 1430.1,
"OfferedPriceRoundedOff": 1431,
"RoomPrice": 1431,
"Tax": 0,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 1430.1,
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"cancellation_policy": [
{
"Charge": 0,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-10 11:45:08",
"ToDate": "2018-06-21 23:59:59"
},
{
"Charge": 1430,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-22 00:00:00",
"ToDate": "2018-06-23 00:00:00"
},
13
{
"Charge": 1430,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-23 00:00:00",
"ToDate": "2018-06-27 00:00:00"
}
],
"room_name": "1 X Executive",
"Room_data": {
"RoomUniqueId": "de4afebfa30980bee3645289d7195100*_*381*_*KY7YAnnR3SkglOeo",
"rate_key": "4pefzkr64arcpw2svsjxsfgv5lmk7x5i6o76pu3z3fcan7pl",
"group_code": "wcmqxydh5arcvxksvwpgi"
}
},
"first_rm_cancel_date": "2018-06-21 23:59:59",
"cancel_date": "2018-06-23 23:59:59",
"Amenities": [
"Breakfast"
],
"trip_adv_url": "",
"trip_rating": ""
}
}
}
}
14
1.8 HotelPolicy String Hotel policy Optional
details
1.9 Images Array List Url of images of Mandatory
the
1.10 Address String Address of the Optional
hotel
1.11 Latitude Float Latitude Optional
information of
the
hotel
1.12 Longitude Float Longitude Optional
information of
the hotel
1.13 first_room_details" Array List[] Hotel first Room Mandatory'
details
1.13.1.1 Price Array List Hotel first Room
price details Mandatory
1.13.1.2 RoomPrice Decimal Price of the room Mandatory
1.13.1.3 Optional
Tax applicable for
the
Tax Decimal room
1.13.1.4 ExtraGuestCharge Extra Guest Optional
Charges
applicable for the
Decimal room
1.13.1.5 ChildCharge Decimal Child Charges Optional
applicable
for the room
1.13.1.6 OtherCharges Decimal Other Charges Optional
applicable
for the room
1.13.1.7 Discount Decimal Discount Optional
applicable for (Currently not in use)
the room
1.13.1.8 Mandatory
Published Price (This price would be
of the different only if Room
PublishedPrice room Price is on PUBLISHED.
In case of NET, Published
Price would be same as
Decimal Offered Price)
1.13.1.9 Integer Published Price Mandatory
PublishedPriceRounde dOff (rounded (This price is for display
off) of the room purpose only)
1.13.1.10 Decimal Offered Price of Mandatory
OfferedPrice
the room
1.13.1.11 Integer Offered Price Mandatory
OfferedPriceRoundedO ff (rounded (This price is for display
off) of the room purpose only)
1.13.1.12 Decimal Commission Optional
applicable (TBO will part this amount
AgentCommission
on the Room if Room Price is on
Price Published)
1.13.1.13 AgentMarkUp Decimal Optional
15
Agent Mark Up (Agent will earn this
applicable amount if Hotel markup is
on the Room set from backend)
Price
1.13.1.14 Optional
Agent Mark Up
ServiceTax applicable
on the Room
Decimal Price
1.13.1.15 Decimal TDS applicable Optional
TDS
on
1.13.1.16 String Price currency(Mandatory)
CurrencyCode
Price currency
1.13.2 Array List[] First Room Mandatory
cancellation_policy Cancellation
Policy
16
7 .GETHOTELROOM
This method is used to request room details of a particular hotel based on ‘ResultToken’.
RoomDetailsResponse consists of Amenities, Bed Type details, refined cancellation
policies and other details of the hotel rooms. It also provides room combination details.
Sample Request:
{
"ResultToken":"689071091692b535ae0539ecfa2d400a*_*6*_*kLgtCqf4zdtiyZ6h"
}
Sample Response:
{
"Status": 1,
"Message": "",
"RoomList": {
"GetHotelRoomResult": {
"HotelRoomsDetails": [
{
"RoomUniqueId": "689071091692b535ae0539ecfa2d400a*_*284*_*zevfN9tGeFa4TQQ9",
"rate_key": "4hhfjnbw4ausjw2rv2iwohow4djkrsfl6szq",
"group_code": "wwnrp3l7wmrcpwsrusnwkhwr4u",
"room_code": "4pdfjnbi4ircpizpy2iw2hwv43gk6",
"ChildCount": 2,
"RoomTypeName": " 2 X Semi Deluxe",
"Price": {
"PublishedPrice": 2765.1,
"PublishedPriceRoundedOff": 2766,
"OfferedPrice": 2765.1,
"OfferedPriceRoundedOff": 2766,
"RoomPrice": 2766,
"Tax": 0,
"ExtraGuestCharge": 0,
17
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 2766,
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"SmokingPreference": "NoPreference",
"RatePlanCode": "",
"RoomTypeCode": "",
"RatePlanName": " 2 X Semi Deluxe",
"Amenities": [
"Semi Deluxe"
],
"OtherAmennities": [
"Breakfast, Complimentary Wi-Fi Internet,"
],
"room_only": "room only",
"LastCancellationDate": "2018-06-10 12:41:11",
"CancellationPolicies": [
],
"CancellationPolicy": " 100% of total amount will be charged,if cancelled between 10-Jun-2018 12:41:11 and
27-Jun-2018 00:00:00|",
"HOTEL_CODE": "H!0299825",
"SEARCH_ID": "sn4acrnaocoxu3n2ny6r663v4y",
"RoomIndex": 0,
"InfoSource": "FixedCombination"
},
{
"RoomUniqueId": "689071091692b535ae0539ecfa2d400a*_*285*_*4CgFPHVjxF95iptN",
"rate_key": "4defzkr64qrcpw2uuooxshow5lmk7x5i6o76pu343nbqn7po",
"group_code": "wcmqxydh5arcvwkvukmg6",
"room_code": "4lhvdnri4ircpizpy2iw236uslmklq5c7g3ozwds3vcbv7pocpkx5b7reihcx27a6vkdo",
"ChildCount": 0,
"RoomTypeName": "2 X Deluxe Twin Room",
"Price": {
"PublishedPrice": 3245.1,
"PublishedPriceRoundedOff": 3246,
"OfferedPrice": 3245.1,
"OfferedPriceRoundedOff": 3246,
"RoomPrice": 3246,
"Tax": 0,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 3246,
18
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"SmokingPreference": "NoPreference",
"RatePlanCode": "",
"RoomTypeCode": "",
"RatePlanName": "2 X Deluxe Twin Room",
"Amenities": [
"Breakfast"
],
"OtherAmennities": [
],
"room_only": "room only",
"LastCancellationDate": "2018-06-21 23:59:59",
"CancellationPolicies": [
{
"Charge": 3246,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-23 00:00:00",
"ToDate": "2018-06-27 00:00:00"
},
{
"Charge": 3246,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-22 00:00:00",
"ToDate": "2018-06-23 00:00:00"
},
{
"Charge": 0,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-10 12:41:11",
"ToDate": "2018-06-21 23:59:59"
}
],
"CancellationPolicy": "0 INR will be charged between 10-Jun-2018 and 21-Jun-2018 | 3244.98 INR will be
charged between 22-Jun-2018 and 23-Jun-2018 | 3244.98 INR will be charged between 23-Jun-2018 and 27-Jun-
2018 | |",
"HOTEL_CODE": "H!0299825",
"SEARCH_ID": "sn4acrnaocoxu3n2ny6r663v4y",
"RoomIndex": 1,
"InfoSource": "FixedCombination"
},
{
"RoomUniqueId": "689071091692b535ae0539ecfa2d400a*_*286*_*PPQVqa9eiAb40ZG4",
"rate_key": "4hhfjnbw4ixs5wcuv2iwohow4hiknqfp6w2q",
"group_code": "wwnrp3l7wmrcpwsrusnwkhwr4u",
"room_code": "4lffnnbi4ircpizpy2iw2gox4dgkw",
"ChildCount": 2,
"RoomTypeName": " 2 X Deluxe",
"Price": {
"PublishedPrice": 3378.1,
"PublishedPriceRoundedOff": 3379,
19
"OfferedPrice": 3378.1,
"OfferedPriceRoundedOff": 3379,
"RoomPrice": 3379,
"Tax": 0,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 3379,
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"SmokingPreference": "NoPreference",
"RatePlanCode": "",
"RoomTypeCode": "",
"RatePlanName": " 2 X Deluxe",
"Amenities": [
"Deluxe - Best rate"
],
"OtherAmennities": [
"Breakfast, Complimentary Wi-Fi Internet,"
],
"room_only": "room only",
"LastCancellationDate": "2018-06-10 12:41:11",
"CancellationPolicies": [
],
"CancellationPolicy": " 100% of total amount will be charged,if cancelled between 10-Jun-2018 12:41:11 and
27-Jun-2018 00:00:00|",
"HOTEL_CODE": "H!0299825",
"SEARCH_ID": "sn4acrnaocoxu3n2ny6r663v4y",
"RoomIndex": 2,
"InfoSource": "FixedCombination"
},
{
"RoomUniqueId": "689071091692b535ae0539ecfa2d400a*_*287*_*Fo80YhcfFjLkYMJA",
"rate_key": "4ddfjkrr4yrcpw2xvsoxsfot5lmk7x5i6o76pu353nban7pl",
"group_code": "wcmqxydh5arcvwkvukmg6",
"room_code": "4lgvhnzi4urcpizpy2iw236uslmklq5c7g3o7wds3vcbv7pocpkx5b7reihcx27a6vkdo",
"ChildCount": 0,
"RoomTypeName": "2 X Deluxe Double Room",
"Price": {
"PublishedPrice": 3474.1,
"PublishedPriceRoundedOff": 3475,
"OfferedPrice": 3474.1,
"OfferedPriceRoundedOff": 3475,
"RoomPrice": 3475,
"Tax": 0,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
20
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 3475,
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"SmokingPreference": "NoPreference",
"RatePlanCode": "",
"RoomTypeCode": "",
"RatePlanName": "2 X Deluxe Double Room",
"Amenities": [
"Breakfast"
],
"OtherAmennities": [
],
"room_only": "room only",
"LastCancellationDate": "2018-06-21 23:59:59",
"CancellationPolicies": [
{
"Charge": 3474,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-23 00:00:00",
"ToDate": "2018-06-27 00:00:00"
},
{
"Charge": 3474,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-22 00:00:00",
"ToDate": "2018-06-23 00:00:00"
},
{
"Charge": 0,
"ChargeType": 1,
"Currency": "INR",
"FromDate": "2018-06-10 12:41:11",
"ToDate": "2018-06-21 23:59:59"
}
],
"CancellationPolicy": "0 INR will be charged between 10-Jun-2018 and 21-Jun-2018 | 3473.22 INR will be
charged between 22-Jun-2018 and 23-Jun-2018 | 3473.22 INR will be charged between 23-Jun-2018 and 27-Jun-
2018 | |",
"HOTEL_CODE": "H!0299825",
"SEARCH_ID": "sn4acrnaocoxu3n2ny6r663v4y",
"RoomIndex": 3,
"InfoSource": "FixedCombination"
},
{
"RoomUniqueId": "689071091692b535ae0539ecfa2d400a*_*288*_*lTUfd61xSWncoJ0Y",
"rate_key": "4hhfjnbw4ixs5wcuv2iwohow4djkrsfl6syq",
"group_code": "wwnrp3l7wmrcpwsrusnwkhwr4u",
"room_code": "4lefjnbi4ircpizpy2iw2gov4lgk6",
21
"ChildCount": 2,
"RoomTypeName": " 2 X Deluxe",
"Price": {
"PublishedPrice": 3555.1,
"PublishedPriceRoundedOff": 3556,
"OfferedPrice": 3555.1,
"OfferedPriceRoundedOff": 3556,
"RoomPrice": 3556,
"Tax": 0,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 3556,
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"SmokingPreference": "NoPreference",
"RatePlanCode": "",
"RoomTypeCode": "",
"RatePlanName": " 2 X Deluxe",
"Amenities": [
"Deluxe Room"
],
"OtherAmennities": [
"Breakfast, Complimentary Wi-Fi Internet,"
],
"room_only": "room only",
"LastCancellationDate": "2018-06-10 12:41:11",
"CancellationPolicies": [
],
"CancellationPolicy": " 100% of total amount will be charged,if cancelled between 10-Jun-2018 12:41:11 and
27-Jun-2018 00:00:00|",
"HOTEL_CODE": "H!0299825",
"SEARCH_ID": "sn4acrnaocoxu3n2ny6r663v4y",
"RoomIndex": 4,
"InfoSource": "FixedCombination"
}
],
"RoomCombinations": {
"InfoSource": "FixedCombination",
"IsPolicyPerStay": true,
"RoomCombination": [
{
"RoomIndex": [
0
]
},
{
"RoomIndex": [
1
22
]
},
{
"RoomIndex": [
2
]
},
{
"RoomIndex": [
3
]
},
{
"RoomIndex": [
4
]
}
]
}
}
}
}
23
1.1.11 Price Array Price detail of the Mandatory
room
1.1.12 CurrencyCode String Currency in which Mandatory
minimum hotel
price is returned
1.1.13 RoomPrice Decimal Price of the room Mandatory
1.1.14 Tax Decimal Tax applicable for Optional
the
room
1.1.15 ExtraGuestCharge Decimal Extra Guest Charges Optional
applicable for the
room
1.1.16 ChildCharge Decimal Child Charges Optional
applicable for the
room
1.1.17 OtherCharge Decimal Other Charges Optional
applicable for the
room
1.1.18 Discount Decimal Discount applicable Optional (Currently
for the room not in use)
1.1.19 PublishedPrice Decimal Published Price of Mandatory
the (This price would be
room different only if
Room
Price is on
PUBLISHED.
In case of NET,
Published Price
would be
same as Offered
Price)
1.1.20 PublishedPriceRoundedOff Integer Published Price Mandatory
(rounded off) of the (This price is for
room display
purpose only)
1.1.21 OfferedPrice Decimal Offered Price of the Mandatory
room
1.1.22 OfferedPriceRoundedOff integer Offered Price Mandatory
(roundedoff) of the (This price is for
room display purpose only)
1.1.23 AgentCommission Decimal Optional (TBO will
part this amount if
Commission
applicable on the Room Price is on
Room Price Published)
1.1.24 AgentMarkUp Decimal Optional (Agent will
Agent Mark Up earn this amount if
applicable on the Hotel markup is set
Room Price from backend)
24
1.1.25 ServiceTax Decimal Service tax Mandatory
applicable for the
room
1.1.26 TDS Decimal TDS applicable on Optional (This would
Commission Earned be deducted only
when commission is
parted to the agent)
1.1.2 Amenities Array List List of room Optional
amenities
1.1.3 OtherAmennities Array List Hotel amenities
1.1.4 SmokingPreference String Smoking Preference Optional
associated with
room
1.1.5 LastCancellationDate Date Last Cancellation Mandatory
Date (No cancellation
charge
will be applied up to
this
date. If the date is
less
than book date then
cancellation charge
will
be applicable as per
policy)
Format:
(dd/mm/yyyy)
1.1.6 CancellationPolicies Array Array of Mandatory
cancellation
policies
1.1.6.1 Charge Decimal Mandatory
(Contains amount in
case
of Amount,
Percentage
value in case of
Percentage, No of
Cancellation nights
charge in case of Night)
1.1.6.2 ChargeType Cancellation charge Mandatory
Type - CancellationPolicies
- ChargeType
Amount = 1,
Enumeration Percentage = 2,
1.1.6.3 Currency String Base currency of Mandatory
Cancellation charge (Default currency
would
be INR)
1.1.6.4 FromDate Date Date from which Mandatory
charges will apply Format:
(dd/mm/yyyy)
25
1.1.6.5 ToDate Date Date up to which Mandatory
charges will apply Format:
(dd/mm/yyyy)
1.1.7 CancellationPolicy String Cancellation policy Mandatory
in text format (Format: Text)
1.1.8 RoomCombinations Array Array of Room Mandatory
options available to
book
1.1.8.1 InfoSource String Shows the format to Mandatory
select possible Possible values can
multiple room be
combinations to FixedCombination,
book OpenCombination.
1.1.8.2 RoomCombination Array Mandatory
1.1.8.3 RoomIndex IntegerArray Mandatory
8. BOOKING
This section will cover the methods useful for making a successful booking. Using these methods you
can verify price of your booking, you can make/hold a booking. You can also fetch details of your
booking (Successful case: You know your booking exist) or (Failure case: You want to know whether any
booking exist or not for your book request).
8.1 . BLOCKROOM
BlockRoom method is used to get the updated prices and cancellation policies for the selected
rooms before proceeding with the hotel booking. Block Room will also get the norms, if any.
1. This method should preferably be called before taking guest details from the client, so
that in case of any price change a proper intimation can be provided.
2. The price comparison is to be made at the client’s end, and BlockRoom request needs
to be sent again with the updated price and/ or updated cancellation policy.
http://test.services.travelomatix.com/webservices/index.php/hotel_v3/service/BlockRoom
http://prod.services.travelomatix.com/webservices/index.php/hotel_v3/service/BlockRoom
26
"ResultToken": "598b913d10565e2c0a2df528157b039e*_*3*_*r0vluiA37WWLmyFL",
"RoomUniqueId": [
"598b913d10565e2c0a2df528157b039e*_*9*_*w34qKF4XJAvQG0UF"
]
}
8.1.1 Block room request
27
3.7.3 Tax Decimal Tax applicable for Optional
the room
3.7.4 ExtraGuestCharge Decimal Extra Guest Charges Optional
applicable for the
room
3.7.5 ChildCharge Decimal Child Charges Optional
applicable for the
room
3.7.6 OtherCharges Decimal Other Charges Optional
applicable for the
room
3.7.7 Discount Decimal Discount applicable Optional
for the room (Currently not in use)
28
3.7.14 ServiceTax Decimal Service tax Mandatory
applicable for the
room
3.7.15 TDS Decimal TDS applicable on Optional
Commission Earned (This would be
deducted
only when commission
is
parted to the agent)
29
3.12.3 Currency String Base currency of Mandatory
Cancellation charge (Default currency
would be INR)
30
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 11125,
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"SmokingPreference": "NoPreference",
"RatePlanCode": "Executive Suite,Executive Suite",
"RatePlanType": "QB,QB",
"rate_key": "126377_2566651912_2_11_2_1_1_0_2566651960_0_4-5-0~4-5-0_3-
100.20180626_1_2-5-7~1_0_104_66368c50d73b4b86bbd52a7d4338d6b2_",
"RoomCount": 2,
"ChildCount": 2,
"HotelCode": "126377",
"RoomTypeCode": "",
"OtherAmennities": "",
"CancellationPolicies": [
{
"FromDate": "10-06-2018",
"ToDate": "22-06-2018",
"Currency": "INR",
"Charge": 0,
"ChargeType": 1
},
{
"FromDate": "23-06-2018",
"ToDate": "26-06-2018",
"Currency": "INR",
"Charge": 22250,
"ChargeType": 1
}
],
"CancellationPolicy": "0 INR will be charged between 10-06-2018 and 22-06-2018 || 22250 INR will
be charged between 23-06-2018 and 26-06-2018",
"LastCancellationDate": "22-06-2018",
"RoomIndex": 0,
"TM_Cancellation_Charge": [
{
"FromDate": "10-06-2018",
"ToDate": "22-06-2018",
"Currency": "INR",
"Charge": 0,
"ChargeType": 1
},
{
31
"FromDate": "23-06-2018",
"ToDate": "26-06-2018",
"Currency": "INR",
"Charge": 22250,
"ChargeType": 1
}
],
"AccessKey": "xyz",
"API_raw_price": "347.65",
"SEARCH_ID": "126377_2566651912_2_11_2_1_1_0_2566651960_0_4-5-0~4-5-0_3-
100.20180626_1_2-5-7~1_0_104_66368c50d73b4b86bbd52a7d4338d6b2_"
},
{
"Boarding_details": [
"Breakfast Continental"
],
"RoomUniqueId":
"YToxOntpOjA7YTo2OntzOjE0OiJib29raW5nX3NvdXJjZSI7czoxNjoiUFRCU0lEMDAwMDAwMDAyMCI7czo
3OiJUcmFjZUlkIjtzOjEyMDoiMTI2Mzc3XzI1NjY2NTE5MTJfMl8xMV8yXzFfMV8wXzI1NjY2NTE5NjBfMF80L
TUtMH40LTUtMF8zLTEwMC4yMDE4MDYyNl8xXzItNS03fjFfMF8xMDRfNjYzNjhjNTBkNzNiNGI4NmJiZDUy
YTdkNDMzOGQ2YjJfIjtzOjExOiJQcm9kdWN0Q29kZSI7czoxMjA6IjEyNjM3N18yNTY2NjUxOTEyXzJfMTFfMl
8xXzFfMF8yNTY2NjUxOTYwXzBfNC01LTB+NC01LTBfMy0xMDAuMjAxODA2MjZfMV8yLTUtN34xXzBfMTA
0XzY2MzY4YzUwZDczYjRiODZiYmQ1MmE3ZDQzMzhkNmIyXyI7czo4OiJSb29tQ29kZSI7czoxMjA6IjEyNjM3
N18yNTY2NjUxOTEyXzJfMTFfMl8xXzFfMF8yNTY2NjUxOTYwXzBfNC01LTB+NC01LTBfMy0xMDAuMjAxOD
A2MjZfMV8yLTUtN34xXzBfMTA0XzY2MzY4YzUwZDczYjRiODZiYmQ1MmE3ZDQzMzhkNmIyXyI7czo4OiJS
b29tVHlwZSI7czo5OiIyIHggU3VpdGUiO3M6ODoicmF0ZV9rZXkiO3M6MTIwOiIxMjYzNzdfMjU2NjY1MTkx
Ml8yXzExXzJfMV8xXzBfMjU2NjY1MTk2MF8wXzQtNS0wfjQtNS0wXzMtMTAwLjIwMTgwNjI2XzFfMi01LTd
+MV8wXzEwNF82NjM2OGM1MGQ3M2I0Yjg2YmJkNTJhN2Q0MzM4ZDZiMl8iO319",
"room_code": "126377_2566651912_2_11_2_1_1_0_2566651960_0_4-5-0~4-5-0_3-
100.20180626_1_2-5-7~1_0_104_66368c50d73b4b86bbd52a7d4338d6b2_",
"RoomTypeName": "2 x Suite",
"Price": {
"PublishedPrice": 11124.8,
"PublishedPriceRoundedOff": 11125,
"OfferedPrice": 11124.8,
"OfferedPriceRoundedOff": 11125,
"RoomPrice": 11125,
"Tax": 0,
"ExtraGuestCharge": 0,
"ChildCharge": 0,
"OtherCharges": 0,
"Discount": 0,
"AgentCommission": 0,
"AgentMarkUp": 0,
"ServiceTax": 0,
"TDS": 0,
"RoomPriceWoGST": 11125,
"GSTPrice": 0,
"CurrencyCode": "INR"
},
"SmokingPreference": "NoPreference",
32
"RatePlanCode": "Executive Suite,Executive Suite",
"RatePlanType": "QB,QB",
"rate_key": "126377_2566651912_2_11_2_1_1_0_2566651960_0_4-5-0~4-5-0_3-
100.20180626_1_2-5-7~1_0_104_66368c50d73b4b86bbd52a7d4338d6b2_",
"RoomCount": 2,
"ChildCount": 2,
"HotelCode": "126377",
"RoomTypeCode": "",
"OtherAmennities": "",
"CancellationPolicies": [
{
"FromDate": "10-06-2018",
"ToDate": "22-06-2018",
"Currency": "INR",
"Charge": 0,
"ChargeType": 1
},
{
"FromDate": "23-06-2018",
"ToDate": "26-06-2018",
"Currency": "INR",
"Charge": 22250,
"ChargeType": 1
}
],
"CancellationPolicy": "0 INR will be charged between 10-06-2018 and 22-06-2018 || 22250 INR will
be charged between 23-06-2018 and 26-06-2018",
"LastCancellationDate": "22-06-2018",
"RoomIndex": 1,
"TM_Cancellation_Charge": [
{
"FromDate": "10-06-2018",
"ToDate": "22-06-2018",
"Currency": "INR",
"Charge": 0,
"ChargeType": 1
},
{
"FromDate": "23-06-2018",
"ToDate": "26-06-2018",
"Currency": "INR",
"Charge": 22250,
"ChargeType": 1
}
],
"SEARCH_ID": "126377_2566651912_2_11_2_1_1_0_2566651960_0_4-5-0~4-5-0_3-
100.20180626_1_2-5-7~1_0_104_66368c50d73b4b86bbd52a7d4338d6b2_"
}
],
"BlockRoomId": "598b913d10565e2c0a2df528157b039e*_*11*_*CpzuUUrxD0FpKAWL",
"IsPriceChanged": false,
33
"IsCancellationPolicyChanged": false
}
}
}
8.2 BOOK
Book method is called to either hold a booking or to book and voucher a booking based on
the selected rooms and guest information. We strongly recommend checking the updated
prices and cancellation policies for the selected rooms through BlockRoom method before
proceeding with the hotel booking to reduce the probability of booking failure.
Instead of 'Confirmed' you might get ‘Hold’as BookingStatus for some bookings. This is
because some of the suppliers do not provide confirmation of the booking immediately. In
this case you need to call HotelBookingDetail method after few minutes (15-20) to get the
updated status.
Sample Request:
{
"ResultToken": "560b1806eab47a57561e442bad5770f3*_*3*_*XJlPOG6edEEFfxSJ",
"BlockRoomId": "560b1806eab47a57561e442bad5770f3*_*6*_*FJJ6d35DN1VgkEwt",
"AppReference": "HB10-125738-495363",
"RoomDetails": [
{
"PassengerDetails": [
{
"Title": "Ms",
"FirstName": "Anitha",
"MiddleName": "",
"LastName": "gangapatnam",
"Phoneno": "9000983418",
"Email": "anitha.g.provab@gmail.com",
"PaxType": "1",
"LeadPassenger": true,
"Age": 30
},
{
"Title": "Mr",
"FirstName": "Anil",
"MiddleName": "",
"LastName": "gangapatnam",
34
"Phoneno": "9000983418",
"Email": "anitha.g.provab@gmail.com",
"PaxType": "1",
"LeadPassenger": false,
"Age": 30
},
{
"Title": "Mstr",
"FirstName": "sai",
"MiddleName": "",
"LastName": "gangapatanm",
"Phoneno": "9000983418",
"Email": "anitha.g.provab@gmail.com",
"PaxType": "2",
"LeadPassenger": false,
"Age": 5
},
{
"Title": "Mstr",
"FirstName": "harisai",
"MiddleName": "",
"LastName": "gangapatanm",
"Phoneno": "9000983418",
"Email": "anitha.g.provab@gmail.com",
"PaxType": "2",
"LeadPassenger": false,
"Age": 7
}
]
},
{
"PassengerDetails": [
{
"Title": "Ms",
"FirstName": "Haritha",
"MiddleName": "",
"LastName": "gangapatnam",
"Phoneno": "9000983418",
"Email": "anitha.g.provab@gmail.com",
"PaxType": "1",
"LeadPassenger": true,
"Age": 30
}
]
}
]
}
8.2.1 BOOK REQUEST
35
1 ResultToken String Result Token returned in Mandatory
block Room response
2 BlockRoomId String Unique BlockRoomId Mandatory
3 AppReference String Unique Booking Mandatory
AppReference
4 RoomDetails Array Array of hotel room details
4.1 PassengerDetails Array Array of guest details
for in the particular
room as requested in
Array
4.1.1 Title String Title of the guest Mandatory
Possible values
can be
Mr, Mrs,Mstr
4.1.2 FirstName String First name of the guest Mandatory
(Min 2 chars, Max
50
chars)
4.1.3 MiddleName String Middle name of the Optional
36
1 Status Enumeration Booking Mandatory
status Possible values can be
0 – BookFailed,
1 - Confirmed,
{
"Status": 1,
"Message": "",
"CommitBooking": {
"BookingDetails": {
"ConfirmationNo": "BLUURDVSG9UJ",
"BookingRefNo": "BLUURDVSG9UJ",
"BookingId": "TM-309612904|1234,1235",
"SupplierVatId": "",
37
"booking_status": "BOOKING_CONFIRMED"
}
}
}
{
"Status": 1,
"Message": "",
"CommitBooking": {
"BookingDetails": {
"ConfirmationNo": "TM",
"BookingRefNo": "TM",
"BookingId": "TM-",
"SupplierVatId": "",
"booking_status": "BOOKING_HOLD "
}
}
}
9. HotelBookingDetail
GetBookingDetail Request:
{
AppReference:”HB-22052018-4564654”
}
9.1 Getbooking detail request
GetBookingdetails Response:
38
{
"Status": 1,
"Message": "Hotel Hold Booking Status",
"UpdateHoldBooking":
{
"booking_id": "TM-4ti5nre662rcx5htyelra64p6q"
}
}
http://prod.services.travelomatix.com/webservices/index.php/hotel_v3/service/CancelBooking
CancelRequest
{"AppReference":"HB10-130820-197161"}
10.1 Cancel request
39
CANCELBOOKINGRESPONSE:
{
"Status": 1,
"Message": "",
"CancelBooking": {
"CancellationDetails": {
"StatusDescription": "Processed",
"ChangeRequestId": 3,
"RefundedAmount": 22250,
"CancellationCharge": 0,
"ChangeRequestStatus": "Processed"
}
}
}
40
3.1.5 ChangeRequestStatus String Mandatory
Same as
“StatusDescription”
11. GETCANCELLATIONREFUNDDETAILS
http://prod.services.travelomatix.com/webservices/index.php/hotel_v3/service/CancellationRefund
Details
CANCELLATIONREFUND REQUEST:
{
"ChangeRequestId": “2”,
“AppReference":” HB10-130820-197161”
}
11.1 CANCELLATIONREFUND REQUEST:
CANCELLATIONREFUND RESPONSE:
{
"Status": 1,
"Message": "",
"RefundDetails": {
"StatusDescription": "Processed",
"ChangeRequestId": 3,
"RefundedAmount": 22250,
"CancellationCharge": 0,
41
"ChangeRequestStatus": "Processed"
}
}
15. CERTIFICATION
11.2 CANCELLATIONREFUND RESPONSE:
42