# HotelARIGetRS

* **HotelARIGetRS**:
  * OTA should respond to the `HotelARIGetRQ` request by sending a `HotelARIGetRS` message.

**Validation and Errors**:

* Response messages indicating failures must contain at least one error element. It is possible to return more than one error element.

**Successful Response**:

* After validating the hotel code and the product, the OTA should:
  * Return a `HotelARIGetRS` message with a single Success element.
  * Return the ARI information for the products for the hotel in the request.
* **HotelARIDataSet Node**:
  * The response message must include one `<HotelARIDataSet>` node.
  * Inside this element, one `HotelARIData` node should be included for each date in the date range.
  * In case there is no data loaded for any given date, the `HotelARIData` node may be replaced with a `HotelARIStatus` node.

**Product Identification**:

* DirectConnect identifies a product by room type and rate type.

**Allotment and Restrictions**:

* Allotment is supported at the Room Level.
* In response XML, Allotment returns at Room Level along with all other restrictions/settings, if applicable.

| <p><strong>Element/@Attribute</strong> </p><p><strong>Parent Xpath</strong>  </p>                                                                   | <p>  </p><p><strong>Description</strong> </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | <p>  </p><p><strong>Mandatory</strong></p>                   |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| <p>@TimeStamp </p><p><strong>/HotelARIGetRS</strong>  </p>                                                                                          | Time of the transaction in XML schema date-time format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | <p>  </p><p>Y </p>                                           |
| <p>@Version </p><p><strong>/HotelARIGetRS</strong>  </p>                                                                                            | <p>  The version of the message schema. For this version of the specification, set to</p><p>“1.0”</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | <p>Y </p><p><br></p>                                         |
| <p>Success </p><p><strong>/HotelARIGetRS</strong>       </p>                                                                                        | <p>If included, this element will indicate that the request message was successfully processed. </p><p>If this element is returned, a Product element must also be returned. Either a</p><p>Success element or an Error element is required in every response. </p>                                                                                                                                                                                                                                                                                                                                                                            | Y                                                            |
| <p>Errors </p><p><strong>/HotelARIGetRS</strong> </p>                                                                                               | If included, this element will indicate that the request message could not be processed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Y?                                                           |
| <p>Error </p><p><strong>/HotelARIGetRS/Errors</strong>  </p>                                                                                        | <p>Description of cause for a fatal problem during request message processing. </p><p>\*If an Errors element is included, at least one Error element is required. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Y                                                            |
| <p>@Type </p><p> <strong>/HotelARIGetRS/Errors/Error</strong>  </p>                                                                                 | <p>This is an enumeration of error types. </p><p>See Code Lists below for supported values. Code list ErrorTypes </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Y                                                            |
| <p> @Code </p><p><strong>/HotelARIGetRS/Errors/Error</strong>  </p>                                                                                 | <p>This is an enumeration of error codes. </p><p>See the Code Lists below for supported values. Code list Error Codes. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Y                                                            |
| <p>HotelARIDataSet </p><p><strong>/HotelARIGetRS</strong>  </p>                                                                                     | <p>  </p><p>This element contains ARI information. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Y                                                            |
| <p>@HotelCode </p><p><strong>/HotelARIGetRS/HotelARIDataSet</strong>  </p>                                                                          | This attribute identifies the hotel for which the ARI information is given.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Y                                                            |
| <p>HotelARIData </p><p><strong>/HotelARIGetRS/HotelARIDataSet</strong>  </p>                                                                        | The element is used to transfer the ARI information for a product for a date range (with day-of-week applicability). If different sets o values need to be specified for a single date range based on different days of week applicability, separate HotelARIData elements must be used.                                                                                                                                                                                                                                                                                                                                                       | Y                                                            |
| <p>@ItemIdentifier </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p>                                                       | A number identifying a HotelARIData element in a HotelARIDataSet collection. Useful for correlating request and response message items.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | <p>        Y </p><p><br></p><p><br></p>                      |
| <p>ProductReference </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p>                                                       | <p>  </p><p>Identifies the product for which the ARI information is given. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Y                                                            |
| <p>@InvTypeCode  </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/ProductReference</strong></p>                                           | Identifies the room type for which the ARI information is being returned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | <p><br></p><p>Y </p>                                         |
| <p>@RatePlanCode </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/ProductRefere nce</strong>  </p>                                        | Identifies the rate type for which the ARI information is being returned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Y                                                            |
| <p>ApplicationControl </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p>                                                     | <p>Identifies the date range that the ARIData applies to. </p><p>If any one of the day of week attributes are passed, they all must be passed.</p><p>If no day of week attribute is passed, it is assumed that the ARI data applies to all dates within the start date and end dates. </p>                                                                                                                                                                                                                                                                                                                                                     | <p>Y </p><p><br></p>                                         |
| <p>@Start </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/ApplicationContro l</strong>  </p>                                            | <p>The start date of the date range for which the ARI data applies. The date range includes the start date.</p><p>  </p><p>Date format: YYYY-MM-DD </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Y                                                            |
| <p>@End </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/ApplicationContro l</strong>  </p>                                              | <p>The end date of the date range for which the ARI data applies. The date range includes the end date.</p><p>  </p><p>Date format : YYYY-MM-DD </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Y                                                            |
| <p>RateAmounts </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p>                                                            | <p>  </p><p>This element contains Rate amounts for each check-in date between Start date & End date </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | N                                                            |
| <p>@Currency </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/RateAmoun ts</strong>  </p>                                                 | The currency of the rates. This must be the primary currency of the hotel. Three letter ISO code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | <p><br></p>                                                  |
| <p>Base </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/RateAmoun ts</strong>  </p>                                                      | The base rates. The rates could be expressed as “Room” rates or occupancy-based prices. 1 Adult, 2 Adults etc are commonly used base occupancies.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | N                                                            |
| <p>@OccupancyCode </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/RateAmounts/ Bas e</strong>  </p>                                     | <p>  </p><p>The code of the base occupancy. See the Code Lists section for supported values. Code list Occupancy Codes. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | <p>Y </p><p><br></p><p><br></p>                              |
| <p>@Amount </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/RateAmounts/ Bas e</strong>  </p>                                             | <p>  </p><p>The rate amount for this occupancy in the currency mentioned above. </p><p> </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Y                                                            |
| <p>MealPlans </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/RateAmounts</strong></p>                                                    | <p>This element contains the meal plans available for this rate. Meal Plan is also commonly referred to as Board and Pension. For example Bed\&Breakfast, Full Board, Half Pension etc. </p><p>  </p>                                                                                                                                                                                                                                                                                                                                                                                                                                          | N                                                            |
| <p>MealPlan </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/</strong> </p><p><strong>RateAmounts/MealPlans</strong> </p>                 | <p>This element provides information on one of the meal plan available for this product.  </p><p><br></p><p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | N                                                            |
| <p>@MealPlanCode </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/</strong> </p><p><strong>RateAmounts/MealPlans/MealPlan</strong> </p>  | The code of the meal plan. Full Board, Half Board, Bed and Breakfast, Room only etc. are commonly used meal plans. See the Code Lists section for supported values. (Code list Meal Plan Codes).  Mandtory if MealPlan node is present                                                                                                                                                                                                                                                                                                                                                                                                         | <p><br></p><p>       Y </p><p><br></p><p><br></p><p><br></p> |
| <p>Additional </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/RateAmoun ts</strong></p>                                                  | <p>  </p><p>Rate amounts for additional occupancies. Extra Adult, Extra Child etc. are commonly used  additional occupancies. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | N                                                            |
| <p>@OccupancyCode </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/RateAmoun ts</strong></p><p><strong>/Additional</strong>  </p>         | <p>  </p><p>The code of the additional occupancy. See the Code Lists section for supported values. Code list Occupancy Codes. </p><p> </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | <p>Y </p><p><br></p>                                         |
| <p>@Amount </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/RateAmoun ts</strong></p><p><strong>/Additional</strong>  </p>                | The rate amount for this occupancy in the currency mentioned above.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Y                                                            |
| <p>Availability </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p>                                                           | <p>  </p><p>This element provides information regarding the availability of the hotel product. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | N                                                            |
| <p>  </p><p>@Master </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/Availability</strong></p>                                           | <p>This is the master availability. If master is ‘Closed’, the product is not bookable if any of the stay dates includes one of the dates specified by the Application Control element. If master is ‘Open’, additional restrictions on arrival and departure may be placed. OTA is expected to retain the</p><p>ARI information when the master availability is changed from ‘Open’ to ‘Closed’, so that when the availability becomes ‘Open’ once again, the</p><p>previously set values of price and other restrictions could be restored. For that  matter, this restriction could also be considered to be equivalent to ‘Stop Sell’.</p> | N                                                            |
| <p>@Arrival </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/Availability</strong></p>                                                   | <p>This is an availability restriction commonly referred to as Closed To Arrival (CTA). If Arrival availability is ‘Closed’, the product is not bookable if the first date of the stay is one of the dates specified by the Application Control element.If this element is not passed, it is assumed as Open for arrival. </p><p> </p>                                                                                                                                                                                                                                                                                                         | N                                                            |
| <p>@Departure </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/Availability</strong></p>                                                 | <p>This is an availability restriction commonly referred to as Closed To Departure (CTD). If Departure availability is ‘Closed’, the product is not bookable if the last date of the stay is one of the dates specified by the Application Control element.If this element is not passed, it is assumed as Open for departure. </p><p> </p>                                                                                                                                                                                                                                                                                                    | N                                                            |
| <p>BookingLimit </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong> </p>                                                            | This element contains information on the allocation of inventory to the OTA.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | N                                                            |
| <p>  </p><p>@FreeSale </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/BookingLimit</strong> </p><p>  </p>                                | <p>Indicates if the hotel has removed all booking limits for this product for this date range. </p><p>If this element is not passed, it is assumed that ‘Free Sale’ is off. Further, it is understood that the product would be bookable subject to the limits given below. If this element is set to ‘On’, the OTA may sell the product without regard to the limits  given below.  </p>                                                                                                                                                                                                                                                      | N                                                            |
| <p>TransientAllotment </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/BookingLi mit</strong>  </p>                                       | <p>This element is used to transfer information on any dynamically allocated hotel inventory. RezGain is a platform for</p><p>optimizing the distribution of available hotel  inventory toOTAs. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                           | N                                                            |
| <p>@Sold </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/BookingLimit/TransientAllotment</strong>  </p>                                  | This attribute indicates the number rooms already sold by the OTA out of dynamically allocated inventory. It is important to understand that if this attribute is used, the Application Control element must refer to a single date rather  than a range of dates.                                                                                                                                                                                                                                                                                                                                                                             | N                                                            |
| <p>@Allotment </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/BookingLi mit</strong>  </p><p><strong>/TransientAllotment</strong>  </p> | <p>  </p><p>  </p><p>The number of rooms received in allotment  by the hotel under dynamic allocation. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | <p>N </p><p><br></p>                                         |
| <p>BookingRules </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p><p>  </p>                                                  | This element contains booking rules. Booking rules are additional restrictions placed by the hotel on bookings of this product.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | N                                                            |
| <p>MinAdvancedBookingOffset </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/</strong>  </p><p><strong>/BookingRules</strong>  </p>       | <p>This element indicates the minimum number of days before the check-in date after which the product is not available to be booked. </p><p>This restriction is usually used to offer discounts on early bookings. </p>                                                                                                                                                                                                                                                                                                                                                                                                                        | N                                                            |
| <p>MaxAdvancedBookingOffset </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData/</strong>  </p><p><strong>/BookingRules</strong>  </p>       | This element indicates the maximum number of days before the check-in date before which the product is not available to be booked.  This restriction is usually used to offer last-minute discounts on unsold inventory.                                                                                                                                                                                                                                                                                                                                                                                                                       | <p>N </p><p>  </p>                                           |
| <p>MinLoSOnArrival </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p><p><strong>/BookingRules</strong>  </p>                 | <p>This element indicates the minimum number of nights for which a stay must be booked to obtain this rate. Applies only to bookings where the first date of the booking is one of the dates referred in the Application Control element. </p><p>This restriction is usually used to offer discounts on longer stays. </p>                                                                                                                                                                                                                                                                                                                     | <p>N </p><p>  </p>                                           |
| <p>MaxLoSOnArrival </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p><p><strong>/BookingRules</strong>  </p>                 | <p>  </p><p>This element indicates the maximum number of nights for which a stay can be booked to obtain this rate. Applies only to bookings where the first date of the booking is one of the dates referred in the Application Control element. </p>                                                                                                                                                                                                                                                                                                                                                                                         | N                                                            |
| <p> MinLoSThrough  </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p><p><strong>/BookingRules</strong>  </p>                 | <p>This element indicates the minimum number of nights for which a stay must be booked to obtain this rate. Applies to bookings where anyof thestaydates of the booking includes any of the dates referred in the Application Control element. </p><p>This restriction is usually used to offer discounts on longer stays. </p>                                                                                                                                                                                                                                                                                                                | <p>N </p><p>  </p>                                           |
| <p> MaxLoSThrough </p><p><strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong>  </p><p><strong>/BookingRules</strong>  </p>                  | This element indicates the maximum number of nights for which a stay can be booked at this rate. Applies to bookings where any of the stay dates of the booking includes any of the dates referred in the Application Control element.                                                                                                                                                                                                                                                                                                                                                                                                         | N                                                            |
| <p>Description </p><p> <strong>/HotelARIGetRS/HotelARIDataSet/HotelARIData</strong> </p><p>  </p>                                                   | Reserved for future use.  This element is used to provide a textual description of the product. Usually used to describe the special features of the room or rate. Also used commonly to describe what is included in the price.                                                                                                                                                                                                                                                                                                                                                                                                               | N                                                            |
| <p>HotelARIStatus </p><p><strong>/HotelARIGetRS/HotelARIDataSet</strong>  </p>                                                                      | This element is used to return status information where ARI data is not available or cannot be returned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | N                                                            |
| <p>ProductReference </p><p> <strong>/HotelARIGetRS/HotelARIDataSet</strong>  </p>                                                                   | The product for which the status is sent is  specified in this element. Please refer to the description of this element under HotelARIData above.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Y                                                            |
| <p>ApplicationControl </p><p><strong>/HotelARIGetRS/HotelARIDataSet</strong>    </p>                                                                | The date range for which the status is sent is specified in this element. Please refer to the description of this element under HotelARIData above.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Y                                                            |
| <p>Status </p><p><strong>/HotelARIGetRS/HotelARIDataSet</strong>  </p>                                                                              | The status of ARI data on the OTA. This can be used to return an error if the ARI information is not available.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | <p>       N </p><p>  </p><p><br></p>                         |
| <p> @Code </p><p>   </p><p><strong>/HotelARIGetRS/HotelARIDataSet/Status</strong>  </p>                                                             | Code 842 can be used to indicate that rates have not been loaded yet for this product for this date range. This is an enumeration of error codes. See Code Lists below for supported values. Code list Error Codes.                                                                                                                                                                                                                                                                                                                                                                                                                            | <p>N </p><p>  </p>                                           |


---

# 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/channel-manager/direct-connect-demand-push/interface-specifications-ari-service/operation-ari-get/hotelarigetrs.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.
