Reservation XML Sample
This example provides a general XML for a reservation that includes a service at the RoomStay level, along with a guarantee using a virtual credit card. This example is designed to demonstrate the structure and key elements for such a booking scenario. Variations of this reservation can be created based on specific requirements, as long as they adhere to the specifications.
The <!-- Additional ... elements -->
comments within the XML indicate areas where further elements may be added if needed for other configurations.
<OTA_HotelResNotifRQ
xmlns="http://www.opentravel.org/OTA/2003/05" ResStatus="Commit" EchoToken="ed8835ff-6198-4f38-b589-3058397f677c" TimeStamp="2024-07-06T15:27:41+00:00" Version="1.0">
<POS>
<Source>
<RequestorID Type="22" ID="ABC"/>
<BookingChannel Primary="true">
<CompanyName Code="ABC">Channel Name</CompanyName>
</BookingChannel>
</Source>
<Source>
<BookingChannel Primary="false">
<CompanyName Code="CBA">Affiliated Channel</CompanyName>
</BookingChannel>
</Source>
</POS>
<HotelReservations>
<HotelReservation CreateDateTime="2024-07-06T15:27:41+00:00" LastModifyDateTime="2024-07-06T15:27:41+00:00">
<UniqueID Type="14" ID="123456789"/>
<RoomStays>
<RoomStay PromotionCode="AUTUNM2024">
<RoomTypes>
<RoomType RoomTypeCode="TPL">
<RoomDescription Name="Triple Room">Double bed and single bed.</RoomDescription>
</RoomType>
</RoomTypes>
<RatePlans>
<RatePlan RatePlanCode="BAR">
<RatePlanDescription>Best Available Rate.</RatePlanDescription>
<Commission>
<CommissionPayableAmount Amount="60.00" CurrencyCode="EUR"/>
</Commission>
<MealsIncluded MealPlanCode="14"/>
<!-- Additional MealsIncluded elements -->
</RatePlan>
</RatePlans>
<RoomRates>
<RoomRate RoomTypeCode="TPL" RatePlanCode="BAR" NumberOfUnits="1">
<Rates>
<Rate UnitMultiplier="1" RateTimeUnit="Day" EffectiveDate="2024-10-05" ExpireDate="2024-10-08">
<Base AmountBeforeTax="558.00" AmountAfterTax="620.00" CurrencyCode="EUR">
<Taxes>
<Tax Type="inclusive" Code="35" Amount="62.00" CurrencyCode="EUR"/>
<!-- Additional Tax elements -->
</Taxes>
</Base>
<Total AmountBeforeTax="558.00" AmountAfterTax="620.00" CurrencyCode="EUR">
<Taxes>
<Tax Type="inclusive" Code="35" Amount="62.00" CurrencyCode="EUR"/>
<!-- Additional Tax elements -->
</Taxes>
</Total>
</Rate>
</Rates>
<!-- Additional Rates elements -->
</RoomRate>
</RoomRates>
<GuestCounts>
<GuestCount AgeQualifyingCode="10" Count="2"/>
<GuestCount AgeQualifyingCode="8" Age="7" Count="1"/>
<GuestCount AgeQualifyingCode="8" Age="10" Count="1"/>
<GuestCount AgeQualifyingCode="7" Count="1"/>
<!-- Additional GuestCount elements -->
</GuestCounts>
<TimeSpan Start="2024-10-05" End="2024-10-08"/>
<Total AmountBeforeTax="565.50" AmountAfterTax="628.25" CurrencyCode="EUR">
<Taxes>
<Tax Type="inclusive" Code="35" Amount="62.75" CurrencyCode="EUR"/>
<!-- Additional Tax elements -->
</Taxes>
</Total>
<BasicPropertyInfo HotelCode="HOTELCODE" HotelName="The Hotel Name"/>
<ResGuestRPHs>
<ResGuestRPH RPH="1"/>
<!-- Additional ResGuestRPH elements -->
</ResGuestRPHs>
<ServiceRPHs>
<ServiceRPH RPH="1"/>
<!-- Additional ServiceRPH elements -->
</ServiceRPHs>
<Comments>
<Comment>
<Text>Please, add some extra towels</Text>
</Comment>
</Comments>
<SpecialRequests>
<SpecialRequest Name="Extra Bed">
<Text>Yes</Text>
</SpecialRequest>
</SpecialRequests>
<Services>
<Service ServiceInventoryCode="EXTRA_BED" Inclusive="true" ServiceRPH="1" Quantity="1" ID="12346">
<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="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>
</Total>
<RateDescription>
<Text>Extra person charge EUR 2.50 per day for cot</Text>
</RateDescription>
</Price>
<ServiceDetails>
<TimeSpan Start="2024-10-05" End="2024-10-08"/>
</ServiceDetails>
</Service>
<!-- Additional Service elements -->
</Services>
</RoomStay>
<!-- Additional RoomStay elements -->
</RoomStays>
<ResGuests>
<ResGuest ResGuestRPH="1" ArrivalTime="14:00:00" PrimaryIndicator="1">
<Profiles>
<ProfileInfo>
<Profile ProfileType="1">
<Customer>
<PersonName>
<NamePrefix>Mr</NamePrefix>
<GivenName>John</GivenName>
<Surname>Smith</Surname>
</PersonName>
<Telephone PhoneNumber="+61123456789"/>
<Email>test@siteminder.com</Email>
<Address>
<AddressLine>200 George St</AddressLine>
<AddressLine>Level 3</AddressLine>
<CityName>Sydney</CityName>
<PostalCode>2000</PostalCode>
<StateProv>NSW</StateProv>
<CountryName>Australia</CountryName>
</Address>
<CustLoyalty ProgramID="LoyaltyProgramName" MembershipID="123456789" ExpireDate="2020-12-31"/>
<Document DocID="987654321P" DocType="5" DocHolderNationality="AU" BirthDate="1996-10-05" Gender="Male" BirthCountry="AU" BirthPlace="AU" EffectiveDate="2015-10-05" ExpireDate="2025-10-05" DocIssueAuthority="DAFT" DocIssueLocation="AU" DocIssueStateProv="AU" DocIssueCountry="AU">
<DocHolderName>John Smith</DocHolderName>
</Document>
</Customer>
</Profile>
</ProfileInfo>
</Profiles>
</ResGuest>
<!-- Additional ResGuest elements -->
</ResGuests>
<ArrivalTransport>
<TransportInfo Type="Air" ID="QF123" Time="2024-10-05T13:00:00"/>
</ArrivalTransport>
<DepartureTransport>
<TransportInfo Type="Air" ID="QF321" Time="2024-10-08T17:00:00"/>
</DepartureTransport>
<ResGlobalInfo>
<HotelReservationIDs>
<HotelReservationID ResID_Type="14" ResID_Value="123456789"/>
</HotelReservationIDs>
<Comments>
<Comment>
<Text>High floor if possible</Text>
</Comment>
<!-- Additional Comment elements -->
</Comments>
<Total CurrencyCode="EUR" AmountBeforeTax="565.50" AmountAfterTax="628.25">
<Taxes>
<Tax Type="inclusive" Code="35" Amount="62.75" CurrencyCode="EUR"/>
</Taxes>
<TPA_Extensions>
<Total includesCommission="true"/>
</TPA_Extensions>
</Total>
<Guarantee>
<GuaranteesAccepted>
<GuaranteeAccepted>
<PaymentCard CardType="1" CardCode="MC" CardNumber="4321432143214321" SeriesCode="123" ExpireDate="1234">
<CardHolderName>John Smith</CardHolderName>
<TPA_Extensions>
<VirtualCreditCard isVCC="true" VCCActivationDate="2024-09-05" VCCCurrencyCode="EUR" VCCCurrentBalance="628.25" VCCDeactivationDate="2024-10-08"/>
</TPA_Extensions>
</PaymentCard>
</GuaranteeAccepted>
</GuaranteesAccepted>
</Guarantee>
<Profiles>
<ProfileInfo>
<Profile ProfileType="1">
<Customer>
<PersonName>
<NamePrefix>Mr</NamePrefix>
<GivenName>John</GivenName>
<Surname>Smith</Surname>
</PersonName>
<Telephone PhoneNumber="0266564100"/>
<Email>johnsmith@mail.com</Email>
<Address>
<AddressLine>1 George St</AddressLine>
<AddressLine>CBD</AddressLine>
<CityName>Sydney</CityName>
<PostalCode>2000</PostalCode>
<StateProv>NSW</StateProv>
<CountryName>Australia</CountryName>
</Address>
</Customer>
</Profile>
</ProfileInfo>
<ProfileInfo>
<Profile ProfileType="3">
<CompanyInfo ID="CORP">
<CompanyName>COMPANY</CompanyName>
<TelephoneInfo PhoneNumber="0266564101"/>
<Email>contact@company.com</Email>
<AddressInfo>
<AddressLine>3 George St</AddressLine>
<AddressLine>CBD</AddressLine>
<CityName>Sydney</CityName>
<PostalCode>2000</PostalCode>
<StateProv>NSW</StateProv>
<CountryName>Australia</CountryName>
</AddressInfo>
</CompanyInfo>
</Profile>
</ProfileInfo>
<ProfileInfo>
<Profile ProfileType="4">
<UniqueID ID="56789"/>
<CompanyInfo>
<CompanyName>TRAVEL AGENT LTD</CompanyName>
<TelephoneInfo PhoneNumber="0266564100"/>
<Email>contact@travelagent.com</Email>
<AddressInfo>
<AddressLine>4 George St</AddressLine>
<AddressLine>CBD</AddressLine>
<CityName>Sydney</CityName>
<PostalCode>2000</PostalCode>
<StateProv>NSW</StateProv>
<CountryName>Australia</CountryName>
</AddressInfo>
</CompanyInfo>
</Profile>
</ProfileInfo>
</Profiles>
</ResGlobalInfo>
</HotelReservation>
</HotelReservations>
</OTA_HotelResNotifRQ>
Last updated