List a hotel's rooms & rates
Changed onReturns the Book-on-Wego rooms & rates for a hotel (cheapest-first): room name, board, refundability, price, and each rate's composed booking reference id. searchId must name a hotel-scoped search (one created with hotelId); a city or geo search is a 409.
Request
- Base URLhttps://api.wego.com
- Auth
- OAuth 2Authorization codehttps://auth.wego.com/user-auth/v2/users/oauth/authorizeToken URLhttps://auth.wego.com/user-auth/v2/users/oauth/token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The hotel's numeric id (a positive integer), as carried by hotel search results (results[].hotelId) and embedded in a rate id.
Query parameters
The search the hotel was found in (from createHotelSearch); rates are priced within that search context. Required.
Pricing currency as a 3-letter ISO 4217 code (e.g. AED). Defaults to USD.
Response language tag (e.g. en, ar). Defaults to en.
Response
Cheapest-first Book-on-Wego rates.
Changes
- warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - info
added the non-success response with the status
- warning
- info
added the optional property
///to the response with the status
- info