This method is used to make a reservation at the hotel. We strongly recommend to check the availability of hotel / hotel room(s) through AvailabilityAndPricing method before request to reduce the probability of booking failure.
You can create confirmed booking only for the hotels whose cancellation deadline has not passed. This status says booking created and reservation is confirmed (hold) but payment is not made yet by the agency to TBOHolidays. For payment of this booking GenerateInvoice method call is mandatory to raise invoice, otherwise the booking will be automatically cancelled on last cancellation date.
For some aggregators which do not provide price verification at AvailabilityAndPricing and the price changes at run time, you will get New Price in book response status node as "Booking Fare changed. (New Fare:45.25(USD)). Please try booking with new fare. ". In this case we can Re-Book the same itinerary on New Fare. You need to divide the amount difference (New Fare – Old Fare) equally among the rooms and send booking request again.
'HotelRoom' will repeat in case of multiple rooms booking.
Important: 'ClientReferenceNumber' Format- ddmmyyHHmmssfff#abxy (abxy: unique string of length 4 represents the client)
Optional Supplements can be chosen if available at the hotel.
Atproperty supplement is mandatory to be present in request, if you received that in rooms response.
First and Last name of the guest should contain only alphabetic name with not more than one space.Please note that Few of our aggregators do not accept a punctuation mark, more than one space, numeric value.
GuestNationality node should not be blank in HotelBook request, as it is mandatory node in HotelBook request.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:hot="http://TekTravel/HotelBookingApi">
<soap:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
<hot:Credentials xmlns:hot="http://TekTravel/HotelBookingApi" UserName="testuser" Password="testpwd">
</hot:Credentials>
<wsa:Action>http://TekTravel/HotelBookingApi/HotelBook</wsa:Action>
<wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
</soap:Header>
<soap:Body>
<hot:HotelBookRequest>
<hot:ClientReferenceNumber>30112017115245987#abcd</hot:ClientReferenceNumber>
<hot:GuestNationality>IN</hot:GuestNationality>
<hot:Guests>
<hot:Guest LeadGuest="true" GuestType="Adult" GuestInRoom="1">
<hot:Title>Mr</hot:Title>
<hot:FirstName>Mohit</hot:FirstName>
<hot:LastName>Sharma Test</hot:LastName>
<hot:Age>22</hot:Age>
</hot:Guest>
</hot:Guests>
<hot:AddressInfo>
<hot:AddressLine1>testadd1</hot:AddressLine1>
<hot:AddressLine2>testadd2</hot:AddressLine2>
<hot:CountryCode>91</hot:CountryCode>
<hot:AreaCode>11</hot:AreaCode>
<hot:PhoneNo>25869696</hot:PhoneNo>
<hot:Email>abc@gurgaon.in</hot:Email>
<hot:City>Delhi</hot:City>
<hot:State>Delhi</hot:State>
<hot:Country>India</hot:Country>
<hot:ZipCode>256525</hot:ZipCode>
</hot:AddressInfo>
<!-- VoucherBooking-true Booking will be vouchered -->
<hot:PaymentInfo VoucherBooking="true" PaymentModeType="Limit">
</hot:PaymentInfo>
<hot:SessionId>c31ccab1-22d6-4171-9820-f5448e1938e2</hot:SessionId>
<hot:NoOfRooms>1</hot:NoOfRooms>
<hot:ResultIndex>3</hot:ResultIndex>
<hot:HotelCode>1360717</hot:HotelCode>
<hot:HotelName>CityMax Bur Dubai</hot:HotelName>
<hot:HotelRooms>
<hot:HotelRoom>
<hot:RoomIndex>1</hot:RoomIndex>
<hot:RoomTypeName>Standard Room</hot:RoomTypeName>
<hot:RoomTypeCode>200060311|1|1^^1^^210835343</hot:RoomTypeCode>
<hot:RatePlanCode>210835343</hot:RatePlanCode>
<hot:RoomRate Currency="USD" RoomFare="36.24" RoomTax="7.56" TotalFare="43.80">
</hot:RoomRate>
</hot:HotelRoom>
</hot:HotelRooms>
<hot:AgencyReferenceNumber/>
</hot:HotelBookRequest>
</soap:Body>
</soap:Envelope>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:hot="http://TekTravel/HotelBookingApi">
<soap:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
<hot:Credentials xmlns:hot="http://TekTravel/HotelBookingApi" UserName="testuser" Password="testpwd">
</hot:Credentials>
<wsa:Action>http://TekTravel/HotelBookingApi/HotelBook</wsa:Action>
<wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
</soap:Header>
<soap:Body>
<hot:HotelBookRequest>
<hot:ClientReferenceNumber>210314135855789#kuld</hot:ClientReferenceNumber>
<hot:GuestNationality>IN</hot:GuestNationality>
<hot:Guests>
<hot:Guest LeadGuest="true" GuestType="Adult" GuestInRoom="1">
<hot:Title>Mr</hot:Title>
<hot:FirstName>Kuldeeps</hot:FirstName>
<hot:LastName>testgea</hot:LastName>
<hot:Age>20</hot:Age>
</hot:Guest>
<Guest LeadGuest="false" GuestType="Adult" GuestInRoom="2">
<Title>Mr</Title>
<FirstName>Kuld</FirstName>
<LastName>adulttwo</LastName>
<Age>30</Age>
</Guest>
</hot:Guests>
<hot:AddressInfo>
<hot:AddressLine1>testadd1</hot:AddressLine1>
<hot:AddressLine2>testadd2</hot:AddressLine2>
<hot:CountryCode>91</hot:CountryCode>
<hot:AreaCode>11</hot:AreaCode>
<hot:PhoneNo>25869696</hot:PhoneNo>
<hot:Email>abc@gurgaon.in</hot:Email>
<hot:City>Delhi</hot:City>
<hot:State>Delhi</hot:State>
<hot:Country>India</hot:Country>
<hot:ZipCode>256525</hot:ZipCode>
</hot:AddressInfo>
<!-- VoucherBooking-true Booking will be Vouchered -->
<hot:PaymentInfo VoucherBooking="true" PaymentModeType="Limit">
</hot:PaymentInfo>
<hot:SessionId>22cb6d27-16d8-4608-8ee6-f35960b7b113</hot:SessionId>
<hot:NoOfRooms>2</hot:NoOfRooms>
<hot:ResultIndex>1</hot:ResultIndex>
<hot:HotelCode>TBO0067958</hot:HotelCode>
<hot:HotelName>Al Manar Apartment</hot:HotelName>
<hot:HotelRooms>
<hot:HotelRoom>
<hot:RoomIndex>1</hot:RoomIndex>
<hot:RoomTypeName>Single Room Standard Studio</hot:RoomTypeName>
<hot:RoomTypeCode>SB|0|0||001:ALMF:13911:S13678:17429:70423|2</hot:RoomTypeCode>
<hot:RatePlanCode>001:ALMF:13911:S13678:17429:70423|ALMF|SB</hot:RatePlanCode>
<hot:RoomRate RoomFare="73.43" Currency="USD" AgentMarkUp="3.50" RoomTax="0" TotalFare="73.43">
</hot:RoomRate>
</hot:HotelRoom>
<hot:HotelRoom>
<hot:RoomIndex>2</hot:RoomIndex>
<hot:RoomTypeName>Single Room Standard Studio</hot:RoomTypeName>
<hot:RoomTypeCode>SB|0|0||001:ALMF:13911:S13678:17429:70423|1</hot:RoomTypeCode>
<hot:RatePlanCode>001:ALMF:13911:S13678:17429:70423|ALMF|SB</hot:RatePlanCode>
<hot:RoomRate RoomFare="73.43" Currency="USD" AgentMarkUp="3.50" RoomTax="0" TotalFare="73.43">
</hot:RoomRate>
</hot:HotelRoom>
</hot:HotelRooms>
</hot:HotelBookRequest>
</soap:Body>
</soap:Envelope>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:hot="http://TekTravel/HotelBookingApi">
<soap:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
<hot:Credentials xmlns:hot="http://TekTravel/HotelBookingApi" UserName="testuser" Password="testpwd">
</hot:Credentials>
<wsa:Action>http://TekTravel/HotelBookingApi/HotelBook</wsa:Action>
<wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
</soap:Header>
<soap:Body>
<hot:HotelBookRequest>
<hot:ClientReferenceNumber>200314125855789#ABCD</hot:ClientReferenceNumber>
<hot:GuestNationality>IN</hot:GuestNationality>
<hot:Guests>
<hot:Guest LeadGuest="true" GuestType="Adult" GuestInRoom="1">
<hot:Title>Mr</hot:Title>
<hot:FirstName>Vikki</hot:FirstName>
<hot:LastName>Test</hot:LastName>
<hot:Age>30</hot:Age>
</hot:Guest>
<hot:Guest LeadGuest="false" GuestType="Adult" GuestInRoom="1">
<hot:Title>Mrs</hot:Title>
<hot:FirstName>Neha</hot:FirstName>
<hot:LastName>Test</hot:LastName>
<hot:Age>28</hot:Age>
</hot:Guest>
</hot:Guests>
<hot:AddressInfo>
<hot:AddressLine1>testadd1</hot:AddressLine1>
<hot:AddressLine2>testadd2</hot:AddressLine2>
<hot:CountryCode>91</hot:CountryCode>
<hot:AreaCode>11</hot:AreaCode>
<hot:PhoneNo>25869696</hot:PhoneNo>
<hot:Email>abc@gurgaon.in</hot:Email>
<hot:City>Delhi</hot:City>
<hot:State>Delhi</hot:State>
<hot:Country>India</hot:Country>
<hot:ZipCode>256525</hot:ZipCode>
</hot:AddressInfo>
<!-- VoucherBooking-true Booking will be vouchered -->
<hot:PaymentInfo VoucherBooking="true" PaymentModeType="Limit">
</hot:PaymentInfo>
<hot:SessionId>45b29399-d575-4bc8-8d1b-1033a22fc6ac</hot:SessionId>
<hot:NoOfRooms>1</hot:NoOfRooms>
<hot:ResultIndex>1</hot:ResultIndex>
<hot:HotelCode>CHA1</hot:HotelCode>
<hot:HotelName>Champs Elysees</hot:HotelName>
<hot:HotelRooms>
<hot:HotelRoom>
<hot:RoomIndex>1</hot:RoomIndex>
<hot:RoomTypeName>Single Room Standard Single</hot:RoomTypeName>
<hot:RoomTypeCode>SB|0|0||001:CHA1:8712:S8513:9537:39591|1</hot:RoomTypeCode>
<hot:RatePlanCode>001:CHA1:8712:S8513:9537:39591|CHA1|SB</hot:RatePlanCode>
<hot:RoomRate RoomFare="48.95" Currency="USD" AgentMarkUp="2.33" RoomTax="0" TotalFare="48.95">
</hot:RoomRate>
<hot:Supplements>
<hot:SuppInfo SuppID="1" SuppChargeType="AtProperty" Price="10" SuppIsSelected="false"/>
</hot:Supplements>
</hot:HotelRoom>
</hot:HotelRooms>
</hot:HotelBookRequest>
</soap:Body>
</soap:Envelope>
<HotelBookResponse xmlns="http://TekTravel/HotelBookingApi">
<Status>
<StatusCode>01</StatusCode>
<Description>Successful: HotelBook Successful</Description>
</Status>
<BookingStatus>Confirmed</BookingStatus>
<BookingId>59124</BookingId>
<ConfirmationNo>8GQQNN</ConfirmationNo>
<TripId>449</TripId>
<SupplierReferenceNo/>
<PriceChange Status="false" AvailableOnNewPrice="false"/>
</HotelBookResponse>