AvailableHotelRooms()

This method is used to get different categories of rooms available in a particular hotel. These rooms can be selected for booking based on specified combinations. Below we are showing how the combinations can be used to select rooms in case of Multiple room booking.

FixedFormat is True

                    
                    <OptionsForBooking>
                        <FixedFormat>true</FixedFormat>
                        <RoomCombination>
                        <RoomIndex>1</RoomIndex>
                        <RoomIndex>2</RoomIndex>
                        </RoomCombination>
                        <RoomCombination>
                        <RoomIndex>3</RoomIndex>
                        <RoomIndex>4</RoomIndex>
                        </RoomCombination>
                    </OptionsForBooking>
                    
                

There are no free combinations, you have to choose among the provided combinations as it is.

FixedFormat is False

                    
                        <OptionsForBooking>
                            <FixedFormat>false</FixedFormat>
                            <RoomCombination>
                               <RoomIndex>3</RoomIndex>
                               <RoomIndex>2</RoomIndex>
                            </RoomCombination>
                            <RoomCombination>
                               <RoomIndex>3</RoomIndex>
                               <RoomIndex>4</RoomIndex>
                            </RoomCombination>
                            <RoomCombination>
                               <RoomIndex>3</RoomIndex>
                               <RoomIndex>6</RoomIndex>
                            </RoomCombination>
                        </OptionsForBooking>
                
                

In this case you can use the combinations as it is or List of room indexes can be made which can be used for free combinations
Eg. for above sample
RoomIndex list for first room options - [3]
RoomIndex list for second room options - [2,4,6]

Request (Case : Single room)

                    
<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/AvailableHotelRooms</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:HotelRoomAvailabilityRequest>
      <hot:SessionId>c31ccab1-22d6-4171-9820-f5448e1938e2</hot:SessionId>
      <hot:ResultIndex>3</hot:ResultIndex>
      <hot:HotelCode>1360717</hot:HotelCode>
      <hot:ResponseTime>0</hot:ResponseTime>
    </hot:HotelRoomAvailabilityRequest>
  </soap:Body>
</soap:Envelope>
                    
                

