Hotels

Create a hotel search

Creates a Book-on-Wego hotel search (city, single hotel, or geo point) and returns its opaque searchId plus the occupancy priced upstream (resolved child ages, incl. the age-8 fallback when none supplied). Poll /results for ranked hotels. A hotelId search is the only one getHotelRates accepts.

post/v1/hotels/searches

Request body

OR
OR

Example request

{
  "cityCode": "DXB"
}

Response

Search created.

searchIdstring required

Opaque id for the created search.

siteCodestring required

The site code (Wego market) the search was created for.

siteCodeSource'explicit' | 'default' required

How the API resolved siteCode: explicit (caller-supplied – including a market a client derived and passed) or default (US, no site supplied).

Changes

Changed in 1 of the 8 revisions of this API.6

    • added the new rates_require_hotel_search enum value to the code response property for the response status 400

      response-property-enum-value-added

    • added the new rates_require_hotel_search enum value to the code response property for the response status 401

      response-property-enum-value-added

    • added the new rates_require_hotel_search enum value to the code response property for the response status 404

      response-property-enum-value-added

    • added the new rates_require_hotel_search enum value to the code response property for the response status 429

      response-property-enum-value-added

    • added the new rates_require_hotel_search enum value to the code response property for the response status 502

      response-property-enum-value-added

    • added the new rates_require_hotel_search enum value to the code response property for the response status 503

      response-property-enum-value-added