HotelSearchWithRooms()

We recommend the implementation flow using HotelSearch method, still if you want rooms in search response we have this method. It provides hotel results with rooms associated with each hotel.

The request structure (HotelSearchWithRoomsRequest) is similar to HotelSearchRequest .
The response structure (HotelSearchWithRoomsResponse) is the combination of HotelSearchResponse and HotelRoomAvailabilityResponse.

Note:HotelSearchWithRooms based on City Id is on a legacy version at our end and we will be discontinuing its support soon. We suggest you to kindly use the HotelSearchWithRooms method by passing the multiple HotelCodes in request.

Hotel Codes The hotel codes should be of the same city. The maximum number of hotel codes allowed per request will be 250.

Single room request (1 Room - 1 Adult)

                    
<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/HotelSearchWithRooms</wsa:Action> 
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:HotelSearchWithRoomsRequest>
      <hot:CheckInDate>2018-04-25</hot:CheckInDate>
      <hot:CheckOutDate>2018-04-26</hot:CheckOutDate>
      <hot:IsNearBySearchAllowed>false</hot:IsNearBySearchAllowed>
      <hot:NoOfRooms>1</hot:NoOfRooms>
      <hot:GuestNationality>IN</hot:GuestNationality>
      <hot:RoomGuests>
        <hot:RoomGuest AdultCount="1" ChildCount="0">
        </hot:RoomGuest>
      </hot:RoomGuests>
      <hot:ResultCount>0</hot:ResultCount>
      <hot:Filters>
        <hot:StarRating>All</hot:StarRating>
        <hot:OrderBy>PriceAsc</hot:OrderBy>
        <hot:HotelCodeList>1247101</hot:HotelCodeList>
      </hot:Filters>
      <hot:ResponseTime>10</hot:ResponseTime>
   </hot:HotelSearchWithRoomsRequest>
  </soap:Body>
</soap:Envelope>
                    
               

HotelCode Based Single Room Request (1 Room - 1 Adult) (Multiple HotelCodes)

                    
<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/HotelSearchWithRooms</wsa:Action> 
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:HotelSearchWithRoomsRequest>
      <hot:CheckInDate>2018-04-25</hot:CheckInDate>
      <hot:CheckOutDate>2018-04-26</hot:CheckOutDate>
      <hot:IsNearBySearchAllowed>false</hot:IsNearBySearchAllowed>
      <hot:NoOfRooms>1</hot:NoOfRooms>
      <hot:GuestNationality>IN</hot:GuestNationality>
      <hot:RoomGuests>
        <hot:RoomGuest AdultCount="1" ChildCount="0">
        </hot:RoomGuest>
      </hot:RoomGuests>
      <hot:ResultCount>0</hot:ResultCount>
      <hot:Filters>
        <hot:StarRating>All</hot:StarRating>
        <hot:OrderBy>PriceAsc</hot:OrderBy>
        <hot:HotelCodeList>1247101,1376565,1240027,1377448,1022623,1374810,1251184,1108025,1019759</hot:HotelCodeList>
      </hot:Filters>
      <hot:ResponseTime>5</hot:ResponseTime>
   </hot:HotelSearchWithRoomsRequest>
  </soap:Body>
</soap:Envelope>
                    
               

