ADVENTURE API
HOMESTAYS API

Book Hotel

get
Book Hotel

https://traveloapi.com/yourapi/hotelapi/Hotel_book
Request
Response
Path Parameters
gatkey
required
string
gatkey (provided by traveloapi)
hotelID
required
string
The search response returns a hotel-id along with each hotel found for the search criteria that was matched. The hotel-id of the hotel selected for booking should be passed here.
checkInDate
required
string
It represents Check in date. This value should be entered as string not less than and more than 10 characters in date format 'dd/mm/yyyy'.
checkOutDate
required
string
It represents the Check-out date and should be entered as string not less than and more than 10 characters in date format 'dd/mm/yyyy'. It cannot be greater than journey date.
supplierType
required
string
rateKey
required
string
rateCode
required
string
Code for the different fare amount.
chargeableRate
required
string
Tax
required
string
It represents the tax amount.
Rooms
required
string
It represents the information about the no. of rooms, room characteristic and information about the customer.
Room
required
string
This contains the information about the no. of rooms, room characteristic, and information of persons.
Count
required
string
Total number of rooms booked by the customer.
roomTypeCode
required
string
Room type code and description (Deluxe room, Executive room, Deluxe AC, etc.). This field may not be unique.
Nights
required
string
Actual number of room-nights requested including all rooms across all dates. In other words, if the search request was for 2 rooms for 2 nights, the room-nights value would be 2 * 2 = 4.
HotelReservationInfo
required
string
Detail description of the hotel reserved by the customer.
Email
required
string
Email address of the customer.
firstName
required
string
First Name of the customer.
lastName
required
string
Last name of the customer.
homePhone
required
string
Land-line number
workPhone
required
string
Office number of the customer.
BankCountryCode
required
string
Valid 2 letter ISO country code.
BankName
required
string
Name of the bank.
cardType
required
string
It represents the value of card type (credit card, debit card etc.)
cardNumber
required
string
If the payment mode is a credit card, a valid card number should be passed.
ExpirationYear
required
string
If the payment mode is a credit card, , a valid expiration year of the credit card should be passed.
expirationMonth
required
string
If the payment mode is a credit card, a valid expiration month of the credit card should be passed.
creditCardIdentifier
required
string
If the payment mode is a credit card, the CVV found on the back of the card should be passed.
AddressDetail
required
string
Address of the hotel booked.
city
required
string
It represents city name.
stateCode
required
string
It represents the state code.
countryCode
required
string
It represents the country code
postalCode
required
string
It represents postal code.
address
required
string
Address detail.
HotelChain
required
string
The group which owns the hotel.
post_pay
required
string
True: if Pay at Hotel is available, Else false.
200: OK
{
"CustomerSessionID": null,
"Error": null,
"HotelEmailAddress": "saileelaresidency01@gmail.com",
"HotelPhoneNumber": "+912228352836|+912228362837",
"arrivalDate": null,
"cancellationPolicy": null,
"checkInInstructiuons": null,
"confirmationNumbers": [
"343752337"
],
"departureDate": null,
"drivingDirections": null,
"existingItinerary": null,
"hotelAddress": null,
"hotelCity": null,
"hotelCountryCode": null,
"hotelName": null,
"hotelPostalCode": null,
"itineraryId": "343754809",
"numberOfRoomsBooked": null,
"processWithConfirmation": "CF",
"reservationNumbers": "343754809",
"reservationStatusCode": "CF",
"roomDescription": null,
"supplierType": null,
"transactionid": 56274781,
"xmlResponse": null
}
404: Not Found
{
"message": "Invalid Request",
"status": "error",
}

Hotel Booking Request Example :

