Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleOTA_HotelRoomListRQ
linenumberstrue
<OTA_HotelRoomListRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" Target="Production" TimeStamp="2015-11-24T16:00:00+02:00" EchoToken="123456789">
  <POS>
    <Source>
    <RequestorID ID="MASTERUSERNAME" MessagePassword="MASTERPASSWORD" />
    </Source>
  </POS>
  <HotelRoomLists>
    <HotelRoomList HotelCode="HotelCode" />
  </HotelRoomLists>
</OTA_HotelRoomListRQ>

...

Name
Mandatory
Description
HotelCodeYesThe ID of the hotel on the online booking system

Child elements: None


The online booking system must respond with

...

the following

...

Info
titleRoom types only or room types and rate plans
If the online booking system does not support multiple rate plans, only the room types should be returned. On the other hand, if the online booking system supports multiple rate plans per room type, then the rate plans must also be listed in the response.

format


Code Block
languagexml
title

...

OTA_HotelRoomListRS response with

...

rooms

...

<OTA_HotelRoomListRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2015-11-25T14:03:12+01:00" CorrelationID="00Q5655b19087479">
  <Success></Success>
  <HotelRoomLists>
    <HotelRoomList HotelName="Hotel Monopole" HotelCode="00P5519244d6895d">
      <RoomStays>
        <RoomStay>
          <RoomTypes>
            <RoomType IsRoom="true" RoomID="00P55192452c758a">
              <Occupancy MinOccupancy="1" MaxOccupancy="2" />
              <RoomDescription Name="Double"/>
            </RoomType>
          </RoomTypes>
        </RoomStay>
        <RoomStay>
          <RoomTypes>
            <RoomType IsRoom="true" RoomID="00P55192452dc947">
              <Occupancy MinOccupancy="1" MaxOccupancy="1" />
              <RoomDescription Name="Single"/>
            </RoomType>
          </RoomTypes>
        </RoomStay>
      </RoomStays>
    </HotelRoomList>
  </HotelRoomLists>
</OTA_HotelRoomListRS>

Code Block
languagexml
titleUse case 2. OTA_HotelRoomListRS with rooms and ratesand rates
linenumberstrue
<OTA_HotelRoomListRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2015-11-25T14:03:12+01:00" CorrelationID="00Q5655b19087479">
  <Success></Success>
  <HotelRoomLists>
    <HotelRoomList HotelName="Hotel Monopole" HotelCode="00P5519244d6895d">
      <RoomStays>
        <RoomStay>
          <RoomTypes>
            <RoomType IsRoom="true" RoomID="00P55192452c758a">
              <Occupancy MinOccupancy="1" MaxOccupancy="2" />
              <RoomDescription Name="Double"/>
            </RoomType>
          </RoomTypes>
          <RatePlans>
            <RatePlan RatePlanID="00P551924532f2f7" RatePlanName="Standard"/>
            <RatePlan RatePlanID="00P5519245339021" RatePlanName="Non refundable"/>
            <RatePlan RatePlanID="00P5519245344243" RatePlanName="Hot Deal"/>
          </RatePlans>
        </RoomStay>
        <RoomStay>
          <RoomTypes>
            <RoomType IsRoom="true" RoomID="00P55192452dc947">
              <Occupancy MinOccupancy="1" MaxOccupancy="1" />
              <RoomDescription Name="Single"/>
            </RoomType>
          </RoomTypes>
          <RatePlans>
            <RatePlan RatePlanID="00P551924532f2f7" RatePlanName="Standard"/>
            <RatePlan RatePlanID="00P5519245339021" RatePlanName="Non refundable"/>
          </RatePlans>
        </RoomStay>
      </RoomStays>
    </HotelRoomList>
  </HotelRoomLists>
</OTA_HotelRoomListRS>

...