Multiple Room Types XML Samples

 


Reservation with 2 Rooms of Same Room Type

Example of a reservation with the same room type booked twice and one guest on the reservation level.

<OTA_ResRetrieveRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2023-08-01T09:32:47+08:00" EchoToken="echo-abc123"> <Success/> <ReservationsList> <HotelReservation CreateDateTime="2023-08-01T09:30:45.000+0000" ResStatus="Book"> <POS> <Source> <RequestorID Type="22" ID="SITEMINDER"/> <BookingChannel Primary="true" Type="7"> <CompanyName Code="WTF">Wotif</CompanyName> </BookingChannel> </Source> </POS> <UniqueID Type="14" ID="WTF-001"/> <UniqueID Type="16" ID="1243132" ID_Context="MESSAGE_UNIQUE_ID"/> <RoomStays> <RoomStay> <RoomRates> <RoomRate RoomTypeCode="DR" RatePlanCode="RAC" NumberOfUnits="1"> <Rates> <Rate UnitMultiplier="3" RateTimeUnit="Day" EffectiveDate="2024-03-12" ExpireDate="2024-03-15"> <Total AmountAfterTax="30.00" CurrencyCode="USD"/> </Rate> </Rates> </RoomRate> </RoomRates> <GuestCounts> <GuestCount AgeQualifyingCode="10" Count="1"/> </GuestCounts> <TimeSpan Start="2024-03-12" End="2024-03-15"/> <Total AmountAfterTax="90.00" CurrencyCode="USD"/> <BasicPropertyInfo HotelCode="10107"/> </RoomStay> <RoomStay> <RoomRates> <RoomRate RoomTypeCode="DR" RatePlanCode="RAC" NumberOfUnits="1"> <Rates> <Rate UnitMultiplier="3" RateTimeUnit="Day" EffectiveDate="2024-03-12" ExpireDate="2024-03-15"> <Total AmountAfterTax="30.00" CurrencyCode="USD"/> </Rate> </Rates> </RoomRate> </RoomRates> <GuestCounts> <GuestCount AgeQualifyingCode="10" Count="1"/> </GuestCounts> <TimeSpan Start="2024-03-12" End="2024-03-15"/> <Total AmountAfterTax="90.00" CurrencyCode="USD"/> <BasicPropertyInfo HotelCode="10107"/> </RoomStay> </RoomStays> <ResGuests> <ResGuest> <Profiles> <ProfileInfo> <UniqueID Type="16" ID="12345" ID_Context="CHANNEL"/> <Profile ProfileType="1"> <Customer> <PersonName> <GivenName>James</GivenName> <Surname>Bond</Surname> </PersonName> <Telephone PhoneNumber="555-1234"/> <Email>james.bond@mi5.co.uk</Email> </Customer> </Profile> </ProfileInfo> </Profiles> </ResGuest> </ResGuests> <ResGlobalInfo> <Total AmountAfterTax="180.00" CurrencyCode="USD"/> <HotelReservationIDs> <HotelReservationID ResID_Type="14" ResID_Value="RES_3243525"/> </HotelReservationIDs> </ResGlobalInfo> </HotelReservation> </ReservationsList> </OTA_ResRetrieveRS>

Reservation with Different Multiple Room Types Booked

Example of a reservation with two different room types booked, for three guests, over the same dates. In this example, you'll also notice how each guest is linked to the room (RoomStay) they're staying in using ResGuestRPH.