{
"AddressDetail": {
"address": "Unit 5 R.K Mandir Road Saidham Industrial Area Kondivita MIDC Andheri East Mumbai 400059",
"city": "Kolkata",
"countryCode": "IN",
"postalCode": "700153",
"stateCode": "WB"
},
"SessionId": "a4d47cd2209a4657b0cf6b9f7f822d31",
"BookingID": "String content",
"CancellationPolicy": "<ul><li>GST (if applicable) to be paid at check-in.</li><li>This is non refundable and cannot be changed or cancelled, Cancellation charges will be 100%.</li></ul>",
"City": "Mumbai",
"Country": "",
"CouponCode": "",
"CouponValue": "0",
"CurrencyCode": "INR",
"EMTCommonID": "EMTHotel-1165875",
"EngineID": "23",
"GSTDetails": {
"CustomerAddress": "String content",
"CustomerName": "String content",
"CustomerState": "String content",
"GSTCity": "String content",
"GSTCompanyAddres": "String content",
"GSTCompanyEmailId": "String content",
"GSTCompanyName": "String content",
"GSTNumber": "String content",
"GSTPhoneISD": "String content",
"GSTPhoneNumber": "String content",
"GSTPinCode": "String content",
"GSTState": "String content"
},
"HotelChain": "String content",
"HotelReservationInfo": {
"BankCountryCode": "IN",
"BankName": "String content",
"Email": "redchillies309@gmail.com",
"ExpirationYear": "",
"Title": "Mr.",
"cardNumber": "",
"cardType": "",
"creditCardIdentifier": "",
"expirationMonth": "",
"firstName": "Debashis ",
"homePhone": "7479083818",
"lastName": "Chakroborty",
"workPhone": "7479083818"
},
"MealType": "",
"Name": "Hotel Sai Leela",
"Nights": "1",
"SearchKey": "15~INR~Mumbai~03-07-2019~03-08-2019~2~3_1_~~~GoalltripTours~~~0~~IN",
"Tax": "458",
"TransactionRefNo": "GLTHTL.67132237",
"Transactionid": 67132237,
"UniqueID": "5c809a2c2bfc6",
"chargeableRate": "2997",
"checkInDate": "2019-03-07",
"checkOutDate": "2019-03-08",
"hotelID": "1265358",
"rateCode": "acc8b06a-8280-5e9d-76dd-f6eecdbb72d1",
"rateKey": "8475180|1|INR|529329|acc8b06a-8280-5e9d-76dd-f6eecdbb72d1|606110667303650995|B2B",
"roomTypeCode": "acc8b06a-8280-5e9d-76dd-f6eecdbb72d1",
"supplierType": "23",
"Rooms": {
"Count": "2",
"Room": [
{
"AdultDetails": [
{
"Age": 25,
"PaxType": 0,
"Prefix": "Mr.",
"firstName": "Debashis ",
"lastName": "Chakroborty"
},
{
"Age": 25,
"PaxType": 0,
"Prefix": "Mr.",
"firstName": "Bidyut",
"lastName": "Roy"
},
{
"Age": 25,
"PaxType": 0,
"Prefix": "Mr.",
"firstName": "Avijit",
"lastName": "Talukdar"
}
],
"MealType": "Breakfast",
"rateCode": "acc8b06a-8280-5e9d-76dd-f6eecdbb72d1",
"rateKey": "8475180|1|INR|529329|acc8b06a-8280-5e9d-76dd-f6eecdbb72d1|606110667303650995|B2B",
"roomType": "Deluxe Room",
"roomTypeCode": "acc8b06a-8280-5e9d-76dd-f6eecdbb72d1",
"smokingPreference": ""
},
{
"AdultDetails": [
{
"Age": 25,
"PaxType": 0,
"Prefix": "Mr.",
"firstName": "Abhijit",
"lastName": "Das"
}
],
"MealType": "Breakfast",
"rateCode": "acc8b06a-8280-5e9d-76dd-f6eecdbb72d1",
"rateKey": "8475180|1|INR|529329|acc8b06a-8280-5e9d-76dd-f6eecdbb72d1|606110667303650995|B2B",
"roomType": "Deluxe Room",
"roomTypeCode": "acc8b06a-8280-5e9d-76dd-f6eecdbb72d1",
"smokingPreference": ""
}
]
}
}