OTA_ResRetrieveRS
OTA_ResRetrieveRS
The message consists of a list of HotelReservation elements. The content may vary since pmsXchange delivers reservations from multiple upstream sources (Booking Channels), many of which have significantly different reservation formats and data structures.
In general, the following applies to HotelReservations:
A HotelReservation represents a single reservation made with an upstream system.
A HotelReservation can include one or more RoomStays, one for each booked room type.
A RoomStay signifies a stay in a specific room type over a continuous timespan; non-continuous stays (split stays) will result in multiple RoomStays.
A HotelReservation may have zero, one, or multiple ResGuests associated with either the RoomStay they occupy or the reservation itself.
HotelReservation
<OTA_ResRetrieveRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2025-12-09T08:55:47+00:00" EchoToken="echo-abc123">
<Success/>
<ReservationsList>
<HotelReservation CreateDateTime="2025-12-09T08:51:45.000+0000" ResStatus="Book">
<POS>
<Source>
<!-- ... other elements and attributes have been omitted for brevity ... -->
</Source>
</POS>
<UniqueID Type="14" ID="EXP-2025"/>
<UniqueID Type="16" ID="hltest89ti7rbntest" ID_Context="MESSAGE_UNIQUE_ID"/>
Source
<POS>
<Source>
<RequestorID Type="22" ID="SITEMINDER"/>
<BookingChannel Primary="true" Type="7">
<CompanyName Code="EXP">Expedia</CompanyName>
</BookingChannel>
</Source>
<!-- Additional Source element -->
</POS>
<POS>
<Source>
<RequestorID Type="22" ID="SITEMINDER"/>
<BookingChannel Primary="true" Type="7">
<CompanyName Code="EXP">Expedia</CompanyName>
</BookingChannel>
</Source>
<Source>
<BookingChannel Primary="false" Type="7">
<CompanyName Code="EXPA">Expedia Affilate Account</CompanyName>
</BookingChannel>
</Source>
</POS>
RoomStays
<RoomStays>
<RoomStay MarketCode="Corporate" PromotionCode="STAYANDSAVE" SourceOfBusiness="Radio">
<RoomTypes>
<RoomType RoomType="Double Room" RoomTypeCode="DR" NonSmoking="true" Configuration="2 Beds and 1 cot">
<!-- Additional RoomType elements -->
</RoomType>
</RoomTypes>
<RatePlans>
<!-- Additional RatePlan elements -->
</RatePlan>
</RatePlans>
<RoomRates>
<RoomRate RoomTypeCode="DR" RatePlanCode="RAC1" NumberOfUnits="1">
<!-- Additional RoomRate elements -->
</RoomRate>
</RoomRates>
<!-- Additional RoomStay elements -->
</RoomStay>
</RoomStays>
RoomTypes
<RoomTypes>
<RoomType RoomType="Double Room" RoomTypeCode="DR" NonSmoking="true" Configuration="2 Beds and 1 cot">
<RoomDescription>
<Text>Double room</Text>
</RoomDescription>
<AdditionalDetails>
<AdditionalDetail Type="4" Code="PIA">
<DetailDescription>
<Text>Room paid in advance with credit card</Text>
</DetailDescription>
</AdditionalDetail>
<AdditionalDetail Type="5" Code="ECB">
<DetailDescription>
<Text>Continental breakfast included</Text>
</DetailDescription>
</AdditionalDetail>
</AdditionalDetails>
</RoomType>
</RoomTypes>
RatePlans
<RatePlans>
<RatePlan RatePlanCode="RAC1" EffectiveDate="2025-03-12" ExpireDate="2025-03-14" RatePlanName="RACK Rate1">
<RatePlanDescription>
<Text>Long Stay Discount</Text>
</RatePlanDescription>
<AdditionalDetails>
<AdditionalDetail Type="15" Code="EB1">
<DetailDescription>
<Text>Stay n Save promotion grants 10% discount</Text>
</DetailDescription>
</AdditionalDetail>
<AdditionalDetail Type="43">
<DetailDescription>
<Text>Continental breakfast included</Text>
</DetailDescription>
</AdditionalDetail>
</AdditionalDetails>
</RatePlan>
</RatePlans>
RoomRates
<RoomRates>
<RoomRate RoomTypeCode="DR" RatePlanCode="RAC1" NumberOfUnits="1">
<Rates>
<Rate UnitMultiplier="2" RateTimeUnit="Day" EffectiveDate="2025-03-12" ExpireDate="2025-03-14">
<Base AmountBeforeTax="100.00" AmountAfterTax="110.00" CurrencyCode="USD">
<Taxes Amount="10.00">
<Tax Code="19" Percent="10" Amount="10.00">
<TaxDescription>
<Text>GST 10 percent</Text>
</TaxDescription>
</Tax>
</Taxes>
</Base>
<Total AmountBeforeTax="102.50" AmountAfterTax="112.75" CurrencyCode="USD">
<Taxes Amount="10.25">
<Tax Code="19" Percent="10" Amount="10.25">
<TaxDescription>
<Text>GST 10 percent</Text>
</TaxDescription>
</Tax>
</Taxes>
</Total>
</Rate>
<!-- Additional Rate -->
</Rates>
<ServiceRPHs>
<ServiceRPH RPH="1"/>
<!-- Additional ServiceRPH -->
</ServiceRPHs>
</RoomRate>
<!-- Additional RoomRate -->
</RoomRates>
<RoomRates>
<RoomRate RoomTypeCode="TPL" RatePlanCode="BAR" NumberOfUnits="1">
<Rates>
<Rate UnitMultiplier="2" RateTimeUnit="Day" EffectiveDate="2025-10-05" ExpireDate="2025-10-07">
<Base AmountBeforeTax="153.00" AmountAfterTax="170.00" CurrencyCode="EUR"/>
<Total AmountBeforeTax="153.00" AmountAfterTax="170.00" CurrencyCode="EUR"/>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Start="2025-10-05" End="2025-10-07"/>
<Total AmountBeforeTax="306.00" AmountAfterTax="340.00" CurrencyCode="EUR">
This example shows daily rates when the same rate applies to both dates (2025-10-05 and 2025-10-06) and there are additional charges.
<RoomRates>
<RoomRate RoomTypeCode="TPL" RatePlanCode="BAR" NumberOfUnits="1">
<Rates>
<Rate UnitMultiplier="2" RateTimeUnit="Day" EffectiveDate="2025-10-05" ExpireDate="2025-10-07">
<Base AmountBeforeTax="153.00" AmountAfterTax="170.00" CurrencyCode="EUR"/>
<Total AmountBeforeTax="170.00" AmountAfterTax="188.00" CurrencyCode="EUR"/>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Start="2025-10-05" End="2025-10-07"/>
<Total AmountBeforeTax="340.00" AmountAfterTax="376.00" CurrencyCode="EUR">
<RoomRates>
<RoomRate RoomTypeCode="TPL" RatePlanCode="BAR" NumberOfUnits="1">
<Rates>
<Rate UnitMultiplier="1" RateTimeUnit="Day" EffectiveDate="2025-10-05" ExpireDate="2025-10-06">
<Base AmountBeforeTax="153.00" AmountAfterTax="170.00" CurrencyCode="EUR"/>
<!-- ... other elements and attributes have been omitted for brevity ... -->
</Rate>
<Rate UnitMultiplier="1" RateTimeUnit="Day" EffectiveDate="2025-10-06" ExpireDate="2025-10-07">
<Base AmountBeforeTax="180.00" AmountAfterTax="200.00" CurrencyCode="EUR"/>
<!-- ... other elements and attributes have been omitted for brevity ... -->
</Rate>
<Rate UnitMultiplier="1" RateTimeUnit="Day" EffectiveDate="2025-10-07" ExpireDate="2025-10-08">
<Base AmountBeforeTax="225.00" AmountAfterTax="250.00" CurrencyCode="EUR"/>
<!-- ... other elements and attributes have been omitted for brevity ... -->
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Start="2025-10-05" End="2025-10-08"/>
<Total AmountBeforeTax="558.00" AmountAfterTax="620.00" CurrencyCode="EUR">
GuestCounts
<GuestCounts>
<GuestCount AgeQualifyingCode="10" Count="2"/>
<GuestCount AgeQualifyingCode="8" Count="1"/>
<GuestCount AgeQualifyingCode="7" Count="1"/>
</GuestCounts>
TimeSpan
<TimeSpan Start="2025-10-05" End="2025-10-08"/>
RoomStay Total
<Total CurrencyCode="USD" AmountBeforeTax="500.00" AmountAfterTax="615.00">
<Taxes Amount="115.00">
<Tax Amount="50.00" Code="10">
<TaxDescription>
<Text>Occupancy Tax</Text>
</TaxDescription>
</Tax>
<Tax Amount="65.00" Code="13">
<TaxDescription>
<Text>Sales Tax</Text>
</TaxDescription>
</Tax>
</Taxes>
</Total>
BasicPropertyInfo
<BasicPropertyInfo HotelCode="HOTELCODE" HotelName="The Hotel Name"/>
ServiceRPHs
<ServiceRPHs>
<ServiceRPH RPH="1"/>
<!-- Additional ServiceRPH elements -->
</ServiceRPHs>
ResGuestRPHs
<ResGuestRPHs>
<ResGuestRPH RPH="1"/>
<!-- Additional ResGuestRPH elements -->
</ResGuestRPHs>
Comments
<Comments>
<Comment>
<Text>See the room stay comments here</Text>
</Comment>
</Comments>
Services
<Services>
<Service ServiceInventoryCode="EXTRA_BED" Inclusive="true" ServiceRPH="1" Quantity="1" ID="12346" ID_Context="CHANNEL" Type="18">
<Price>
<Base AmountBeforeTax="2.50" AmountAfterTax="2.75" CurrencyCode="EUR">
<Taxes Amount="0.25">
<Tax Code="19" Percent="10" Amount="0.25">
<TaxDescription>
<Text>GST 10 percent</Text>
</TaxDescription>
</Tax>
</Taxes>
</Base>
<Total AmountBeforeTax="5.00" AmountAfterTax="5.50" CurrencyCode="EUR">
<Taxes Amount="0.50">
<Tax Code="19" Percent="10" Amount="0.50">
<TaxDescription>
<Text>GST 10 percent</Text>
</TaxDescription>
</Tax>
</Taxes>
</Total>
<RateDescription>
<Text>Extra person charge EUR 2.50 per day for cot</Text>
</RateDescription>
</Price>
<ServiceDetails>
<TimeSpan Start="2025-03-12" End="2025-03-14"/>
</ServiceDetails>
</Service>
<!-- Additional Service elements -->
</Services>
ResGuests
<ResGuests>
<ResGuest ResGuestRPH="1" ArrivalTime="10:30:00" Age="8" PrimaryIndicator="true">
<Profiles>
<ProfileInfo>
<UniqueID Type="16" ID="12345" ID_Context="CHANNEL"/>
<Profile ProfileType="1">
<Customer>
<PersonName>
<NamePrefix>Mr</NamePrefix>
<GivenName>James</GivenName>
<MiddleName>Herbert</MiddleName>
<Surname>Bond</Surname>
</PersonName>
<Telephone PhoneNumber="555-1234"/>
<Telephone PhoneNumber="555-4321" PhoneUseType="4"/>
<Telephone PhoneNumber="0411444000" PhoneTechType="5"/>
<Telephone PhoneNumber="213451515" PhoneTechType="3"/>
<Email>james.bond@mi5.co.uk</Email>
<Address>
<AddressLine>Claretta House</AddressLine>
<AddressLine>Tower Bridge Close</AddressLine>
<CityName>London</CityName>
<PostalCode>EC1 2PG</PostalCode>
<StateProv>Middlesex</StateProv>
<CountryName>United Kingdom</CountryName>
<CompanyName>MI6</CompanyName>
</Address>
<CustLoyalty MembershipID="1234567890" ProgramID="FrequentFlyer" ExpiryDate="2017-03-31"/>
</Customer>
</Profile>
</ProfileInfo>
</Profiles>
<Comments>
<Comment Name="ArrivalDetails">
<Text>Arriving by coach</Text>
</Comment>
<Comment Name="DepartureDetails">
<Text>Departure flight QF123</Text>
</Comment>
</Comments>
</ResGuest>
<!-- Additional ResGuest elements -->
</ResGuests>
ResGlobalInfo
<ResGlobalInfo>
<HotelReservationIDs>
<HotelReservationID ResID_Type="14" ResID_Value="123456789"/>
</HotelReservationIDs>
<!-- ... other elements and attributes have been omitted for brevity ... -->
</ResGlobalInfo>
ResComments
<Comments>
<Comment>
<Text>See the reservation comments here</Text>
</Comment>
<!-- Additional Comment elements -->
</Comments>
ReservationTotal
<Total CurrencyCode="EUR" AmountBeforeTax="558.00" AmountAfterTax="620.00">
<Taxes Amount="62.00">
<Tax Code="35" Amount="62.00" Percent="10" CurrencyCode="EUR"/>
</Taxes>
</Total>
Fees
<Fees>
<Fee TaxInclusive="true" Type="Inclusive" Code="27" Amount="5.00">
<Taxes Amount="0.45"/>
<Description Name="Commission">
<Text>Commission - $5 flat fee</Text>
</Description>
</Fee>
</Fees>
Guarantee
<Guarantee>
<GuaranteesAccepted>
<GuaranteeAccepted>
<PaymentCard CardCode="VI" CardType="1" CardNumber="4444444444444444" ExpireDate="1114">
<CardHolderName>John Smith</CardHolderName>
</PaymentCard>
</GuaranteeAccepted>
</GuaranteesAccepted>
<Comments>
<Comment Name="PaymentReferenceId">
<Text>123124151616</Text>
</Comment>
</Comments>
<GuaranteeDescription>
<Text>Payment accepted up front</Text>
</GuaranteeDescription>
</Guarantee>
<Guarantee>
<GuaranteesAccepted>
<GuaranteeAccepted>
<PaymentCard CardType="1" CardCode="MC" CardNumber="4321432143214321" ExpireDate="1234">
<CardHolderName>John Smith</CardHolderName>
<ThreeDomainSecurity>
<Results ThreeDSVersion="1.0.2" XID="z9UKb06xLziZMOXBEmWSVA1kwG0=" CAVV="MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=" ECI="05" />
</ThreeDomainSecurity>
</PaymentCard>
</GuaranteeAccepted>
</GuaranteesAccepted>
</Guarantee>
<Guarantee>
<GuaranteesAccepted>
<GuaranteeAccepted/>
</GuaranteesAccepted>
<Comments>
<Comment Name="PaymentGatewayName">
<Text>Paypal</Text>
</Comment>
<Comment Name="PaymentGatewayAuthCode">
<Text>123143253467</Text>
</Comment>
<Comment Name="PaymentReferenceId">
<Text>123124151616</Text>
</Comment>
</Comments>
<GuaranteeDescription>
<Text>Payment accepted up front</Text>
</GuaranteeDescription>
</Guarantee>
DepositPayments
<DepositPayments>
<GuaranteePayment>
<AmountPercent Amount="30.00" CurrencyCode="USD" Percent="20.00"/>
<Description>
<Text>20% Deposit</Text>
</Description>
</GuaranteePayment>
</DepositPayments>
<Guarantee>
<GuaranteesAccepted>
<GuaranteeAccepted>
<PaymentCard CardCode="VI" CardType="1" CardNumber="4444444444444444" ExpireDate="1114">
<CardHolderName>Bruce Wayne</CardHolderName>
</PaymentCard>
</GuaranteeAccepted>
</GuaranteesAccepted>
</Guarantee>
<DepositPayments>
<GuaranteePayment>
<AmountPercent Amount="30.00" CurrencyCode="USD" Percent="20.00"/>
<Description>
<Text>20% Deposit</Text>
</Description>
</GuaranteePayment>
</DepositPayments>
Customer / Company / TravelAgent
<Profiles>
<ProfileInfo>
<UniqueID Type="16" ID="12345" ID_Context="CHANNEL"/>
<Profile ProfileType="1">
<Customer>
<Document DocID="P123456" DocType="18" Gender="unknown" BirthDate="1920-02-29" BirthCountry="US" BirthPlace="Sydney" DocHolderNationality="AU" DocIssueAuthority="ImmigionNNNNNNNN" DocIssueCountry="AU" DocIssueLocation="Sydney" DocIssueStateProvince="QLD" EffectiveDate="2020-01-01" ExpireDate="2025-01-01">
<DocumentHolderName>James Herbert</DocumentHolderName>
</Document>
<PersonName>
<NamePrefix>Mr</NamePrefix>
<GivenName>James</GivenName>
<MiddleName>Herbert</MiddleName>
<Surname>Bond</Surname>
</PersonName>
<Telephone PhoneNumber="555-1234"/>
<Telephone PhoneNumber="555-4321" PhoneUseType="4"/>
<Telephone PhoneNumber="0411444000" PhoneTechType="5"/>
<Telephone PhoneNumber="213451515" PhoneTechType="3"/>
<Email>james.bond@mi5.co.uk</Email>
<Address>
<AddressLine>Claretta House</AddressLine>
<AddressLine>Tower Bridge Close</AddressLine>
<CityName>London</CityName>
<PostalCode>EC1 2PG</PostalCode>
<StateProv>Middlesex</StateProv>
<CountryName>United Kingdom</CountryName>
<CompanyName>MI6</CompanyName>
</Address>
<CustLoyalty MembershipID="1234567890" ProgramID="FrequentFlyer" ExpiryDate="2017-03-31"/>
</Customer>
</Profile>
</ProfileInfo>
<!-- Additional ProfileInfo elements -->
</Profiles>
<Profiles>
<ProfileInfo>
<Profile ProfileType="1">
<!-- ... other elements and attributes have been omitted for brevity ... -->
</Profile>
</ProfileInfo>
<!-- Additional ProfileInfo element -->
<ProfileInfo>
<UniqueID Type="16" ID="4444" ID_Context="IATA"/>
<Profile ProfileType="3">
<Customer>
<PersonName>
<NamePrefix>Joe</NamePrefix>
<Surname>Smith</Surname>
</PersonName>
<Telephone PhoneNumber="555-1234"/>
<Address>
<CompanyName>American Express</CompanyName>
</Address>
</Customer>
</Profile>
</ProfileInfo>
</Profiles>
<Profiles>
<ProfileInfo>
<Profile ProfileType="1">
<!-- ... other elements and attributes have been omitted for brevity ... -->
</Profile>
</ProfileInfo>
<!-- Additional ProfileInfo element -->
<ProfileInfo>
<UniqueID Type="16" ID="STA" ID_Context="CHANNEL"/>
<UniqueID Type="16" ID="12312414" ID_Context="IATA"/>
<Profile ProfileType="4">
<Customer>
<PersonName>
<NamePrefix>Mis</NamePrefix>
<Surname>Moneypenny</Surname>
</PersonName>
<Telephone PhoneNumber="555-1234"/>
<Address>
<CompanyName>STA Travel</CompanyName>
</Address>
</Customer>
</Profile>
</ProfileInfo>
</Profiles>
Last updated