<OTA_ResRetrieveRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2023-08-01T09:32:47+08:00" EchoToken="echo-abc123"> <Success/> <ReservationsList> <HotelReservation CreateDateTime="2023-08-01T09:30:45.000+0000" ResStatus="Book"> <POS> <Source> <RequestorID Type="22" ID="SITEMINDER"/> <BookingChannel Primary="true" Type="7"> <CompanyName Code="WTF">Wotif</CompanyName> </BookingChannel> </Source> </POS> <UniqueID Type="14" ID="WTF-001"/> <UniqueID Type="16" ID="1243132" ID_Context="MESSAGE_UNIQUE_ID"/> <RoomStays> <RoomStay> <RoomRates> <RoomRate RoomTypeCode="DR" RatePlanCode="RAC" NumberOfUnits="1"> <Rates> <Rate UnitMultiplier="3" RateTimeUnit="Day" EffectiveDate="2024-03-12" ExpireDate="2024-03-15"> <Total AmountAfterTax="30.00" CurrencyCode="USD"/> </Rate> </Rates> </RoomRate> </RoomRates> <GuestCounts> <GuestCount AgeQualifyingCode="10" Count="2"/> </GuestCounts> <TimeSpan Start="2024-03-12" End="2024-03-15"/> <Total AmountAfterTax="90.00" CurrencyCode="USD"/> <BasicPropertyInfo HotelCode="10107"/> <ResGuestRPHs> <ResGuestRPH RPH="1"/> <ResGuestRPH RPH="2"/> </ResGuestRPHs> </RoomStay> <RoomStay> <RoomRates> <RoomRate RoomTypeCode="SG" RatePlanCode="RAC" NumberOfUnits="1"> <Rates> <Rate UnitMultiplier="3" RateTimeUnit="Day" EffectiveDate="2024-03-12" ExpireDate="2024-03-15"> <Total AmountAfterTax="20.00" CurrencyCode="USD"/> </Rate> </Rates> </RoomRate> </RoomRates> <GuestCounts> <GuestCount AgeQualifyingCode="10" Count="1"/> </GuestCounts> <TimeSpan Start="2024-03-12" End="2024-03-15"/> <Total AmountAfterTax="60.00" CurrencyCode="USD"/> <BasicPropertyInfo HotelCode="10107"/> <ResGuestRPHs> <ResGuestRPH RPH="3"/> </ResGuestRPHs> </RoomStay> </RoomStays> <ResGuests> <ResGuest ResGuestRPH="1" ArrivalTime="10:30:00" PrimaryIndicator="1"> <Profiles> <ProfileInfo> <UniqueID Type="16" ID="12345" ID_Context="CHANNEL"/> <Profile ProfileType="1"> <Customer> <PersonName> <GivenName>James</GivenName> <Surname>Bond</Surname> </PersonName> <Telephone PhoneNumber="555-1234"/> <Email>james.bond@mi5.co.uk</Email> </Customer> </Profile> </ProfileInfo> </Profiles> </ResGuest> <ResGuest ResGuestRPH="2" ArrivalTime="10:30:00"> <Profiles> <ProfileInfo> <UniqueID Type="16" ID="12345" ID_Context="CHANNEL"/> <Profile ProfileType="1"> <Customer> <PersonName> <GivenName>Jane</GivenName> <Surname>Bond</Surname> </PersonName> <Telephone PhoneNumber="04046549913"/> <Email>jane.bond@gmail.com</Email> </Customer> </Profile> </ProfileInfo> </Profiles> </ResGuest> <ResGuest ResGuestRPH="3" ArrivalTime="10:30:00"> <Profiles> <ProfileInfo> <UniqueID Type="16" ID="12345" ID_Context="CHANNEL"/> <Profile ProfileType="1"> <Customer> <PersonName> <GivenName>John</GivenName> <Surname>Bond</Surname> </PersonName> <Telephone PhoneNumber="04871971111"/> <Email>john.bond@bond.com</Email> </Customer> </Profile> </ProfileInfo> </Profiles> </ResGuest> </ResGuests> <ResGlobalInfo> <Total AmountAfterTax="150.00" CurrencyCode="USD"/> <HotelReservationIDs> <HotelReservationID ResID_Type="14" ResID_Value="RES_3243525"/> </HotelReservationIDs> </ResGlobalInfo> </HotelReservation> </ReservationsList> </OTA_ResRetrieveRS>

