2.2.2 Get Klook Hotel Details
About 330 wordsAbout 1 min
2025-04-25
Tips
- Required.
- Get Klook Shell Resource - Single Hotel Details
URL
/supplier/openapi/{supplierCode}/get/hotel/products
Input Parameters
| Field | Type | Required | Description |
|---|---|---|---|
hotelId | String | true | Hotel ID, related to idType |
idType | integer | true | ID type 1 - Data update based on Klook ID (e.g., Klook hotel ID),2 - Update based on supplier ID (e.g., supplier hotel ID) |
Input Example
{
"base": {
"requestId": "xxxxx111bbbbbcccc",
"requestTime": "2025-11-28T12:06:15.890+08:00"
},
"requestData": {
{
"hotelId": "AA", //supplier hotel id
"idType": 2
}
}
}
Or
{
"base": {
"requestId": "xxxxx111bbbbbcccc",
"requestTime": "2025-11-28T12:06:15.890+08:00"
},
"requestData": {
{
"hotelId": "100", //klook hotel id
"idType": 1
}
}
}Output Parameters
| Field | Type | Required | Description |
|---|---|---|---|
hotelId | String | true | Hotel ID |
hotelName | String | true | Hotel Name |
roomId | String | true | Room ID |
roomName | String | true | Room Name |
ratePlanId | String | true | Rate Plan ID |
ratePlanName | String | true | Rate Plan Name |
childRateType | integer | true | * Hotel level child rate type: * 0: Normal Adult-Child count enumeration list; * 1: ByAge Child age-based pricing; * 2: Free Child free; * 3: AsAdult Child counts as adult * 4: TotalPersonNumberRate Total person price, prices different tiers based on total occupancy, then determine the corresponding child price based on child age (OpenApi does not support this temporarily) |
maxOccupancy | Integer | true | ratePlan Maximum occupancy |
maxAdults | Integer | true | ratePlan Maximum adults |
maxChildren | Integer | true | ratePlan Maximum children |
Output Example
If the input parameter is `supplierHotelIds`,
then the output parameter will be:
{
"hotelId": "supplier hotelId",
"hotelName": "supplier Sample Hotel",
"roomId": "supplier roomId",
"roomName": "supplier Deluxe Room",
"ratePlanId": "supplier ratePlanId",
"ratePlanName": "supplier Flexible Rate",
"childRateType": 0,
"maxOccupancy": 5,
"maxAdults": 2,
"maxChildren": 4,
}
If the input parameter is `klookHotelIds`,
then the output parameter will be:
{
"hotelId": "klook hotelId",
"hotelName": "klook Sample Hotel",
"roomId": "klook roomId",
"roomName": "klook Deluxe Room",
"ratePlanId": "klook ratePlanId",
"ratePlanName": "klook Flexible Rate",
"childRateType": 0,
"maxOccupancy": 5,
"maxAdults": 2,
"maxChildren": 4,
}