# OTA\_HotelAvailNotifRS

When RG Bridge processes a `OTA_HotelAvailNotifRQ` message, it responds with a `OTA_HotelAvailNotifRS` message. Here’s a summary of the response handling process:

1. **Normal Response**:
   * **OTA\_HotelAvailNotifRS**: Sent in response to the request, confirming receipt and processing of the availability update.
2. **Exception Handling**:
   * **REST Fault**: If a REST-level fault occurs, a REST fault message is sent.
   * **Application Level Validation**: If RG Bridge cannot validate a message at the application level, it still returns an `OTA_HotelAvailNotifRS`.
3. **Screening for Business Rules**:
   * Messages are screened for conformance to basic business rules.
   * RG Bridge ensures that the message pertains to a hotel that is enabled on RG Bridge.
   * Values are screened to ensure they meet specified business constraints.
4. **Failure Indication**:
   * Response messages indicating failures will contain at least one error element.
   * Multiple error elements may be returned if there are several issues.
5. **Successful Receipt**:
   * If the request is received correctly and screened for consistency, RG Bridge returns an `OTA_HotelAvailNotifRS` a message with a single `Success` element.
   * Note: Receiving a success message does not guarantee that updates will be made on all OTAs. Errors may still occur due to business rules at RG, OTA, or communication failures.

**Table D: Response indicating success**

```xml
<OTA_HotelAvailNotifRS xmlns="
http://www.opentravel.org/OTA/2003/05

"
 
Version="1.100"
EchoToken="879791878"
Target="Production"
TimeStamp="2011-10-01T16:56:20-05:00">


 <Success/>
</OTA_HotelAvailNotifRS>
```

**Table E: Response indicating failure**

```xml
 <OTA_HotelAvailNotifRS xmlns="
http://www.opentravel.org/OTA/2003/05

"
 
Version="1.100"
EchoToken="879791878"
Target="Production"
TimeStamp="2011-10-01T16:56:20-05:00">
 <Errors>
 <Error Type="3"
            Code="320"
            RecordID="A1K">
         Invalid Data in RestrictionStatus Field
 </Error>
 </Errors>
</OTA_HotelAvailNotifRS>
```

Hotels can access the Request logs to view the status of each update received through the RG Bridge interface on the RG user interface. Here are the key points:

* **Request Log**: Displays the overall status of the message.
* **Channel-Level Processing Logs**: It is possible to view detailed logs of the channel-level processing.


---

# 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/rg-bridge-supply-push/interface-specifications-availability-and-rates-notification-service/operations/availability-notification/ota_hotelavailnotifrs.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.
