Enhanced Shopping Transaction Response Message Format

Element Path

Attribute

Occ

Type

Notes

HotelML/Head

1

This is the standard element containing some transaction metadata and any applicable errors or warnings.

HotelML/Property

0..200

Occurs once for each requested property or once per requested property that is available, depending on the value of RateCriteria/@ReturnUnavailable in the request message.

xml:lang

0..1

Char

Identifies the language of the response message that was returned by the hotel’s CRS.

The language will normally be the requested language or English if the requested language is not available. However, if the affiliate is configured to accept response messages with unmatched languages, RatGain will return the response to the affiliate in whichever language the hotel’s CRS has provided

Code

1

Char

Chain and property code, separated by a semi-colon – e.g. “UI;AB1234”

DataOrigin

0..1

Enum.

Indicates whether the response was generated from the UltraDirect transaction cache or the source (CRS). Values are: “Cache” or “Source”. Only returned Head/Route/@RequestedAccuracy is supplied in the request

DataAge

0..1

Date &

time

The date and timestamp of the response. If the response was generated from the cache then this is the timestamp of when it was added to the cache). The format is “2011-05-08T14:28:01.268-00:00”. Only returned Head/Route/@RequestedAccuracy is supplied in the request

Token

0..1

Token generated by UltraDirect

HotelML/Property/Rate/RatePlan

0..M

Code

1

Char 10

Rate plan code. Only returned when Status is “Open”. This code should be used for any subsequent transactions for this rate, such as PreBook & Rate Rules or Booking.

RequestedRatePlanCode

0..1

Char 10

If the rate plan corresponds to a rate plan in the request message, the requested rate plan code is echoed back in this attribute.

For example, if rate plan “COR” was requested and it maps to rate plans “ABC” and “XYZ” in the CRS then one RatePlan may be returned with Code=“ABC” and RequestedRatePlanCode=“COR”, and another returned with Code=“XYZ” and RequestedRatePlanCode=“COR”.

In case of the negotiated rate plan mapped in the Account Author, the rate plan against the configured Negotiated rate plan code mapped will be returned.

Status

1

Enum.

The status of the rate plan. Values are: “Open” – rate plan is available

“Closed” – this is only returned for requested rate plans that are closed

“Unknown” – this is returned when the status of the requested rate plan is not known.

ClosedReason

0..1

Enum.

Optionally provides additional information if the Status is “Closed” or

“Unknown”:

“Unavailable” – rate plan code is valid but not available for the specified dates of stay etc.

“NotFound” – rate plan code is not found

“Restricted” – the requestor does not have access to the rate plan

“Unknown” – no additional information

Commissionable

Status

0..1

Enum.

Specifies whether the rate is commissionable. Values are: “Commissionable”, “NonCommissionable” and “Unknown”

Description

0..1

Char

Rate plan description

ExactMatch

0..1

Boolean

InDate

0..1

Date

Arrival date, in format “2023-07-13”

OutDate

0..1

Date

Departure date in format “2023-07-16”

Indicator

0..1

Enum.

Rate plan type. Values are:

BusinessStandard, Consortium, Convention, Corporate, Credential, FreqAuto, FreqGuest, FreqFlyer, Government, IATA, Inclusive, Negotiated, Package, Privileged, PseudoCity, SearchQualifier

MarketingText1

0..1

Char 63

The first line of marketing text

MarketingText2

0..1

Char 63

The second line of marketing text

CredentialsRequired

0..1

Boolean

Indicates whether some form of credentials are required at check-in, such as a AAA ID card, Government card, or any other form of ID required to book a special rate.

NonRefundableStay

0..1

Boolean

Indicates whether the rate is non-refundable.

HotelML/Property/Rate/RatePlan/Aut oInfo

0..5

Code

1

Char 25

Auto Frequent Traveler Number

HotelML/Property/Rate/RatePlan/CorpInfo

0..1

Code

1

Char 25

Corporate customer number

HotelML/Property/Rate/RatePlan/FlyerInfo

0..5

Code

1

Char 25

Frequent Flyer Number

HotelML/Property/Rate/RatePlan/FreqGuest

0..1

Code

1

Char 25

Frequent Guest Number

HotelML/Property/Rate/RatePlan/AdditionalDescription

0..M

Code

1

Integer

Used to provide additional descriptive information where there are no specific fields elsewhere in the message. All codes in the OpenTravl Alliance ADT code list are supported.

Text

0..1

Char

Descriptive text – type is specified by AdditionalDescriptionCode

