Minimum Content XML Sample
The minimum amount of nodes that can be expected in a pmsXchange reservation.
<OTA_ResRetrieveRS
xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2005-08-01T09:32:47+08:00" EchoToken="echo-abc123">
<Success/>
<ReservationsList>
<HotelReservation CreateDateTime="2007-12-09T08:51: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>
<RoomTypes>
<RoomType RoomTypeCode="DR"/>
</RoomTypes>
<RatePlans>
<RatePlan RatePlanCode="RAC" EffectiveDate="2013-03-12" ExpireDate="2013-03-15"/>
</RatePlans>
<RoomRates>
<RoomRate RoomTypeCode="DR" RatePlanCode="RAC" NumberOfUnits="1">
<Rates>
<Rate UnitMultiplier="3" RateTimeUnit="Day" EffectiveDate="2013-03-12" ExpireDate="2013-03-15"/>
</Rates>
</RoomRate>
</RoomRates>
<GuestCounts>
<GuestCount AgeQualifyingCode="10" Count="1"/>
</GuestCounts>
<TimeSpan Start="2013-03-12" End="2013-03-15"/>
<BasicPropertyInfo HotelCode="10107"/>
</RoomStay>
</RoomStays>
<ResGlobalInfo>
<HotelReservationIDs>
<HotelReservationID ResID_Type="14" ResID_Value="001"/>
</HotelReservationIDs>
</ResGlobalInfo>
</HotelReservation>
</ReservationsList>
</OTA_ResRetrieveRS>
If the PMS does not support rate plans it is possible to receive a HotelReservation where the RoomStay does not have details about RatePlans.
<OTA_ResRetrieveRS
xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2005-08-01T09:32:47+08:00" EchoToken="echo-abc123">
<Success/>
<ReservationsList>
<HotelReservation CreateDateTime="2007-12-09T08:51: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>
<RoomTypes>
<RoomType RoomTypeCode="DR"/>
</RoomTypes>
<RoomRates>
<RoomRate RoomTypeCode="DR" NumberOfUnits="1">
<Rates>
<Rate UnitMultiplier="3" RateTimeUnit="Day" EffectiveDate="2013-03-12" ExpireDate="2013-03-15"/>
</Rates>
</RoomRate>
</RoomRates>
<GuestCounts>
<GuestCount AgeQualifyingCode="10" Count="1"/>
</GuestCounts>
<TimeSpan Start="2013-03-12" End="2013-03-15"/>
<BasicPropertyInfo HotelCode="10107"/>
</RoomStay>
</RoomStays>
<ResGlobalInfo>
<HotelReservationIDs>
<HotelReservationID ResID_Type="14" ResID_Value="001"/>
</HotelReservationIDs>
</ResGlobalInfo>
</HotelReservation>
</ReservationsList>
</OTA_ResRetrieveRS>
Cancellation
It is possible that a cancellation only contain the unique identifiers of the reservation to be cancelled. This will only happen if the original reservation was not stored in pmsXchange. The receiving PMS can process the cancellation if it contains the original reservation or it can respons with an Error message if the cancellation cannot be processed due to missing information.
<OTA_ResRetrieveRS
xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2005-08-01T09:32:47+08:00" EchoToken="echo-abc123">
<Success/>
<ReservationsList>
<HotelReservation LastModifyDateTime="2012-09-09T08:51:45" ResStatus="Cancel">
<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"/>
<ResGlobalInfo>
<HotelReservationIDs>
<HotelReservationID ResID_Type="14" ResID_Value="RES_3243525"/>
</HotelReservationIDs>
</ResGlobalInfo>
</HotelReservation>
</ReservationsList>
</OTA_ResRetrieveRS>