Recommended Hotels Endpoint
Fetches the hotels curated for your partner account, for hotel discovery sections on a home page.
- Endpoint:
/api/v1/discover/hotels/recommended - Method:
GETorPOST
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Partner-Access-Token | Base64 String | Yes | Your encrypted AES-256 time-sensitive token. |
X-Currency | Currency Code | Optional | Requested currency code, e.g. THB or MMK. Defaults to your partner currency. |
Accept-Language | Language Code | Optional | One of en, th, zh-cn, zh-tw, zh-hk, ja, vi, ko, mm. Defaults to en. |
Accept | application/json | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | Integer | Optional | Maximum records to return. Defaults to 10. |
Sample Response
{
"result": 1,
"message": "success",
"data": [
{
"hotel_code": "757293",
"hotel_name": "Best Western Sukhumvit 20",
"slug": "best-western-sukhumvit-20-757293",
"country_code": "TH",
"country_name": "Thailand",
"city": "Bangkok",
"star_rating": 4,
"address": "17 Sukhumvit Soi 20Klong Toey, 10110",
"latitude": 13.73275,
"longitude": 100.56394,
"main_image": "https://onlynx-asset.s3.ap-southeast-1.amazonaws.com/UAT/admins/tourmind/J2BaQNoCIiryao80hMtNUHqxYaq4mHAPUt9qEbao.jpg",
"background_image": "https://onlynx-asset.s3.ap-southeast-1.amazonaws.com/UAT/admins/tourmind/J2BaQNoCIiryao80hMtNUHqxYaq4mHAPUt9qEbao.jpg",
"price": 100,
"currency": "THB",
"original_price": 100,
"original_currency": "THB"
}
]
}
Prices are the curated display prices, converted to the requested currency. original_price and original_currency hold the value before conversion.