Page 21 - demo demito
P. 21
<Adult/>
</Guests>
</Room>
</HotelStayDetails>
</AvailabilitySearch>
Note: You don’t need to specify any details of adult guests at this stage. If searching for children, you will need to specify their ages:
E.g. the same search as above, but for 1 adult and a 5-year old child:
<AvailabilitySearch>
<Authority>
<Org>\[Your login organisation\]</Org> <User>\[Your login username\]</User> <Password>\[Your password\]</Password> <Currency>\[Your currency\]</Currency> <Version>\[Required version\]</Version> </Authority> <RegionId>1000</RegionId> <HotelStayDetails> <ArrivalDate>2014-01-05</ArrivalDate> <Nights>7</Nights>
<Room>
<Guests>
<Adult/>
<Child age=”5”/>
</Guests>
</Room>
</HotelStayDetails> </AvailabilitySearch>
Searching a single hotel:
If you are only interested in a specific hotel, you can specify the hotel Id instead of the region Id.
E.g. the same search as above, but for hotel with Id 2000:
<AvailabilitySearch>
<Authority>
<Org>\[Your login organisation\]</Org> <User>\[Your login username\]</User> <Password>\[Your password\]</Password> <Currency>\[Your currency\]</Currency> <Version>\[Required version\]</Version> </Authority>
<HotelId>2000</HotelId> <HotelStayDetails> <ArrivalDate>2014-01-05</ArrivalDate> <Nights>7</Nights>
<Room>
<Guests>
<Adult/>
<Child age=”5”/>
</Guests>
</Room>
</HotelStayDetails> </AvailabilitySearch>
roomsXML.com API Specifications
Page 21 of 36