GET
# MakeMyTrip Hotel Rates API

Read nightly room rate plans for one MakeMyTrip hotel.

## Overview

Get dated MakeMyTrip room rate plans in INR for an Indian property using its hotel ID, city code, and stay context.

#### Scope

Use hotel\_id and city\_code from Search with the same stay context. Prices are nightly fields for the returned rate plan, not stay totals. Do not multiply a nightly value or infer a whole-stay total. An empty rooms list is returned only when the upstream confirms no availability; upstream failures remain non-2xx Problem Details responses.

#### Authentication

Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details.

### Endpoint URL

GET https://api.stayapi.com/v1/makemytrip/hotel/rates 

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| hotel\_id | string | Required | Numeric MakeMyTrip hotel ID from Search, 1 to 32 digits. Keep it as a string. |
| city\_code | string | Required | MakeMyTrip India city code, 2 to 32 letters or digits. For example CTBLR (Bengaluru) or CTGOI (Goa). |
| check\_in | date | Required | Check-in date, YYYY-MM-DD; today or later. |
| check\_out | date | Required | Check-out date, YYYY-MM-DD; after check-in, with a maximum stay of 30 nights. |
| adults | integer | Optional | Adults, 1 to 8. Default: 2. |
| rooms | integer | Optional | One room only. Default and only accepted value: 1. |
| child\_ages | integer[] | Optional | At most four child ages, each 0 to 17. Repeat the parameter: child\_ages=6&child\_ages=10. Omit for no children. |

## Response schema

Examples are illustrative. Prices and available content depend on the requested stay and property.

| Field | Type | Description |
| --- | --- | --- |
| success / hotel\_id / currency | boolean / string / string | Success flag, requested hotel ID, and fixed INR currency. |
| rooms | array | Available room entries; empty only when the upstream confirms no availability. |
| rooms[].room\_id / rooms[].name | string / string | Provider room identifier and published room name. |
| rooms[].rate\_plans | array | One or more available rate plans for this room. |
| rooms[].rate\_plans[].name / cancellation\_policy | string|null | Nullable published rate-plan name and cancellation-policy text. |
| rooms[].rate\_plans[].nightly\_price\_before\_taxes | number | Required positive, finite per-night amount before taxes and fees. |
| rooms[].rate\_plans[].nightly\_taxes\_and\_fees | number|null | Nullable nonnegative per-night taxes and fees; null exactly when the tax-inclusive amount is null. |
| rooms[].rate\_plans[].nightly\_price\_including\_taxes | number|null | Nullable per-night amount including taxes and fees; null exactly when taxes are null, otherwise the before-tax amount plus fees rounded to two decimals. Never a stay total. |

## Errors and limitations

Errors use RFC 7807 Problem Details with `provider: "makemytrip"`, and a correlation id when supplied.

- **400 INVALID\_INPUT** : invalid endpoint parameters, including stay dates, city code, or occupancy where accepted.
- **401 / 402 / 429** : check your API key, available quota, and account limits.
- **422** : a required parameter is missing or outside its declared type, range, or enum.
- **502 UPSTREAM\_ERROR** : MakeMyTrip could not complete the request.
- **503** : service temporarily unavailable. Honor `Retry-After` when supplied.
- **504 UPSTREAM\_TIMEOUT** : the provider request timed out.

## Related MakeMyTrip endpoints

[MakeMyTrip Hotel Search API](/docs/endpoints/makemytrip/search)[MakeMyTrip Hotel Details API](/docs/endpoints/makemytrip/details)[MakeMyTrip Hotel Rates API](/docs/endpoints/makemytrip/rates)[MakeMyTrip Hotel Reviews API](/docs/endpoints/makemytrip/reviews)

Request

```curl
curl -X GET "https://api.stayapi.com/v1/makemytrip/hotel/rates?hotel_id=20140905171351557&city_code=CTBLR&check_in=2026-12-10&check_out=2026-12-12&adults=2&rooms=1" \
  -H "X-API-Key: YOUR_API_KEY"
```

Response

```json
{
  "success": true,
  "hotel_id": "20140905171351557",
  "currency": "INR",
  "rooms": [
    {
      "room_id": "DLXK",
      "name": "Deluxe King Room",
      "rate_plans": [
        {
          "name": "Breakfast included",
          "nightly_price_before_taxes": 4500.0,
          "nightly_taxes_and_fees": 540.0,
          "nightly_price_including_taxes": 5040.0,
          "cancellation_policy": null
        }
      ]
    }
  ]
}
```

```json
{
  "type": "about:blank",
  "title": "MakeMyTrip request failed",
  "status": 502,
  "detail": "The upstream service could not complete the request.",
  "provider": "makemytrip",
  "error_code": "UPSTREAM_ERROR"
}
```
