# HotelProductListGetRS

**OTA Response to Product List Request**

**Response Message**:

* **HotelProductListGetRS**:
  * OTA should respond to the `HotelProductListGetRQ` request by returning a `HotelProductListGetRS` message.

**Validation and Errors**:

* If the OTA is not able to validate a message at the application level, it should still return a `HotelProductListGetRS` message.
* **Failure Response**: Response messages indicating failures must contain at least one error element. More than one error element can be returned if necessary.

**Successful Response**:

* After validating the hotel code, the OTA should:
  * Return a `HotelProductListGetRS` message with a single Success element.
  * Include the list of products for the hotel in the `Products` element.
* **Product Identification**:
  * DirectConnect identifies a product by room type and rate type.

| <p><strong>Element/@Attribute</strong> </p><p><strong>Parent XPath</strong>  </p> | <p>  </p><p><strong>Description</strong> </p>                                                                                                                                                                                                                         | **Mandatory**          |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| <p>@TimeStamp  </p><p><strong>/HotelProductListGetRS</strong>  </p>               | <p>  </p><p>Time of the transaction in XML schema date-time format. </p>                                                                                                                                                                                              | Y                      |
| <p>@Version </p><p><strong>/HotelProductListGetRQ</strong>  </p>                  | The version of the message. For this version of the specification set to “1.0”.                                                                                                                                                                                       | Y                      |
| <p>Success </p><p><strong>/HotelProductListGetRS</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. </p><p>Either a Success element or an Errors element is required in every response. </p> | <p>Y? </p><p><br></p>  |
| <p>Errors </p><p><strong>/HotelProductListGetRS</strong></p>                      | <p>If included, this element will indicate that the request message could not be processed. </p><p>Either a Success element or an Errors element is required in every response.</p>                                                                                   | <p> Y? </p><p><br></p> |

<br>

| <p>Error </p><p><strong>/HotelProductListGetRS/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><p><br></p>                                                                                                                     | <p><br></p><p>Y </p>        |
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
| <p>@Type </p><p><strong>/HotelProductListGetRS/Errors/Error</strong></p>                                           | <p>  </p><p>This is an enumeration of error types. </p><p>See the Code Lists below for supported values. Code list Error Types. </p>                                                                                                                                                                  | Y                           |
| <p>@Code</p><p><strong>/HotelProductListGetRS/Errors/Error</strong></p>                                            | <p>  </p><p>This is an enumeration of error codes. </p><p>See Code Lists below for supported values. Codelist Error Codes. </p>                                                                                                                                                                       | Y                           |
| <p>HotelProducts </p><p><strong>/HotelProductListGetRS</strong> </p>                                               | <p>This element is used to return a list of products of this hotel that are set up for sale on the OTA. RezGain identifies a product as a room type in combination with a rate type. </p><p>For each product listed, OTA should ensure that the ARI information can be updated on a daily basis. </p> | <p>Y </p><p><br></p>        |
| <p>HotelProduct</p><p><strong>/HotelProductListGetRS/HotelProduc ts</strong>  </p>                                 | <p>  The element contains information about one hotel product. The product must be unique in the list. </p><p> </p>                                                                                                                                                                                   | Y                           |
| <p>ProductReference </p><p><strong>/HotelProductListGetRS/HotelProduc ts/HotelProduct</strong>  </p>               | <p>  This element contains the part of the hotel product that is used across requests and uniquely identifies a product. </p><p> </p>                                                                                                                                                                 | Y                           |
| <p>@InvTypeCode </p><p><strong>/HotelProductListGetRS/HotelProducts/HotelProduct/ProductReference</strong>  </p>   | <p>  The room type code. This is assigned by the OTA. </p><p> </p>                                                                                                                                                                                                                                    | Y                           |
| <p>@RatePlanCode </p><p><strong>/HotelProductListGetRS/HotelProduc ts/HotelProduct/ProductReference</strong>  </p> | <p>  </p><p>The rate type code. This is assigned by the OTA. </p><p> </p>                                                                                                                                                                                                                             | Y                           |
| <p>RoomTypeName</p><p><strong>/HotelProductListGetRS/HotelProducts/HotelProduct</strong>  </p>                     | <p>  </p><p>The name of the room type. This is assigned by the OTA. </p><p> </p>                                                                                                                                                                                                                      | <p>  </p><p>  </p><p>Y </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-product-list/hotelproductlistgetrs.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.