HotelML/Property/Rate/RatePlan/RoomType

0..M

Some hotel chains return multiple RatePlan elements, each containing multiple RoomType elements.

Other CRSs return multiple RatePlan elements each containing only a single RoomType element – i.e. the RatePlan is repeated for each combination of rate plan and room type.

BookableRate

0..1

Decimal

The rate at which the room type may be booked

CalculationMethod

0..1

Specify how the BookableRate is calculated. It is only returned if a specific calculation method was requested, The method in the response should be the same as in the request but some CRSs may ignore the requested method. If the CRS does not specify the calculation method, this attribute will be omitted.

Valid values are:

“First” – rate for the first night

“Highest” – highest nightly rate

“Average” – average nightly rate

“Frequent” – most frequently occurring rate

Code

1

Char 10

Room type code

NativeRoomCode

0..1

StandardRoomType

0..1

Char 4

Marriott Only – HRS Room Type Code

CorpInfoRequired

0..1

Boolean

Denotes if a corporate ID is required to book the room at the indicated rate.

ExclusiveRateToVend or

0..1

Boolean

Denotes if the rate is exclusively available to a vendor.

Indicator

0..1

Enum.

Denotes the type of rate. "Privileged", "Corporate", "FreqGuest", "FreqFlyer", "FreqAuto", "Convention", "Negotiated", "BusinessStandard"

LimitedAvailability

0..1

Boolean

Denotes if the room type has limited availability.

NativeCurrency

0..1

Char 3

The native ISO currency code for the property

NumberOfRooms

0..1

Integer

The number of room types to be allocated

RoomInventoryCount

0..1

Integer

Number of available rooms at this rate.

RateChange

0..1

Boolean

Denotes if the rate has changed

RateForMultipleNights

0..1

Boolean

Denotes if the rate is only available for multiple nights

RateFrequency

0..1

Enum.

Denotes the frequency of the rate. "Daily", "Nightly", "Weekly", "Monthly", "PerStay", "Weekend"

RateOnRequest

0..1

Boolean

Denotes if the rate is only available on request.

RoomName

0..1

Char64

Room name

RoomDescription

0..1

Char

Textual description of the room.

RoomRateText

0..1

Char

Textual description of the room rate.

TotalRate

0..1

Decimal

The total rate for the room, including fees but excluding taxes

TotalRateInclusive

0..1

Decimal

The sum of nightly rates and taxes for the stay. Mutually exclusive with

TotalRateInclusiveCharges.

TotalRateInclusiveCha rges

0..1

Decimal

Total room rate inclusive of all known taxes, fees, and any extra charges. Only returned when transaction version is “Enhanced_V1”.

TotalTaxes

0..1

Decimal

Total tax amount.

TotalSurcharges

0..1

Decimal

Total Surcharges.

TaxQualifier

0..1

Enum.

Used to classify the bookable room rate. "AllInclusive", "NonInclusive", “Unknown”

RoomCategory

0..1

Enum.

Indicates the quality of the room. The following values are most commonly used:

Deluxe, Superior, Standard, Moderate, Economy, Premium

The attribute also supports the following values but these are generally not used in this context:

FirstClass, Budget, Upscale, Luxury, MeetingConvention, ResidentialApartment, Resort, CorporateBusinessTransient, AllSuite, ExtendedStay, Tourist, Efficiency

RoomFloor

0..1

Integer

Floor number where the room is located

NumberOfBeds

0..1

Integer

The number of beds per room.

BedType

0..1

Enum.

Indicates the type of bed. Values:

Single, Twin, Double, King, Queen, Futon, MurphyBed, SofaBed, TatamiMats, Rollaway, Crib

NumberOfPayingGues tsPerRoom

0..1

Integer

Indicates the number of guests per room that are included in the price.

NumberOfChildren

0..1

Integer

Number of guests that are classed as children by the hotel for pricing purposes (e.g. depending on their age).

RateCategoryMatch

Type

0..1

Enum.

Values:

“Requested” – this rate is for the requested category

“Alternative” – this rate is not for the requested category

RoomCountMatch

Type

0..1

Enum.

Values:

“Available” – the number of rooms requested are available

“Unavailable” – the number of rooms requested are not available

“ExceedsMaximum” – the number of requested rooms exceeded the maximum allowed

AdultCountMatch

Type

0..1

Enum.

Values:

“Allowed” – the number of adults requested are allowed for the number of bedding types/rooms

“NotAllowed” – the number of adults requested is not allowed for the number of bedding types/rooms

