Skip to end of banner
Go to start of banner

HotelReservation - Multiple Rooms, One Guest

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This example covers two common business cases.

  1. Split stay, one guest staying in the same room type, but for non continuous intervals. For example mon-wed and fri-sun.
  2. One reservation with multiple room types (hence multiple RoomStays) with only one ResGuest provided.

Example

NOTE: Some of the sections are left out for clarity, as they don't impact on this example. Follow on from the example in the OTA_ResRetrieveRS to fill in the missing bits

<RoomStays>
    <RoomStay>

        <-- ROOM STAY DETAILS OMITTED -->
     
        <TimeSpan Start="2008-11-08" End="2008-11-09"/>  
        <ResGuestRPHs>
            <ResGuestRPH RPH="1"/>      
        </ResGuestRPHs>
    </RoomStay>
    <RoomStay>

        <-- ROOM STAY DETAILS OMITTED -->       
      
        <TimeSpan Start="2008-11-12" End="2008-11-15"/>
        <ResGuestRPHs>
            <ResGuestRPH RPH="1"/>     
        </ResGuestRPHs>
    </RoomStay>
</RoomStays>
<ResGuests>
    <ResGuest ResGuestRPH="1" ArrivalTime="10:30:00">
        <Profiles>
            <ProfileInfo>
                <Profile ProfileType="1">
                    <Customer>
                        <PersonName>
                            <GivenName>James</GivenName>
                            <Surname>Bond</Surname>
                        </PersonName>
                  
                        <-- PERSONAL DETAILS OMITTED -->

                    </Customer>
                </Profile>
            </ProfileInfo>
        </Profiles>
    </ResGuest>
</ResGuests>
  • No labels