latestOpenAPI 3.1.02026-08-21211181.8 KB

e5d7af502419

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 were supplied). Poll /results for ranked hotels.

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).