Response (Case : Single room)

                    
<HotelRoomAvailabilityResponse xmlns="http://TekTravel/HotelBookingApi">
  <Status>
    <StatusCode>01</StatusCode>
    <Description>Successful: AvailableHotelRoom Successful</Description>
  </Status>
  <ResultIndex>3</ResultIndex>
  <HotelRooms>
    <HotelRoom>
      <RoomIndex>1</RoomIndex>
      <RoomTypeName>Standard Room</RoomTypeName>
      <Inclusion>Free Wireless Internet|Free Parking|Air conditioning|Coffee/tea maker|Desk|Free WiFi|Free bottled water|HDTV|Hair dryer|In-room safe|Individually furnished |Iron/ironing board (on request)|LCD TV |Phone|Private bathroom|Room service (24 hours)|Satellite TV service|Shower/tub combination|Smoking And Non-Smoking</Inclusion>
      <RoomTypeCode>200060311|1|1^^1^^210835343</RoomTypeCode>
      <RatePlanCode>210835343</RatePlanCode>
      <RoomRate IsPackageRate="true" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="36.24" RoomTax="7.56" PrefPrice="2798.81" TotalFare="43.80" PrefCurrency="INR">
        <DayRates>
          <DayRates Date="2018-05-25T00:00:00" BaseFare="36.240000"/>
        </DayRates>
        <ExtraGuestCharges>0</ExtraGuestCharges>
        <ChildCharges>0</ChildCharges>
        <Discount>0</Discount>
        <OtherCharges>0</OtherCharges>
        <ServiceTax>0</ServiceTax>
      </RoomRate>
     <RoomAdditionalInfo MaxOccupancy="3" MinAge="2">
        <Description>[1 Double Bed or 2 Twin Beds215-sq-foot (20-sq-meter) room with city viewsInternetFree WiFiEntertainment - 32-inch LCD TV with satellite channelsFood & Drink - Coffee/tea maker, 24-hour room service, and free bottled waterBathroom - Private bathroom, a hair dryer, and a shower/tub combinationPractical - Safe, desk, and phoneComfort - Air conditioningSmoking/Non Smoking ]</Description>
        <ImageURLs>
         <URL>http://api.tbotechnology.in/imageresource.aspx?img=FbrGPTrju5e5v0qrAGTD8pPBsj8/wYA5jaoLHflErFwXObKDXgAV+1TGPGXf1Y0hQ3Z4qzuGQEISosctBczkg67+ej1hN6PurPKsaizV8pw=</URL>
        </ImageURLs>
     </RoomAdditionalInfo>
    </HotelRoom>
    <HotelRoom>
      <RoomIndex>2</RoomIndex>
      <RoomTypeName>Standard Room</RoomTypeName>
      <Inclusion>Breakfast Buffet|Air conditioning|Coffee/tea maker|Desk|Free WiFi|Free bottled water|HDTV|Hair dryer|In-room safe|Individually furnished |Iron/ironing board (on request)|LCD TV |Phone|Private bathroom|Room service (24 hours)|Satellite TV service|Shower/tub combination|Smoking And Non-Smoking</Inclusion>
      <RoomTypeCode>200060311|2|1^^1^^210245730</RoomTypeCode>
      <RatePlanCode>210245730</RatePlanCode>
      <RoomRate IsPackageRate="true" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="49.66" RoomTax="10.36" PrefPrice="3835.26" TotalFare="60.02" PrefCurrency="INR">
        <DayRates>
          <Date="2018-05-25T00:00:00" BaseFare="49.65500000"/>
        </DayRates>
        <ExtraGuestCharges>0</ExtraGuestCharges>
        <ChildCharges>0</ChildCharges>
        <Discount>0</Discount>
        <OtherCharges>0</OtherCharges>
        <ServiceTax>0</ServiceTax>
      </RoomRate>
     <RoomAdditionalInfo MaxOccupancy="3" MinAge="2">
      <Description>[1 Double Bed or 2 Twin Beds215-sq-foot (20-sq-meter) room with city viewsInternetFree WiFiEntertainment - 32-inch LCD TV with satellite channelsFood & Drink- Coffee/tea maker, 24-hour room service, and free bottled waterBathroom- Private bathroom, a hair dryer, and a shower/tub combinationPractical - Safe, desk, and phoneComfort-Air conditioningSmoking/Non Smoking ]</Description>
      <ImageURLs>
         <URL>http://api.tbotechnology.in/imageresource.aspx?img=FbrGPTrju5e5v0qrAGTD8pPBsj8/wYA5jaoLHflErFwXObKDXgAV+1TGPGXf1Y0hQ3Z4qzuGQEISosctBczkg67+ej1hN6PurPKsaizV8pw=</URL>
      </ImageURLs>
    </RoomAdditionalInfo>
    </HotelRoom>
  </HotelRooms>
  <OptionsForBooking>
    <FixedFormat>true</FixedFormat>
    <RoomCombination>
      <RoomIndex>1</RoomIndex>
    </RoomCombination>
    <RoomCombination>
      <RoomIndex>2</RoomIndex>
    </RoomCombination>
  </OptionsForBooking>
</HotelRoomAvailabilityResponse>
               
              

Response (Case : Multiple rooms)