Single room response (1 Room - 1 Adult)

        
    <HotelSearchWithRoomsResponse xmlns="http://TekTravel/HotelBookingApi">
      <Status>
        <StatusCode>01</StatusCode>
        <Description>Successful: HotelSearchWithRooms Successful</Description>
      </Status>
      <ResponseTime>21/12/2014 10:03:47</ResponseTime>
      <SessionId>da44a9b9-07b9-4abf-96d0-e6ff4cbf9ece</SessionId>
      <NoOfRoomsRequested>1</NoOfRoomsRequested>
      <CityId>115936</CityId>
      <CheckInDate>25/04/2018 00:00:00</CheckInDate>
      <CheckOutDate>26/04/2018 00:00:00</CheckOutDate>
      <RoomGuests>
        <RoomGuest AdultCount="1" ChildCount="0"/>
      </RoomGuests>
      <HotelResultList>
        <HotelResult>
          <ResultIndex>1</ResultIndex>
          <HotelInfo>
            <HotelCode>1247101</HotelCode>
            <HotelName>Panorama Deira Hotel</HotelName>
            <HotelPicture>http://www.tboholidays.com//imageresource.aspx?img=k6DH+39xpEWJ6sshsBgEUY9oKBj/b6OqzQcmXbJdJ1Hj37UO5f67lqWFAofG1hBFeg+C0L8wapusJf5eG50eKFQmvagqEl71oT8ZYeWcHL4cnEO9N/NC8g==</HotelPicture>
            <HotelDescription>Property Location With a stay at Panorama Deira Hotel in Dubai (Deira), you&apos;ll be minutes from Al Ghurair Centre and Fish Roundabout.  This hotel is within</HotelDescription>
            <Latitude>25.2676</Latitude>
            <Longitude>55.31598</Longitude>
            <HotelAddress>P.O. Box 181211 Dubai</HotelAddress>
            <Rating>TwoStar</Rating>
            <HotelPromotion/>
            <TripAdvisorRating>3.0</TripAdvisorRating>
            <TripAdvisorReviewURL>http://www.tripadvisor.com/Hotel_Review-g295424-d501187-Reviews-m19454-Panorama_Deira_Hotel-Dubai_Em</TripAdvisorReviewURL>
            <TagIds>3</TagIds>
          </HotelInfo>
          <MinHotelPrice TotalPrice="43.89" Currency="USD" B2CRates="false" OriginalPrice="43.89"/>
          <HotelRooms>
            <HotelRoom>
              <RoomIndex>1</RoomIndex>
              <RoomTypeName>Single Room Standard Single</RoomTypeName>
              <Inclusion>None</Inclusion>
              <RoomTypeCode>SB|0|0||001:CHA1:8712:S8513:9537:39591|1</RoomTypeCode>
              <RatePlanCode>001:CHA1:8712:S8513:9537:39591|CHA1|SB</RatePlanCode>
              <RoomRate IsPackageRate="false" B2CRates="false" AgentMarkUp="0.00" RoomTax="8.43" RoomFare="35.46" Currency="USD" TotalFare="43.89">
                <DayRates>
                  <DayRate Date="2018-04-25T00:00:00" BaseFare="35.4610200000"/>
                </DayRates>
                <ExtraGuestCharges>0</ExtraGuestCharges>
                <ChildCharges>0</ChildCharges>
                <Discount>0</Discount>
                <OtherCharges>0</OtherCharges>
                <ServiceTax>0</ServiceTax>
              </RoomRate>
              <RoomPromtion/>
            </HotelRoom>
            <HotelRoom>
              <RoomIndex>2</RoomIndex>
              <RoomTypeName>Single Room Standard Twin</RoomTypeName>
              <Inclusion>None</Inclusion>
              <RoomTypeCode>SB|0|0||001:CHA1:8712:S8513:9537:39595|2</RoomTypeCode>
              <RatePlanCode>001:CHA1:8712:S8513:9537:39595|CHA1|SB</RatePlanCode>
              <RoomRate IsPackageRate="false" B2CRates="false" AgentMarkUp="0.00" RoomTax="10.22" RoomFare="39.33" Currency="USD" TotalFare="49.55">
                <DayRates>
                  <DayRate Date="2018-04-25T00:00:00" BaseFare="39.3321600000"/>
                </DayRates>
                <ExtraGuestCharges>0</ExtraGuestCharges>
                <ChildCharges>0</ChildCharges>
                <Discount>0</Discount>
                <OtherCharges>0</OtherCharges>
                <ServiceTax>0</ServiceTax>
              </RoomRate>
              <RoomPromtion/>
            </HotelRoom>
          </HotelRooms>
          <OptionsForBooking>
            <FixedFormat>true</FixedFormat>
            <RoomCombination>
              <RoomIndex>1</RoomIndex>
            </RoomCombination>
            <RoomCombination>
              <RoomIndex>2</RoomIndex>
            </RoomCombination>
          </OptionsForBooking>
          <MoreRoomsAvailable>true</MoreRoomsAvailable>
          <IsPkgProperty>false</IsPkgProperty>
          <IsPackageRate>false</IsPackageRate>
        </HotelResult>
        <HotelResult>
          <ResultIndex>2</ResultIndex>
          <HotelInfo>
            <HotelCode>1374810</HotelCode>
            <HotelName>Prime Hotel</HotelName>
            <HotelPicture>http://www.tboholidays.com//imageresource.aspx?img=k6DH+39xpEWJ6sshsBgEUY9oKBj/b6OqzQcmXbJdJ1E8RTTCakkz4SzjN1SaQsgbgPI2A+wRuj/KudMS+F8J0RixFADrOi5cFLUlQu8DsNb2suWNXVCxNg==</HotelPicture>
            <HotelDescription>Property Location With a stay at Prime Hotel in Dubai (Deira), you&apos;ll be minutes from Naif Souq and close to Gold Souk.  This hotel is within close proximi</HotelDescription>
            <Latitude>25.27172</Latitude>
            <Longitude>55.31598</Longitude>
            <HotelAddress>Yousuf Baker Road Near Naser Masjid</HotelAddress>
            <Rating>OneStar</Rating>
            <HotelPromotion/>
            <TripAdvisorRating>2.5</TripAdvisorRating>
            <TripAdvisorReviewURL>http://www.tripadvisor.com/Hotel_Review-g295424-d7386694-Reviews-m19454-Prime_Hotel-Dubai_Emirate_of</TripAdvisorReviewURL>
            <TagIds>3</TagIds>
          </HotelInfo>
          <MinHotelPrice TotalPrice="45.25" Currency="USD" B2CRates="false" OriginalPrice="69.42"/>
          <HotelRooms>
            <HotelRoom>
              <RoomIndex>1</RoomIndex>
              <RoomTypeName>Standard Room, 1 Queen Bed</RoomTypeName>
              <Inclusion>Free Wireless Internet</Inclusion>
              <RoomTypeCode>201418329|1|1^^1^^207142579</RoomTypeCode>
              <RatePlanCode>207142579</RatePlanCode>
              <RoomRate IsPackageRate="true" B2CRates="false" AgentMarkUp="0.00" RoomTax="8.69" RoomFare="36.56" Currency="USD" TotalFare="45.25">
                <DayRates>
                  <DayRate Date="2018-04-25T00:00:00" BaseFare="36.5572200000"/>
                </DayRates>
                <ExtraGuestCharges>0</ExtraGuestCharges>
                <ChildCharges>0</ChildCharges>
                <Discount>0</Discount>
                <OtherCharges>0</OtherCharges>
                <ServiceTax>0</ServiceTax>
              </RoomRate>
              <RoomPromtion>Book now and saveBook now and save</RoomPromtion>
            </HotelRoom>
            <HotelRoom>
              <RoomIndex>2</RoomIndex>
              <RoomTypeName>Standard Room, 1 Queen Bed</RoomTypeName>
              <Inclusion>Free Wireless Internet</Inclusion>
              <RoomTypeCode>201418329|1|1^^1^^207036271</RoomTypeCode>
              <RatePlanCode>207036271</RatePlanCode>
              <RoomRate IsPackageRate="true" B2CRates="false" AgentMarkUp="0.00" RoomTax="10.77" RoomFare="41.48" Currency="USD" TotalFare="52.25">
                <DayRates>
                  <DayRate Date="2018-04-25T00:00:00" BaseFare="41.4783600000"/>
                </DayRates>
                <ExtraGuestCharges>0</ExtraGuestCharges>
                <ChildCharges>0</ChildCharges>
                <Discount>0</Discount>
                <OtherCharges>0</OtherCharges>
                <ServiceTax>0</ServiceTax>
              </RoomRate>
              <RoomPromtion>Save 40%Save 40%</RoomPromtion>
            </HotelRoom>
          </HotelRooms>
          <OptionsForBooking>
            <FixedFormat>true</FixedFormat>
            <RoomCombination>
              <RoomIndex>1</RoomIndex>
            </RoomCombination>
            <RoomCombination>
              <RoomIndex>2</RoomIndex>
            </RoomCombination>
          </OptionsForBooking>
          <MoreRoomsAvailable>true</MoreRoomsAvailable>
          <IsPkgProperty>false</IsPkgProperty>
          <IsPackageRate>true</IsPackageRate>
        </HotelResult>
      </HotelResultList>
    </HotelSearchWithRoomsResponse>
        
    

