# Enhanced Shopping Transaction Request Header Format

| Element Path                                                      | Attribute                             | Occ         | Type        | Notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------------------------------------------------------------- | ------------------------------------- | ----------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| HotelML/Head/Process                                              | <p><br></p>                           | 1           | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                       | DataPath                              | 1           | Char        | Set to "/HotelML/Form/MultiAvailability”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                       | Function                              | 1           | Char        | Set to “TI\_MultiAvailabilityV1\_1”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <p><br></p>                                                       | Token                                 | 1           | Char        | A unique ID for the transaction is generated by the system sending the transaction.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <p><br></p>                                                       | Timeout                               | 0..1        | Integer     | <p>Specifies the maximum time (in milliseconds) that UltraDirect should wait for responses from the CRSs before returning a response to the affiliate.</p><p><br></p><p>If the timeout expires before the rates and availability has been obtained for all properties then UltraDirect will return details to the affiliate of all properties that have responded. UltraDirect will also return a second response for all remaining properties if requested (by using the AcceptMultipartResponse attribute – see below).</p><p><br></p><p>If the attribute is omitted, the standard UltraDirect timeout value will be used.</p><p><br></p><p>If the requested timeout is greater than the UltraDirect standard timeout, the standard timeout will be used.</p> |
| <p><br></p>                                                       | <p>AcceptMultipart</p><p>Response</p> | 0..1        | Boolean     | <p>Specifies whether the requesting system will accept a response in multiple parts – i.e. the results for an initial set of properties after the affiliate-specified timeout expired, followed by the results for the remaining properties. This is implemented as a ‘chunked’ transfer-encoded HTTP response. If multi-part responses are not requested (i.e. the value is false or the attribute is omitted) then only one response will be returned.</p><p><br></p><p>This attribute is only applicable when the Timeout attribute is supplied. It will be ignored if Timeout is omitted.</p>                                                                                                                                                               |
| HotelML/Head/Route                                                | <p><br></p>                           | 1           | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                       | Source                                | 1           | Char 2-3    | <p><br></p><p>Identifies the organization sending the transaction. The value to use will be provided during the implementation project.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                       | Destination                           | 1           | Char 2      | Always set to “00” (i.e. zero zero).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                       | RequestedAccuracy                     | 0..1        | Enum        | <p>This specifies whether the response can be generated from the UltraDirect transaction cache. Note: this is a preference, since it can be overridden by the hotel chain. Valid values are:</p><p><br></p><p>“</p><p><br></p><p>“SourceOnly” - Bypass the cache and return availability from the source (hotel CRS) only.</p><p><br></p><p>“CacheOnly” - Only return data from the cache. If data is not available in the cache for the requested parameters, then an availability status of “Unknown” will be returned.</p><p><br></p><p>It is strongly recommended to set this to “<strong>CacheOrSource</strong>”.</p>                                                                                                                                      |
| HotelML/Form/MultiAvailability/ Property/Locale                   | <p><br></p>                           | 0..1        | <p><br></p> | This is used to request the room/rate information is returned in a specific language from the CRS (if available).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><br></p>                                                       | Language                              | 1           | Char 2      | Language code – e.g. “FR”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p><br></p>                                                       | Country                               | 0..1        | Char        | Optional country name – e.g. “France”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| HotelML/Form/MultiAvailability/Property                           | <p><br></p>                           | 1..200      | <p><br></p> | Repeated for each property.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                       | Code                                  | 1           | Char        | Chain and property code, separated by a semi-colon – e.g. “UI;AB1234”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><br></p>                                                       | CodeContext                           | 0           | Char        | Only used if the partner is using their own property codes. Ignore this key for the implementation with RateGain.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| HotelML/Form/MultiAvailability/RateCriteria                       | <p><br></p>                           | 1           | <p><br></p> | Specify rate selection criteria.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                       | VersionCompliance                     | 1           | Enum        | <p>Valid values:</p><p> “Enhanced\_V1” (Starnadard EST functionality)</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p><br></p>                                                       | Usage                                 | 0..1        | Enum        | <p>For this implementation, this key can be ignored.</p><p><br></p><p><strong>Values are:</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><br></p>                                                       | MatchingQualifier                     | 0..1        | Enum.       | <p>Valid only when at least one rate plan code</p><p>(RateCriteria/RateSearch/@RatePlanCode) is included in the request.</p><p><br></p><p>If “ExactAndPublic” the CRS should return the requested rate plans (if available) plus the public rates.</p><p><br></p><p>If “Exact” the CRS should return rates for the requested rate plans only.</p><p><br></p><p>If “ExactOrPublic” the CRS should return rates for the requested rate plans when available, or return public rates if requested rate plans are not available.</p>                                                                                                                                                                                                                                |
| <p><br></p>                                                       | MaxRoomRateCount                      | 0..1        | Integer     | Specifies the maximum number of room/rate combinations to return in the response.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><br></p>                                                       | PrePayQualifier                       | 0..1        | Char        | <p>Specifies whether prepaid or Non prepaid rates should be returned in the response.</p><p>Valid values are:</p><p>“PrePayOnly” = Include Prepaid rates only</p><p>“NoPrePay” = Exclude Prepaid rates</p><p> “AllRates” = Return all rates</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p><br></p>                                                       | <p>RefundableQualifier</p><p><br></p> | 0..1        | Char        | <p>Specifies whether Refundable or Non Refundable rates should be returned in the response.</p><p>Valid values are:</p><p>“Refundable” = Refundable rates only</p><p>“NonRefundable” = Non Refundable rates only</p><p>“AllRates” = Return all rates</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                       | CalculationMethod                     | 0..1        | Enum.       | <p>\<Ignore this attribute for EST API></p><p>Specifies the preferred rate calculation method to use when a rate change occurs across the length of stay. Valid values are:</p><p><br></p><p>“First” – rate for the first night “Highest” – highest nightly rate “Average” – average nightly rate “Frequent” – most frequently occurring rate</p><p><br></p><p>When this element is not included in the request, the CRS will apply its default method to calculate the rate range.</p>                                                                                                                                                                                                                                                                         |
| <p><br></p>                                                       | <p>Commissionable</p><p>Status</p>    | 0..1        | Enum.       | <p>Specifies whether commissionable and/or non-commissionable rates are required.</p><p><br></p><p>“Commissionable” = Return commissionable rates only</p><p><br></p><p>“NonCommissionable” = Return non-commissionable rates only</p><p><br></p><p>“Both” = Return both non-commissionable and commissionable rates. This is the default if not sent.</p>                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                       | ReturnUnavailable                     | 0..1        | Boolean     | <p>If “true”, closed properties will be included in the response.</p><p><br></p><p>If “false”, closed properties will not be included in the response.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                       | NumberOfRooms                         | 1           | Integer     | Total number of rooms required, which is used when checking availability. The prices in the response will be per room.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><br></p>                                                       | NumberOfBeds                          | 0..1        | Integer     | Preferred number of beds per room                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><br></p>                                                       | BedType                               | 0..1        | Enum        | <p>Indicates the preferred bed type. Values are:</p><p><br></p><p>Single, Twin, Double, King, Queen, Futon, MurphyBed, SofaBed, TatamiMats, Rollaway, Crib</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <p><br></p>                                                       | ReturnRateChanges                     | 0..1        | Boolean     | Preference for whether the response should include each distinct rate if it changes during the stay.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                       | RoomCategory                          | 0..1        | Enum        | <p>Indicates the preferred quality of the room. The following values are most commonly used:</p><p><br></p><p>Deluxe, Superior, Standard, Moderate, Economy, Premium</p><p><br></p><p>The attribute also supports the following values but these are generally not used in this context:</p><p><br></p><p>FirstClass, Budget, Upscale, Luxury, MeetingConvention, ResidentialApartment, Resort, CorporateBusinessTransient, AllSuite, ExtendedStay, Tourist, Efficiency</p>                                                                                                                                                                                                                                                                                     |
| HotelML/Form/MultiAvailability/ RateCriteria/GuestCount           | <p><br></p>                           | 0..M        | <p><br></p> | <p>This element specifies the number of adults and children (optionally including child counts by age).</p><p><br></p><p>GuestCount must occur once (and only once) with Type=”Adult”.</p><p><br></p><p>It can also occur once with Type=”Child” if no Age attribute is supplied. Alternatively, it can be multiple times for Type=”Child” when an Age attribute is specified.</p>                                                                                                                                                                                                                                                                                                                                                                              |
| <p><br></p>                                                       | Type                                  | 1           | Enum        | Values “Adult” or “Child”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p><br></p>                                                       | Count                                 | 1           | Integer     | Number of guests of this type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                       | Age                                   | 0..1        | Integer     | The optional age of the guest. Only applicable when Type=”Child”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| HotelML/Form/MultiAvailability/ RateCriteria/ExtraBed             | <p><br></p>                           | 0..1        | <p><br></p> | This is used to request rollaway beds or cots/cribs. The element can occur up to three times - once for each type of extra bed – as defined by the Type attribute.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <p><br></p>                                                       | Type                                  | <p><br></p> | Enum        | <p>Type of extra bed required. Valid values are:</p><p><br></p><p>AdultRollAway, ChildRollAway, Crib</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                       | Number                                | <p><br></p> | Integer     | The number of beds of this type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| HotelML/Form/MultiAvailability/ RateCriteria/AgentInfo            | <p><br></p>                           | 0..1        | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                       | Number                                | 1           | Char 8      | Travel agent identifier – often the IATA number.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                       | Type                                  | 1           | Enum.       | Identifies the type of travel agent identifier. Values are: “ARC” , “IATA”, “TIDS”,  “CLIA”,  “AAA”,  “GDS”, “Other”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><br></p>                                                       | City                                  | 0..1        | Char 3      | Originating Agent’s City. Not normally required.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                       | Country                               | 0..1        | Char 2      | Originating Agent’s Country Code (ISO Standard Codes). Not normally required.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| HotelML/Form/MultiAvailability/ RateCriteria/Amenity              | <p><br></p>                           | 0..6        | <p><br></p> | <p>This is used to request specific room or rate features, such as breakfast</p><p>(“BRKFST”) or a non-smoking room (“NSMK”) etc.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><br></p>                                                       | Code                                  | 1           | Char 6      | The list of codes can be obtained using the AmenityInformation transaction.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| HotelML/Form/MultiAvailability/ RateCriteria/DateRange            | <p><br></p>                           | 1           | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                       | InDate                                | 1           | Date        | The arrival date in format “2011-12-24”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <p><br></p>                                                       | OutDate                               | 1           | Date        | The departure date in format “2011-12-27”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| HotelML/Form/MultiAvailability/ RateCriteria/PriceRange           | <p><br></p>                           | 0..1        | <p><br></p> | <p><strong>\<This can be ignored as it is not used for EST></strong><br>Specifies the required maximum and/or minimum rate (per room per night).</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                       | Currency                              | 1           | Char        | ISO currency code – e.g. “USD”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <p><br></p>                                                       | Max                                   | 0..1        | Decimal     | Maximum required daily rate per room - e.g. “150.00”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                       | Min                                   | 0..1        | Decimal     | Minimum required daily rate per room - e.g. “150.00”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| HotelML/Form/ MultiAvailability/ RateCriteria/RateSearch          | <p><br></p>                           | 0..M        | <p><br></p> | <p>The RateSearch element is used to request one or more specific rate plan codes. This is used in conjunction with PropertyRate/@MatchingQualifier to specify whether the CRS should return the requested rate plans and/or public rates.</p><p><br></p><p>If this element is not present, the CRS may return any available rate plan codes it wishes to promote.</p><p><br></p><p>A maximum of 15 rate plan codes can be supplied in the RateSearch element for each hotel chain.</p>                                                                                                                                                                                                                                                                         |
| <p><br></p>                                                       | RatePlanCode                          | 0..1        | Char 10     | <p>For RateGain EST API Implementation, the negotiated rate plan code will be set up in RateGain’s Account Author.<br><br>There will be multiple set of values (Usually 5-10) set for Negotiated Rate Plans. These values will be shared during the actual onboarding/Implementation.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p><br></p>                                                       | RatePlanType                          | 0..1        | Char        | <p>Specifies the type of type of rate plan code.</p><p><br></p><p>Values are:</p><p>Corporate, Negotiated, NetRate, Standard</p><p><br></p><p>For implementation using Account Author, use “negotiated” rate codes. This will be shared during the implementation/onboarding.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><br></p>                                                       | BrandCode                             | 0..1        | Char 6      | <p>If BrandCode is specified then the information in the RateSearch element (such as rate plan code, corporate customer number, frequent guest number, etc.) would only be included in transactions to the specified chain’s Central Reservation System (CRS). If the BrandCode is not supplied then the information will be included in transactions to all hotel chains’ CRSs.</p><p><br></p><p>It should therefore be used when information in the RateSearch element is specific to a hotel chain.</p>                                                                                                                                                                                                                                                      |
| HotelML/Form/MultiAvailability/ RateCriteria/RateSearch/AutoInfo  | Code                                  | 0..1        | Char 25     | Auto Frequent Traveler Number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| HotelML/Form/MultiAvailability/ RateCriteria/RateSearch/CorpInfo  | Code                                  | 0..1        | Char 25     | <p>Corporate Account Number. This should only be sent when</p><p>RateSearch/@RatePlanType=” Corporate”.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| HotelML/Form/MultiAvailability/ RateCriteria/RateSearch/FlyerInfo | Code                                  | 0..1        | Char 25     | Frequent Flyer Number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| HotelML/Form/MultiAvailability/ RateCriteria/RateSearch/FreqGuest | Code                                  | 0..1        | Char 25     | Frequent Guest Number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.rategain.com/our-products/smart-distribution/multiavailability-enhanced-shopping-transaction/enhanced-shopping-est-detailed-rate-information/enhanced-shopping-transaction-request-header-format.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