<HotelRoomAvailabilityResponse xmlns="http://TekTravel/HotelBookingApi">
  <Status>
    <StatusCode>01</StatusCode>
    <Description>Successful: AvailableHotelRoom Successful</Description>
  </Status>
  <ResultIndex>1</ResultIndex>
  <HotelRooms>
    <HotelRoom>
      <RoomIndex>1</RoomIndex>
      <RoomTypeName>Standard Single Room, 1 Double Or 2 Twin</RoomTypeName>
      <Inclusion>Free Wireless Internet|Breakfast Buffet|Air conditioning|Cribs/infant beds (surcharge)|Daily housekeeping|Free WiFi|Free toiletries|HDTV|Hair dryer|In-room climate control (air conditioning)|In-room safe (laptop compatible)|Individually decorated|Individually furnished|Iron/ironing board (on request)|LCD TV |Minibar|Private bathroom|Rollaway/extra beds (surcharge)|Room service (24 hours)|Satellite TV service|Shower only|Smoking And Non-Smoking</Inclusion>
      <RoomTypeCode>457728|1|1^^1^^200557546</RoomTypeCode>
      <RatePlanCode>200557546</RatePlanCode>
      <RoomRate IsPackageRate="true" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="33.87" RoomTax="0" TotalFare="33.87">
        
        <ExtraGuestCharges>0</ExtraGuestCharges>
        <ChildCharges>0</ChildCharges>
        <Discount>0</Discount>
        <OtherCharges>0</OtherCharges>
        <ServiceTax>0</ServiceTax>
      </RoomRate>
     <RoomAdditionalInfo MaxOccupancy="2">
        <Description>[1 Double Bed or 2 Twin Beds
161-sq-foot (15-sq-meter) room with courtyard views

Internet - Free WiFi
Entertainment - 19-inch LCD TV with satellite channels
Food & Drink - 24-hour room service and minibar
Sleep - A down duvet
Bathroom - Private bathroom, shower, free toiletries, and a hair dryer
Practical - Laptop-compatible safe and iron/ironing board (on request); rollaway/extra beds and cribs/infant beds available on request
Comfort - Air conditioning and daily housekeeping
Smoking/Non Smoking
 ]</Description> <ImageURLs> <URL>http://api.tbotechnology.in/imageresource.aspx?img=FbrGPTrju5e5v0qrAGTD8pPBsj8/wYA5AyAWRadUmfmhJdAqZy6rwJ/jKYh7aCDPnS3ENNYwmArwnWdv09iUh5zM8sEkdUca+iR2cig15pCv6WKx+nB/Zw==</URL> </ImageURLs> </RoomAdditionalInfo> </HotelRoom> <HotelRoom> <RoomIndex>2</RoomIndex> <RoomTypeName>Standard Single Room, 1 Double Or 2 Twin</RoomTypeName> <Inclusion>Free Wireless Internet|Breakfast Buffet|Air conditioning|Cribs/infant beds (surcharge)|Daily housekeeping|Free WiFi|Free toiletries|HDTV|Hair dryer|In-room climate control (air conditioning)|In-room safe (laptop compatible)|Individually decorated|Individually furnished|Iron/ironing board (on request)|LCD TV |Minibar|Private bathroom|Rollaway/extra beds (surcharge)|Room service (24 hours)|Satellite TV service|Shower only|Smoking And Non-Smoking</Inclusion> <RoomTypeCode>200557546</RoomTypeCode> <RatePlanCode>001:NOV:2611:S3165:3514:13645|NOV|SB</RatePlanCode> <RoomRate IsPackageRate="true" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="33.87" RoomTax="0" TotalFare="33.87"> <DayRates> <DayRates Date="2018-04-29T00:00:00" BaseFare="33.87000000"/> </DayRates> <ExtraGuestCharges>0</ExtraGuestCharges> <ChildCharges>0</ChildCharges> <Discount>0</Discount> <OtherCharges>0</OtherCharges> <ServiceTax>0</ServiceTax> </RoomRate> <RoomAdditionalInfo MaxOccupancy="2"> <Description>Private bathroom with a deep soaking bathtub.</Description> <ImageURLs> <URL>http://api.tbotechnology.in/imageresource.aspx?img=FbrGPTrju5e5v0qrAGTD8pPBsj8/wYA5AyAWRadUmfmhJdAqZy6rwJ/jKYh7aCDPnS3ENNYwmArwnWdv09iUh5zM8sEkdUca+iR2cig15pCv6WKx+nB/Zw==</URL> </ImageURLs> </RoomAdditionalInfo> </HotelRoom> <HotelRoom> <RoomIndex>3</RoomIndex> <RoomTypeName>Standard Single Room, 1 Double Or 2 Twin</RoomTypeName> <Inclusion>Free Wireless Internet|Breakfast Buffet|Air conditioning|Cribs/infant beds (surcharge)|Daily housekeeping|Free WiFi|Free toiletries|HDTV|Hair dryer|In-room climate control (air conditioning)|In-room safe (laptop compatible)|Individually decorated|Individually furnished|Iron/ironing board (on request)|LCD TV |Minibar|Private bathroom|Rollaway/extra beds (surcharge)|Room service (24 hours)|Satellite TV service|Shower only|Smoking And Non-Smoking</Inclusion> <RoomTypeCode>457728|3|1^^1^^1673265</RoomTypeCode> <RatePlanCode>1673265</RatePlanCode> <RoomRate IsPackageRate="true" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="35.87" RoomTax="0" TotalFare="35.87"> <DayRates> <DayRates Date="2018-04-29T00:00:00" BaseFare="35.8700000"/> </DayRates> <ExtraGuestCharges>0</ExtraGuestCharges> <ChildCharges>0</ChildCharges> <Discount>0</Discount> <OtherCharges>0</OtherCharges> <ServiceTax>0</ServiceTax> </RoomRate> <RoomAdditionalInfo MaxOccupancy="2"> <Description>Private bathroom with a deep soaking bathtub.</Description> <ImageURLs> <URL>http://api.tbotechnology.in/imageresource.aspx?img=FbrGPTrju5e5v0qrAGTD8pPBsj8/wYA5AyAWRadUmfmhJdAqZy6rwJ/jKYh7aCDPnS3ENNYwmArwnWdv09iUh5zM8sEkdUca+iR2cig15pCv6WKx+nB/Zw==</URL> </ImageURLs> </RoomAdditionalInfo> </HotelRoom> <HotelRoom> <RoomIndex>4</RoomIndex> <RoomTypeName>Standard Single Room, 1 Double Or 2 Twin</RoomTypeName> <Inclusion>Free Wireless Internet|Breakfast Buffet|Air conditioning|Cribs/infant beds (surcharge)|Daily housekeeping|Free WiFi|Free toiletries|HDTV|Hair dryer|In-room climate control (air conditioning)|In-room safe (laptop compatible)|Individually decorated|Individually furnished|Iron/ironing board (on request)</Inclusion> <RoomTypeCode>457728|3|2^^2^^1673265</RoomTypeCode> <RatePlanCode>1673265</RatePlanCode> <RoomRate IsPackageRate="true" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="35.87" RoomTax="0" TotalFare="35.87"> <DayRates> <DayRates Date="2018-04-29T00:00:00" BaseFare="35.8700000"/> </DayRates> <ExtraGuestCharges>0</ExtraGuestCharges> <ChildCharges>0</ChildCharges> <Discount>0</Discount> <OtherCharges>0</OtherCharges> <ServiceTax>0</ServiceTax> </RoomRate> <RoomAdditionalInfo MaxOccupancy="2"> <Description>Private bathroom with a deep soaking bathtub.</Description> </RoomAdditionalInfo> </HotelRoom> </HotelRooms> <OptionsForBooking> <FixedFormat>true</FixedFormat> <RoomCombination> <RoomIndex>1</RoomIndex> <RoomIndex>2</RoomIndex> </RoomCombination> <RoomCombination> <RoomIndex>3</RoomIndex> <RoomIndex>4</RoomIndex> </RoomCombination> </OptionsForBooking> </HotelRoomAvailabilityResponse>