Multiple room request (2 Room - 1 Adult, 1Adult 1 Child)

        
<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/HotelSearchWithRooms</wsa:Action> 
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
   </soap:Header>
   <soap:Body>
      <hot:HotelSearchWithRoomsRequest>
         <hot:CheckInDate>2018-03-01</hot:CheckInDate>
         <hot:CheckOutDate>2018-03-03</hot:CheckOutDate>
         <hot:CountryName>France</hot:CountryName>
         <hot:CityName>Paris</hot:CityName>
         <hot:CityId>131408</hot:CityId>
         <hot:IsNearBySearchAllowed>false</hot:IsNearBySearchAllowed>
         <hot:NoOfRooms>2</hot:NoOfRooms>
         <hot:GuestNationality>GB</hot:GuestNationality>
         <hot:RoomGuests>
            <hot:RoomGuest AdultCount="1" ChildCount="0"/>
            <hot:RoomGuest AdultCount="1" ChildCount="1">
               <hot:ChildAge>
                  <hot:int>4</hot:int>
               </hot:ChildAge>
            </hot:RoomGuest>
         </hot:RoomGuests>
         <hot:ResultCount>5</hot:ResultCount>
         <hot:Filters>
            <hot:StarRating>All</hot:StarRating>
            <hot:OrderBy>PriceAsc</hot:OrderBy>
         </hot:Filters>
         <hot:ResponseTime>7</hot:ResponseTime>
      </hot:HotelSearchWithRoomsRequest>
   </soap:Body>
