Hotel Detail Endpoint
Fetches static detail for a single hotel.
- Endpoint:
/api/v1/tourmind/hotels/{slug} - Method:
GET
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Partner-Access-Token | Base64 String | Yes | Your encrypted AES-256 time-sensitive token. |
Accept | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
slug | String | Yes | Hotel slug from the hotel static data or suggestion endpoint. |
Sample Response
{
"result": 1,
"message": "success",
"data": {
"hotel": {
"id": 86352,
"hotel_code": 8317663,
"slug": "100-islands-resort-spa-8317663",
"name": "100 Islands Resort & Spa",
"star_rating": 3,
"city": "Koh Samui Islands",
"country_code": "TH",
"address": "19/6 Moo 3 By Pass Road Makhamtia, Muang",
"latitude": 9.10275,
"longitude": 99.30452,
"images": [
"http://tm-lodging-content.tourmind.cn/lodging/img/8317663/c4472bf1_b.jpg"
],
"amenities_hotel": [
{
"name": "Free WiFi"
}
],
"amenities_room": [
{
"name": "Air conditioning"
}
],
"description": {
"headline": "In Surat Thani (Makham Tia)",
"location": "In the heart of Surat Thani..."
},
"location": "In the heart of Surat Thani...",
"headline": "In Surat Thani (Makham Tia)",
"is_active": true,
"room_types": [
{
"id": 994654,
"room_type_id": "5587675",
"room_type_code": null,
"name": "Pool View",
"bed_type": "1 king bed",
"max_occupancy": 2
}
]
}
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
data.hotel | Object | Hotel information. |
hotel_code | Integer | Provider hotel code. |
images | Array | Hotel image URLs. |
amenities_hotel | Array | Hotel-level amenities. |
amenities_room | Array | Room-level amenities. |
description | Object | Hotel description sections. |
room_types | Array | Static room type information. |