# Booking API

Hotel BookingAPI is the primary API within the TCTT Hotel API ecosystem. It handles the entire booking process, allowing hotels to be booked in real-time in as few as three steps. The API supports generating hotel lists, confirming bookings, retrieving booking details, managing cancellations, and obtaining detailed booking information.

#### Hotel Booking API methods

The Hotel BookingAPI offers three essential methods to streamline booking functions: **Hotel Availability**, **CheckRates**, and **Bookings**.

<details>

<summary>Hotel Availability</summary>

This method is utilized to request room availability, allowing for the application of various filters and special features before submitting an availability request.

With flexible date search capabilities, customers can retrieve available rates for a specified number of days before and after the check-in date.

The generated response includes a list of hotels, detailing different room types, board types, and rates available for those hotels—extending beyond just the selected dates.

BookingAPI prices are final, incorporating all supplements and discounts, eliminating the need for additional price calculations.

Additionally, the availability response may include cancellation fees, providing amounts and relevant dates during the initial booking step.

</details>

<details>

<summary>CheckRate</summary>

This API should be invoked to reconfirm the rate details and obtain the cancellation policy, as well as any associated rate comments.

</details>

<details>

<summary>Bookings</summary>

Bookings APIs serves three distinct purposes:

1. Confirm a booking.
2. Access details of a specific booking.
3. Cancel a booking.

</details>


---

# 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://apidocs.mytravellerschoice.com/hotel-booking-api/booking-api.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.