ChildCountMatch

Type

0..1

Enum.

Values:

“Allowed” - the number of adults requested are allowed for the number of bedding types/rooms

“NotAllowed” – the number of adults requested is not allowed for the number of bedding types/rooms

BedMatchType

0..1

Enum.

Values:

“Requested” – the number and type of beds requested are available

“Alternative” – a substitute has been offered for the requested number and type of beds

“Unknown” – the number and type of beds for this room is unknown

AdultRollawayMatchType

0..1

Enum.

Values:

“Available” – the number of adult rollaway requested are available and included in the nightly rate

“Unavailable” – the number of adult rollaways requested is not available

“Unknown” – the number or availability of adult rollaway is unknown

ChildRollawayMatchT

ype

0..1

Enum.

Values:

“Available” – the number of child rollaway requested are available and included in the nightly rate

“Unavailable” – the number of child rollaway requested are not available

“Unknown” – the number or availability of child rollaways is unknown

CribMatchType

0..1

Enum.

Values:

“Available” – the number of child rollaways requested are available and included in the nightly rate

“Unavailable” – the number of child rollaways requested are not available

“Unknown” – the number or availability of child rollaways is unknown

Property/Rate/RatePlan/RoomType/C

ommissionPolicy

0..1

Amount

0..1

Decimal

Commission payable expressed as a currency amount

Percentage

0..1

Decimal

Commission payable expressed as a percentage of the booking value

Property/Rate/RatePlan/RoomType/GuaranteePolicy

0..1

AcceptedCreditCard

0..1

Char

List of credit card codes accepted for guarantee

Required

0..1

Boolean

Specifies whether a guarantee is required

HoldTime

0..1

Time

The time (on the day of arrival) that the room will be held.

Property/Rate/RatePlan/RoomType/GuaranteePolicy/GuaranteeMethod

0..M

This element can occur once for each acceptable guarantee method.

Code

1

Integer

Identifies the method accepted for guarantee. Values are from the OpenTravel Alliance (OTA) PMT Code List. For example, credit card is defined as Code="5".

Property/Rate/RatePlan/RoomType/DepositPolicy

0..1

AcceptedCreditCard

0..1

Char

List of credit card codes accepted for deposit

Time

0..1

Time

The time the deposit is required.

Date

0..1

Date

The latest date that a deposit must be made. It can be used in conjunction with the existing Time attribute. If the Time attribute is specified without a Date then the day of arrival is assumed.

TimeInterval

0..1

Used with IntervalUnits and optionally IntervalOffsetType to specify the number of days/weeks prior to arrival (or after booking) that the deposit is required.

IntervalUnits

0..1

Enum

Specifies the type of TimeInterval. Values are “Hours”, “Days”, “Weeks”, “Months”

IntervalOffsetType

0..1

Enum.

Indicates whether the time interval (defined by the existing TimeInterval and IntervalUnits attribute) relates to the interval after the booking is made or before arrival (e.g. deposit is required X days after the booking was made or X days prior to arrival).

Values are: “BeforeArrival” and “AfterBooking”

Amount

0..1

Decimal

The deposit amount that is required by the deadline

Required

0..1

Boolean

Indicates whether a deposit is required.

Property/Rate/RatePlan/RoomType/DepositPolicy/GuaranteeMethod

0..1

This element can occur once for each acceptable deposit method.

Code

0..1

Integer

Identifies the method accepted for deposits. Values are from the OpenTravel Alliance (OTA) PMT Code List. For example, credit card is defined as Code="5" or "5.PMT”.

Property/Rate/RatePlan/RoomType/PrePayPolicy

0..1

Time

0..1

Time

The time the prepayment is required.

Date

0..1

Date

The date by when the prepayment must be made. Can be used in conjunction with the existing Time attribute

TimeInterval

0..1

Used with IntervalUnits and optionally IntervalOffsetType to specify the number of days/weeks prior to arrival (or after booking) that the prepayment is required.

IntervalUnits

0..1

Enum

Specifies the type of TimeInterval. Values are “Hours”, “Days”, “Weeks”, “Months”

IntervalOffsetType

0..1

Enum.

Indicates whether the time interval (defined by the existing TimeInterval and IntervalUnits attributes) relates to the interval after the booking is made or before arrival (e.g. prepayment must be made X days after it was made or X days prior to arrival)

Values are: “BeforeArrival” and “AfterBooking”

Amount

0..1

Decimal

The prepayment amount that is required by the deadline

Required

0..1

Boolean

Indicates whether prepayment is required.

