Skip to end of metadata
Go to start of metadata

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

Compare with Current View Version History

« Previous Version 4 Current »

Hotel Booking Rule Response contains room rate information, information about the cancellation policy, and a list of required information to complete booking.

OTA_HotelBookingRuleRS*:

*mandatory

Element

Attribute

Type

Description

Min…Max occurs

Success

For more information see Common Data Description section in Glossary.

Warnings/Warning

RuleMessage*

 

 

Unites all information about booking rules for the chosen offer.

1…1

RuleMessage/StatusApplication*

 

 

Represents basic information about the offer.

 1...1

BookingCode*

string

Must be equal to BookingCode from the availability response.

1...1

RuleMessage/StatusApplication/RoomRates/RoomRate*

 

 

Contains basic information about the offer.

1…*

Amount*

decimal

The price after taxes, if any has been applied.

1...1

Start*

yyyy-mm-dd

Defines start day of stay.

1...1

End*

yyyy-mm-dd

Defines end day of stay.

1...1

CurrencyCode*

string

For more information see Common Data Description section in Glossary.

1...1

RuleMessage/BookingRules/BookingRule*

 

 

Represents main information about offer rules.

 1...1

OTA_HotelBookingRuleRS/RuleMessage/BookingRules/BookingRule*:

Element

Attribute

Type

Description

Min…Max occurs

CancelPenalties/CancelPenalty

 

 

For more information see Hotel Availability Response section.

0...*

Description

 

 

Contains a collection of offer descriptions.

0...*

Name

String

Name of description.

0...1

Description/Text

 

String

Offer description.

0…1

RequiredGuestDetails*

 

 

A collection of required guest details that are part of the booking requirements.

1…1

RequiredGuestDetails/Guest*

 

 

Represents guest details for the specific guest.

 

AgeQualifyingCode*

 

For more information see Common Data Description section in Glossary.

1...1

PrimaryIndicator*

boolean

Indicates is required information provided for the tour lead or not.

1...1

Age

integer (0 - 150)

Represents the age of the guest.

0…1

RequiredGuestDetails/Guest/RequiredGuestDetail*

 

 

Collection of required guest details.

1...*

Type*

String

Name of the required detail. Possible values are: GivenName, Surname, BirthDate, Email, DocumentNumber, DocumentType, PhoneNumber, AddressLine, CityName, CountryName, PostalCode, CitizenCountryName

1...1

 Hotel Booking Rule Response Sample XML
<OTA_HotelBookingRuleRS xmlns="http://www.opentravel.org/OTA/2003/05" EchoToken="Token" Version="2.0">
    <Success/>
    <RuleMessage>
        <StatusApplication BookingCode="1001">
            <RoomRates>
                <RoomRate Amount="140.00" CurrencyCode="USD" End="2024-09-02" Start="2024-09-01"/>
            </RoomRates>
        </StatusApplication>
        <BookingRules>
            <BookingRule>
                <CancelPenalties>
                    <CancelPenalty End="2024-09-01T00:00:00" Start="2024-04-11T00:00:00">
                        <AmountPercent Amount="140.00" CurrencyCode="USD" Percent="100"/>
                        <PenaltyDescription>
                            <Text>Non refundable</Text>
                        </PenaltyDescription>
                    </CancelPenalty>
                </CancelPenalties>
                <Description Name="Non Refundable Room">
                    <Text>Non Refundable Room</Text>
                </Description>
                <RequiredGuestDetails>
                    <Guest AgeQualifyingCode="10" PrimaryIndicator="true">
                        <RequiredGuestDetail Type="Surname"/>
                        <RequiredGuestDetail Type="GivenName"/>
                        <RequiredGuestDetail Type="Age"/>
                    </Guest>
                    <Guest AgeQualifyingCode="10" PrimaryIndicator="false">
                        <RequiredGuestDetail Type="BirthDate"/>
                    </Guest>
                </RequiredGuestDetails>
            </BookingRule>
        </BookingRules>
    </RuleMessage>
</OTA_HotelBookingRuleRS>
  • No labels