> For the complete documentation index, see [llms.txt](https://developer.rategain.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.rategain.com/our-products/smart-distribution/pre-book.md).

# Pre-Book

## Overview <a href="#sd-pre-bookapi-overview" id="sd-pre-bookapi-overview"></a>

This document provides a comprehensive overview of the transactions and functionality available in the **RateGain Pull Connectivity Model**. The core component of this model is **UltraDirect**, and the APIs discussed in this documentation pertain specifically to **XML UltraDirect**.

The document includes:

\
a. **Detailed Message Formats**

* A complete description of all fields (XML elements and attributes) used in request and response messages.
* This serves as a valuable resource for developers, supplementing the XML message definitions provided in the HotelML XML Schema Definition (XSD) files.

b. **Message Examples**

* Sample request and response messages illustrating key functionalities.

c. **Process and Transaction Flows**

* Typical workflows to guide implementation and integration.

Below is a summary of the **UltraDirect Prebook Transactions** for quick reference:

| Pre-Book | Re-check process and availability for a specific room type and rate plan immediately before making a booking |
| -------- | ------------------------------------------------------------------------------------------------------------ |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developer.rategain.com/our-products/smart-distribution/pre-book.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
