...
Code Block |
---|
language | xml |
---|
title | OTA_HotelRoomListRQ |
---|
linenumbers | true |
---|
|
<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> |
...
| | |
---|
HotelCode | Yes | The ID of the hotel on the online booking system |
Child elements: None
The online booking system must respond with
...
the following
...
Info |
---|
title | Room 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
...
OTA_HotelRoomListRS response with |
|
...
...
<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 |
---|
language | xml |
---|
title | Use case 2. OTA_HotelRoomListRS with rooms and ratesand rates |
---|
linenumbers | true |
---|
|
<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>
|
...