Skip to end of banner
Go to start of banner

HotelReservation - One Room, Multiple Guests

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 3 Next »

This example covers the case where the booking agent sends us one RoomStay with more than 1 guest. All ResGuests are linked to the single RoomStay.

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>
    <!--DETAILS OMITTED -->
    <ResGuestRPHs>
      <ResGuestRPH RPH="1"/>
      <ResGuestRPH RPH="2"/>
    </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>
            <!--DETAILS OMITTED -->
          </Customer>
        </Profile>
      </ProfileInfo>
    </Profiles>
  </ResGuest>
  <ResGuest ResGuestRPH="2" ArrivalTime="10:30:00">
    <Profiles>
      <ProfileInfo>
        <Profile ProfileType="1">
          <Customer>
            <PersonName>
              <GivenName>Honey</GivenName>
              <Surname>Rider</Surname>
            </PersonName>
            <!--DETAILS OMITTED -->
          </Customer>
        </Profile>
      </ProfileInfo>
    </Profiles>
  </ResGuest>
</ResGuests>

  • No labels