Property/Rate/RatePlan/RoomType/PrePayPolicy/GuaranteeMethod

0..M

This element can occur once for each acceptable deposit method

Code

0..1

Integer

Identifies the method accepted for deposits. Values are from the OpenTravel Alliance (OTA) PMT Code List. For example, credit card is defined as Code="5" or "5.PMT

Property/Rate/RatePlan/RoomType/CancelPolicy

0..M

Description

0..1

Char 990

Cancel policy description – max 2 lines of 64 characters

990 character

Time

0..1

Time

The latest time that the reservation can be cancelled without incurring a penalty. This is normally on the day of arrival but can be on a specific date (if the Date attribute is also returned)

Date

0..1

Date

The latest date that the booking can be cancelled in order to avoid any penalties. Can be used in conjunction with the existing Time attribute. If the Time is attribute is specified without a Date then the day of arrival is assumed.

TimeInterval

0..1

Used with IntervalUnits and optionally IntervalOffsetType to specify the number of days/weeks prior to arrival (or after the booking) that it can be canceled without penalty.

IntervalUnits

0..1

Enum

Specifies the type of TimeInterval. Values are “Hours”, “Days”, “Weeks”, “Months”

IntervalOffsetType

0..1

Enum.

Indicates whether the time interval (defined by the existing TimeInterval and IntervalUnits attributes) relates to the interval after the booking is made or before arrival (e.g. booking can be canceled X days after it was made or X days prior to arrival).

Values are: “BeforeArrival” and “AfterBooking”

PenaltyAmount

0..1

Decimal

The cancellation penalty is expressed as a monetary amount.

PenaltyAmountTax

Indicator

0..1

Enum.

Indicates whether the penalty amount includes or excludes taxes. Values are: “Inclusive”, “Exclusive” and “Unknown”.

PenaltyAmountFee

Indicator

0..1

Enum.

Indicates whether the penalty amount includes or excludes fees. Values are: “Inclusive”, “Exclusive” and “Unknown”.

PenaltyNights

0..1

Integer

This attribute can be used on its own to indicate the number of nights that will be charged if the reservation is canceled in the penalty period (e.g. PenaltyNights="1" indicates that 1 night will be charged). It can also be grouped together with the PenaltyPercentage and PercentageQualifier attributes if the cancel penalty is expressed as a percentage applied to a given number of nights (e.g. if the cancel penalty is 5% of 2 nights then PenaltyNights="2" and PenaltyPercentage="5.00" and PercentageQualifier="Nights").

PenaltyPercentage

0..1

Decimal

The cancellation penalty eis xpressed as a percentage. The associated PenaltyNights and PercentageQualifier indicate what this is a percentage of.

PercentageQualifier

0..1

Enum.

The qualifier indicates how the percentage is applied when determining the cancel penalty (e.g. if the cancel penalty is 30% of the first and last night’s stay then PenaltyPercentage="30.00" and PercentageQualifier= "FirstLast").

They can also be grouped together with the PenaltyNights if the cancel penalty is expressed as a percentage applied to a given number of nights (e.g. if the cancel penalty is 5% of 2 nights then PenaltyNights="2" and PenaltyPercentage="5.00" and PercentageQualifier="Nights").

Values are: “FullStay”, “FirstLast”, “Nights”

HotelML/Property/Rate/RatePlan/RoomType/Amenity

This can repeat up to 6 times for amenities/services.

Code

1

Char 6

Amenity code

Quantity

0..1

Integer

Amenity code quantity. E.g. if the amenity code is for a meal plan then this defines the number of guests for which the meal plan applies.

Description

0..1

Char30

Amenity Description

Confirmable

0..1

Boolean

Indicates whether the amenity/service is confirmable

ExtraCharge

0..1

Boolean

Indicates whether there is an extra charge for the amenity/service

OnRequest

0..1

Boolean

Indicates whether the amenity/service is on request

Room

0..1

Boolean

Indicates this is a room-level amenity

Property

0..1

Boolean

Indicates this is a property-level amenity

Inclusive

0..1

Boolean

Indicates whether Room Rate is inclusive of this Extra charge.

ChargeApplication

0..1

Enum.

Indicates how the Extra Charge is to be applied. Values are "PerRoomPerStay", "PerRoomPerNight", "PerPersonPerStay", "PerPersonPerNight"

CurrencyCode

0..1

Char 3

Charge currency code

AmountBeforeTax

0..1

Decimal

Total Extra Charge Exclusive of Tax

AmountAfterTax

0..11