</soap:Envelope>
        
    

Multiple room response (2 Room - 1 Adult, 1Adult)

        
<HotelSearchWithRoomsResponse xmlns="http://TekTravel/HotelBookingApi">
  <Status>
    <StatusCode>01</StatusCode>
    <Description>Successful: HotelSearchWithRooms Successful</Description>
  </Status>
  <ResponseTime>06/01/2018 12:05:48</ResponseTime>
  <SessionId>959cd204-6d00-44f4-9aa6-55a886701f69</SessionId>
  <NoOfRoomsRequested>2</NoOfRoomsRequested>
  <CityId>131408</CityId>
  <CheckInDate>01/03/2018 00:00:00</CheckInDate>
  <CheckOutDate>03/03/2018 00:00:00</CheckOutDate>
  <RoomGuests>
    <RoomGuest AdultCount="1" ChildCount="0"/>
    <RoomGuest AdultCount="1" ChildCount="1">
            <hot:ChildAge>
                <hot:int>4</hot:int>
            </hot:ChildAge>
    </hot:RoomGuest>
  </RoomGuests>
  <HotelResultList>
    <HotelResult>
      <ResultIndex>1</ResultIndex>
      <HotelInfo>
        <HotelCode>1199133</HotelCode>
        <HotelName>HotelF1 Gennevilliers Asnieres</HotelName>
        <HotelPicture>http://www.tboholidays.com//imageresource.aspx?img=k6DH+39xpEWJ6sshsBgEUY9oKBj/b6OqzQcmXbJdJ1Fw5DB1G7cMZ/ItTWN2gF2pWUe/wmWWhmq2cynQz81i0dEI9HEGhgamxiC8QN90qbo41ziWGN3hZg==</HotelPicture>
        <HotelDescription>Property Location With a stay at HotelF1 Gennevilliers Asnières in Gennevilliers, you&apos;ll be close to Stade de France and Arc de Triomphe.</HotelDescription>
        <Latitude>48.91785</Latitude>
        <Longitude>2.30724</Longitude>
        <HotelAddress>Avenue Laurent Cély 92230 Gennevilliers</HotelAddress>
        <Rating>OneStar</Rating>
        <HotelPromotion/>
        <TripAdvisorRating>2.0</TripAdvisorRating>
        <TripAdvisorReviewURL>http://www.tripadvisor.com/Hotel_Review-g196567-d300718-Reviews-m19454-HotelF1_Gennevilliers_Asniere</TripAdvisorReviewURL>
        <TagIds>52531</TagIds>
      </HotelInfo>
      <MinHotelPrice TotalPrice="162.79" Currency="USD" B2CRates="false" OriginalPrice="162.79"/>
      <HotelRooms>
        <HotelRoom>
          <RoomIndex>1</RoomIndex>
          <RoomTypeName>Room</RoomTypeName>
          <Inclusion>None</Inclusion>
          <RoomTypeCode>201469683|1|1^^1^^211883839</RoomTypeCode>
          <RatePlanCode>211883839</RatePlanCode>
          <RoomRate IsPackageRate="false" B2CRates="false" AgentMarkUp="0.00" RoomTax="7.62" RoomFare="73.77" Currency="USD" TotalFare="81.39">
            <DayRates>
              <DayRate Date="2018-03-01T00:00:00" BaseFare="38.1559500000"/>
              <DayRate Date="2018-03-02T00:00:00" BaseFare="35.6149500000"/>
            </DayRates>
            <ExtraGuestCharges>0</ExtraGuestCharges>
            <ChildCharges>0</ChildCharges>
            <Discount>0</Discount>
            <OtherCharges>0</OtherCharges>
            <ServiceTax>0</ServiceTax>
          </RoomRate>
        <RoomPromtion/>
        </HotelRoom>
        <HotelRoom>
          <RoomIndex>2</RoomIndex>
          <RoomTypeName>Room</RoomTypeName>
          <Inclusion>None</Inclusion>
          <RoomTypeCode>201469683|1|2^^2^^211883839</RoomTypeCode>
          <RatePlanCode>211883839</RatePlanCode>
          <RoomRate IsPackageRate="false" B2CRates="false" AgentMarkUp="2.65" RoomTax="7.62" RoomFare="73.77" Currency="USD" TotalFare="81.39">
            <DayRates>
              <DayRate Date="2018-03-01T00:00:00" BaseFare="38.1559500000"/>
              <DayRate Date="2018-03-02T00:00:00" BaseFare="35.6149500000"/>
            </DayRates>
            <ExtraGuestCharges>0</ExtraGuestCharges>
            <ChildCharges>0</ChildCharges>
            <Discount>0</Discount>
            <OtherCharges>0</OtherCharges>
            <ServiceTax>0</ServiceTax>
          </RoomRate>
        <RoomPromtion/>
        </HotelRoom>
      </HotelRooms>
      <OptionsForBooking>
        <FixedFormat>true</FixedFormat>
        <RoomCombination>
          <RoomIndex>1</RoomIndex>
          <RoomIndex>2</RoomIndex>
        </RoomCombination>
      </OptionsForBooking>
      <MoreRoomsAvailable>true</MoreRoomsAvailable>
      <IsPkgProperty>false</IsPkgProperty>
      <IsPackageRate>false</IsPackageRate>
    </HotelResult>
  </HotelResultList>
</HotelSearchWithRoomsResponse>