GET /v1/hotels/{hotelId}/rates
Returns the Book-on-Wego rooms & rates for a hotel (cheapest-first): room name, board, refundability, price, and each rate’s composed booking reference id.
Operation ID: getHotelRates
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
hotelId |
path | integer | yes | |
searchId |
query | string | yes | |
currency |
query | string | no | |
locale |
query | string | no |
Responses
| Status | Description |
|---|---|
200 |
Cheapest-first Book-on-Wego rates. |
400 |
Invalid request parameters. |
401 |
Missing or invalid bearer token. |
404 |
Unknown/expired search, or unknown hotel. |
429 |
Rate limit exceeded; retry after the Retry-After seconds. |
502 |
The upstream hotels service returned an invalid response. |
503 |
The hotels service is unavailable; retry after the Retry-After seconds. |
Example
curl -s -H "Authorization: Bearer $TOKEN" \
"https://api.wego.com/v1/hotels/$HOTEL_ID/rates?searchId=VALUE"