Decimal

Total Extra Charge Inclusive of Tax

Property/Rate/RatePlan/RoomType/RateChange

1..10

This can be returned if the nightly rate changes during the stay.

Charge

1

Decimal

The room rate

CurrencyCode

0..1

Char 3

Currency code of the room rate – will be in the same currency as the bookable room rate (i.e. RoomType/@NativeCurrency)

Frequency

0..1

Enum.

Denotes the frequency of the rate. Will be the same frequency as the bookable rate (i.e. RoomType/@RateFrequency) –normally “Nightly”. Values are "Daily", "Nightly", "Weekly", "Monthly", "PerStay", "Weekend"

Date

1

Date

The start of the date range for which the rate applies.

Property/Rate/RatePlan/RoomType/RateChange/ExtraCharge

0..M

AmenityCode

1

Char 6

Amenity code which will lead to an Extra Charge

Quantity

0..1

Integer

Number of charges that apply

ChargeDescription

0..1

Char30

Amenity Description which will lead to an Extra Charge

AmountBeforeTax

0..1

Decimal

Daily Extra Charge exclusive of Tax

AmountAfterTax

0..1

Decimal

Daily Extra Charge inclusive of Tax

Property/Rate/RatePlan/RoomType/ExtraPerson

1..2

Type

1

Enum.

Values “Adult” and “Child”

Charge

1

Decimal

Charge for the extra adult or child

Property/Rate/RatePlan/RoomType/ExtraBed

1..3

Type

1

Enum.

Values “ChildRollAway”, “AdultRollAway”, “Crib”.

Charge

1

Decimal

Charge for the rollaway/crib.

Property/Rate/RatePlan/RoomType/TaxDetail

0..M

EffectiveStartDate

0..1

Date

The date that the tax is effective, if applicable. In format “2011-07-19”

EffectiveEndDate

0..1

Date

The date that the tax expires, if applicable. In format “2011-07-19”

Type

0..1

Enum.

Coded field identifying the type of tax. Values are: "StateTax", "CityTax", "CountyTax", "FederalTax", "SalesTax", "OccupancyTax", "BedTax", "ValueAddedTax", "Miscellaneous"

Order

0..1

Integer

Indicates the order in which the tax should be applied when calculating the total amount.

Basis

0..1

Enum.

Indicates whether the tax is independent of all other charges, or whether it is compounded, meaning it must be calculated against the sum of all previous charges as well as the room rate. Values are "Compound" and “Independent"

Unit

0..1

Enum.

Indicates whether the tax is a flat amount or percentage. Values are

"Monetary" and "Percentage"

Amount

1

Decimal

The tax amount - expressed as a flat amount or percentage, depending on the value of Unit.

CurrencyCode

0..1

Char 3

Tax currency code

Application

1

Enum.

Indicates how the tax is to be applied. Values are "PerRoomPerStay", "PerRoomPerNight", "PerPersonPerStay", "PerPersonPerNight"

Description

0..1

Char 64

Tax description

Inclusive

0..1

Boolean

Indicates whether it is inclusive of other taxes and fees

Property/Rate/RatePlan/RoomType/FeeDetail

0..M

EffectiveStartDate

0..1

Date

The date that the fee is effective, if applicable. In format “2011-07-19”

EffectiveEndDate

0..1

Date

The date that the fee expires, if applicable. In format “2011-07-19”

Type

0..1

Enum.

Coded field identifying the type of Fee. Values are: "CityHotelFee", "Miscellaneous", "ResortFee", "Surcharge", "ServiceCharge", "MaintenanceFee", "EnergyCharge", "PackageRateFee"

Order

0..1

Integer

Indicates the order in which the fee should be applied when calculating the total amount.

Basis

0..1

Enum.

Indicates whether the fee is independent of all other charges, or whether it is compounded, meaning it must be calculated against the sum of all previous charges as well as the room rate. Values are "Compound" and “Independent"

Unit

0..1

Enum.

Indicates whether the fee is a flat amount or percentage. Values are "Monetary" and "Percentage"

Amount

1

Decimal

The fee amount - expressed as a flat amount or percentage, depending on the value of Unit.

CurrencyCode

0..1

Char 3

Fee currency code

Application

1

Enum.

Indicates how the fee is to be applied. Values are "PerRoomPerStay", "PerRoomPerNight", "PerPersonPerStay", "PerPersonPerNight"

Description

0..1

Char 64

Fee description

Inclusive

0..1

Boolean

Indicates whether it is inclusive of other taxes and fees