Reservations with Room Type Booked For Split Dates

Example of a reservation where one room type has been booked for two split date spans.

<OTA_ResRetrieveRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2023-08-01T09:32:47+08:00" EchoToken="echo-abc123"> <Success/> <ReservationsList> <HotelReservation CreateDateTime="2023-08-01T09:30:45.000+0000" ResStatus="Book"> <POS> <Source> <RequestorID Type="22" ID="SITEMINDER"/> <BookingChannel Primary="true" Type="7"> <CompanyName Code="WTF">Wotif</CompanyName> </BookingChannel> </Source> </POS> <UniqueID Type="14" ID="WTF-001"/> <UniqueID Type="16" ID="1243132" ID_Context="MESSAGE_UNIQUE_ID"/> <RoomStays> <RoomStay> <RoomRates> <RoomRate RoomTypeCode="DR" RatePlanCode="RAC" NumberOfUnits="1"> <Rates> <Rate UnitMultiplier="3" RateTimeUnit="Day" EffectiveDate="2024-03-12" ExpireDate="2024-03-15"> <Total AmountAfterTax="30.00" CurrencyCode="USD"/> </Rate> </Rates> </RoomRate> </RoomRates> <GuestCounts> <GuestCount AgeQualifyingCode="10" Count="1"/> </GuestCounts> <TimeSpan Start="2024-03-12" End="2024-03-15"/> <Total AmountAfterTax="90.00" CurrencyCode="USD"/> <BasicPropertyInfo HotelCode="10107"/> <ResGuestRPHs> <ResGuestRPH RPH="1"/> </ResGuestRPHs> </RoomStay> <RoomStay> <RoomRates> <RoomRate RoomTypeCode="DR" RatePlanCode="RAC" NumberOfUnits="1"> <Rates> <Rate UnitMultiplier="1" RateTimeUnit="Day" EffectiveDate="2024-03-17" ExpireDate="2024-03-18"> <Total AmountAfterTax="30.00" CurrencyCode="USD"/> </Rate> </Rates> </RoomRate> </RoomRates> <GuestCounts> <GuestCount AgeQualifyingCode="10" Count="1"/> </GuestCounts> <TimeSpan Start="2024-03-17" End="2024-03-18"/> <Total AmountAfterTax="30.00" CurrencyCode="USD"/> <BasicPropertyInfo HotelCode="10107"/> <ResGuestRPHs> <ResGuestRPH RPH="2"/> </ResGuestRPHs> </RoomStay> </RoomStays> <ResGuests> <ResGuest ResGuestRPH="1" ArrivalTime="10:30:00"> <Profiles> <ProfileInfo> <UniqueID Type="16" ID="12345" ID_Context="CHANNEL"/> <Profile ProfileType="1"> <Customer> <PersonName> <GivenName>James</GivenName> <Surname>Bond</Surname> </PersonName> <Telephone PhoneNumber="555-1234"/> <Email>james.bond@mi5.co.uk</Email> </Customer> </Profile> </ProfileInfo> </Profiles> </ResGuest> <ResGuest ResGuestRPH="2" ArrivalTime="10:30:00"> <Profiles> <ProfileInfo> <UniqueID Type="16" ID="12345" ID_Context="CHANNEL"/> <Profile ProfileType="1"> <Customer> <PersonName> <GivenName>James</GivenName> <Surname>Bond</Surname> </PersonName> <Telephone PhoneNumber="555-1234"/> <Email>james.bond@mi5.co.uk</Email> </Customer> </Profile> </ProfileInfo> </Profiles> </ResGuest> </ResGuests> <ResGlobalInfo> <Total AmountAfterTax="120.00" CurrencyCode="USD"/> <HotelReservationIDs> <HotelReservationID ResID_Type="14" ResID_Value="RES_3243525"/> </HotelReservationIDs> </ResGlobalInfo> </HotelReservation> </ReservationsList> </OTA_ResRetrieveRS>