# Smart Distribution

Smart Distribution

**Public Specification Overview**

Welcome to the RateGain Smart Distribution API documentation. This guide outlines the technical specifications required for demand partners—such as OTAs, wholesalers, and B2B booking engines—to integrate seamlessly with the RG SMART Distribution system.

&#x20;

🚀 **Overview**

The Smart Distribution API by RateGain provides a robust, scalable, and real-time interface for accessing hotel inventory, pricing, and reservation functionality. Designed for travel companies, OTAs, wholesalers, and B2B booking engines, it enables seamless integration with RateGain’s Smart Distribution platform to perform operations such as:

* Destination search
* Hotel discovery
* Product availability
* Booking and cancellations

&#x20;

🔑 **Core Features**

* **Destination Search**: Retrieve a list of available destinations using `getDestinations`.
* **Hotel Search**: Get the best available properties and pricing in a destination (`getBestProperty`).
* **Product Retrieval**: Access room types, rates, and amenities for a specific hotel (`getproducts`).
* **Reservation Management**: Make bookings (`CreateReservation`) and cancel them (`CancelReservation`) programmatically.
* **Secure Access**: API Key-based authentication ensures secure and authorized access to endpoints.

&#x20;

🔄 **Integration Workflow**

1. Authenticate using the provided `ApiKey` and `ApiSecret`.
2. Fetch Destinations using `getDestinations`.
3. Search Hotels in a specific destination using `getBestProperty`.
4. Retrieve Room Products for a selected property using `getproducts`.
5. Create Reservation with traveler and payment details.
6. Cancel Booking if needed using `CancelReservation`.

&#x20;

🎯 **Benefits**

* Real-Time Availability & Pricing\
  Ensure up-to-date data for accurate booking decisions.
* Flexible Search Options\
  Customize searches based on travel dates, occupancy, and preferences.
* Streamlined Reservation Flow\
  Simplified booking and cancellation processes for faster integration.
* Reliable Response Structure for easy integration\
  Consistent and predictable API responses for easier development.
* Scalable Architecture\
  Built to support high-volume travel applications with speed and reliability.


---

# 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.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.