Response (Case : with Supplements)


<HotelRoomAvailabilityResponse xmlns="http://TekTravel/HotelBookingApi">
  <Status>
    <StatusCode>01</StatusCode>
    <Description>Successful: AvailableHotelRoom Successful</Description>
  </Status>
  <ResultIndex>1</ResultIndex>
  <HotelRooms>
    <HotelRoom>
      <RoomIndex>1</RoomIndex>
      <RoomTypeName>Twin Room Next Generation</RoomTypeName>
      <Inclusion>None</Inclusion>
      <RoomTypeCode>3139586|75315ebb-8a85-ff03-bc6d-01ee9386916c|1^^1^^852635||75315ebb-8a85-ff03-bc6d-01ee9386916c</RoomTypeCode>
      <RatePlanCode>852635||75315ebb-8a85-ff03-bc6d-01ee9386916c</RatePlanCode>
      <RoomRate IsPackageRate="false" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="46.31" RoomTax="4.63" TotalFare="50.94">
        <DayRates>
          <DayRates Date="2018-04-06T00:00:00" BaseFare="46.3113750000"/>
        </DayRates>
        <ExtraGuestCharges>0</ExtraGuestCharges>
        <ChildCharges>0</ChildCharges>
        <Discount>0</Discount>
        <OtherCharges>0</OtherCharges>
        <ServiceTax>0</ServiceTax>
      </RoomRate>
      <Supplements>
          <Supplement Type="PerStaySupplement" SuppID="1" SuppName="City Tax" SuppIsMandatory="true" SuppChargeType="AtProperty" Price="4.08" CurrencyCode="USD"/>>
      </Supplements>
    </HotelRoom>
    <HotelRoom>
      <RoomIndex>2</RoomIndex>
      <RoomTypeName>Double Room Next Generation</RoomTypeName>
      <Inclusion>None</Inclusion>
      <RoomTypeCode>3213056|4f536c3e-5db9-6808-fdba-061a72c46ac3|1^^1^^852635||4f536c3e-5db9-6808-fdba-061a72c46ac3</RoomTypeCode>
      <RatePlanCode>852635||4f536c3e-5db9-6808-fdba-061a72c46ac3</RatePlanCode>
      <RoomRate IsPackageRate="false" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="46.31" RoomTax="4.63" TotalFare="50.94">
        <DayRates>
          <DayRates Date="2018-04-06T00:00:00" BaseFare="46.3113750000"/>
        </DayRates>
        <ExtraGuestCharges>0</ExtraGuestCharges>
        <ChildCharges>0</ChildCharges>
        <Discount>0</Discount>
        <OtherCharges>0</OtherCharges>
        <ServiceTax>0</ServiceTax>
      </RoomRate>
     <Supplements>
          <Supplement Type="PerStaySupplement" SuppID="1" SuppName="City Tax" SuppIsMandatory="true" SuppChargeType="AtProperty" Price="4.08" CurrencyCode="USD"/>>
     </Supplements>
    </HotelRoom>
    <HotelRoom>
      <RoomIndex>3</RoomIndex>
      <RoomTypeName>Twin Room Next Generation</RoomTypeName>
      <Inclusion>None</Inclusion>
      <RoomTypeCode>3139586|06c58166-2ec1-31fc-19a2-76a05829aee9|1^^1^^606527||06c58166-2ec1-31fc-19a2-76a05829aee9</RoomTypeCode>
      <RatePlanCode>606527||06c58166-2ec1-31fc-19a2-76a05829aee9</RatePlanCode>
      <RoomRate IsPackageRate="false" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="75.91" RoomTax="7.59" TotalFare="83.50">
        <DayRates>
          <DayRates Date="2018-04-06T00:00:00" BaseFare="75.9057470000"/>
        </DayRates>
        <ExtraGuestCharges>0</ExtraGuestCharges>
        <ChildCharges>0</ChildCharges>
        <Discount>0</Discount>
        <OtherCharges>0</OtherCharges>
        <ServiceTax>0</ServiceTax>
      </RoomRate>
      <Supplements>
          <Supplement Type="PerStaySupplement" SuppID="1" SuppName="City Tax" SuppIsMandatory="true" SuppChargeType="AtProperty" Price="4.08" CurrencyCode="USD"/>>
      </Supplements>
    </HotelRoom>
    <HotelRoom>
      <RoomIndex>4</RoomIndex>
      <RoomTypeName>Double Room Next Generation</RoomTypeName>
      <Inclusion>None</Inclusion>
      <RoomTypeCode>3213056|ed6ce592-4ecd-d117-ae0d-be34546a605e|1^^1^^606527||ed6ce592-4ecd-d117-ae0d-be34546a605e</RoomTypeCode>
      <RatePlanCode>606527||ed6ce592-4ecd-d117-ae0d-be34546a605e</RatePlanCode>
      <RoomRate IsPackageRate="false" B2CRates="false" AgentMarkUp="0.00" Currency="USD" RoomFare="75.91" RoomTax="7.59" TotalFare="83.50">
        <DayRates>
          <DayRates Date="2018-04-06T00:00:00" BaseFare="75.9057470000"/>
        </DayRates>
        <ExtraGuestCharges>0</ExtraGuestCharges>
        <ChildCharges>0</ChildCharges>
        <Discount>0</Discount>
        <OtherCharges>0</OtherCharges>
        <ServiceTax>0</ServiceTax>
      </RoomRate>
    </HotelRoom>
  </HotelRooms>
  <OptionsForBooking>
    <FixedFormat>true</FixedFormat>
    <RoomCombination>
      <RoomIndex>1</RoomIndex>
      <RoomIndex>2</RoomIndex>
    </RoomCombination>
    <RoomCombination>
      <RoomIndex>3</RoomIndex>
      <RoomIndex>4</RoomIndex>
    </RoomCombination>
  </OptionsForBooking>
</HotelRoomAvailabilityResponse>