CheapestRatesRequest
Request object for fetching the cheapest rates
Check-in date in hotel's time zone, in ISO-8601 date format (YYYY-MM-DD). Maximum 365 days lead-time.
Check-out date in hotel's time zone, in ISO-8601 date format (YYYY-MM-DD). Maximum 60 days permitted stay.
Array of Wego hotel ids. Maximum 100 hotel ids per request.
rooms object[]required
Details of rooms requested. Maximum 8 rooms per request.
Number of adults in the room. Each room maximum 9 guests allowed.
Ages of children if staying in the room. Maximum 17.
User's country code. Use ISO 3166-1 alpha-2 country code
USDevice used by the user
Possible values: [DESKTOP, MOBILE, TABLET]
DESKTOPIndicate whether user in partner site is logged in.
falseIndicate whether this user booked another service other than hotels in partner site.
falsecorporateCodes object[]
Negotiated corporate codes to search with. Optional - when omitted or empty the search behaves exactly as a public search. Each code supplied triggers an additional supplier request, and any rate returned for a corporate code carries that code in its corporateCode field. Corporate rates are returned alongside the public rates, not instead of them.
The hotel chain or brand this corporate code should be used for, for example "hilton". Required - a corporate code is only meaningful together with the chain it was negotiated with.
The client's negotiated corporate code for that chain or brand. Required.
{
"checkInDate": "2024-05-18",
"checkOutDate": "2024-05-20",
"hotelIds": [
"{{hotelId}}"
],
"rooms": [
{
"adultsCount": 2,
"childrenAges": [
12
]
}
],
"userCountry": "MY",
"deviceType": "DESKTOP",
"isUserLoggedIn": false,
"isPackage": false,
"corporateCodes": [
{
"name": "hilton",
"code": "HIL12345"
}
]
}