2.2.5 Push Data Query
About 379 wordsAbout 1 min
2025-04-25
Tips
- Optional.
- Push to Klook for price retrieval, used for price checking
URL
/supplier/openapi/{supplierCode}/get/klook/rates
Input Parameters
Interface Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
hotelId | String | true | Hotel ID, currently only supports klookHotelId |
roomRatePlanDateRangeList | list<RoomRatePlanDateRange> | true | List of room type and rate plan requests |
RoomRatePlanDateRange
| Field | Type | Required | Description |
|---|---|---|---|
roomId | String | true | Room ID, can be klookRoomId or supplierRoomId |
ratePlanId | String | true | Rate plan ID, can be klookRatePlanId or supplierRatePlanId |
dateRangeList | list<DateRange> | true | List of date ranges, maximum 30 days of data (Start-end interval cannot exceed 30 days) |
Input Example
{
"base": {
"requestId": "xxxxx111bbbbbcccc",
"requestTime": "2025-11-28T12:06:15.890+08:00"
},
"requestData": {
"hotelId": "3850",
"roomRatePlanDateRangeList": [
{
"roomId": "4991",
"ratePlanId": "10482884",
"dateRangeList": [
{
"start": "2025-05-01",
"end": "2025-05-02"
},
{
"start": "2025-05-10",
"end": "2025-05-10"
}
]
}
]
}
}Output Parameters
Standard empty response
Output Example
{
"success": true,
"error": {
"code": "",
"message": ""
},
"result": {
"rateDataList": [
{
"hotelId": "3850",
"roomId": "4991",
"rateId": "10482884",
"date": "2025-05-01",
"inventory": 3,
"currency": "SGD",
"rate": {
"type": 2,
"personRate": {
"basePersonRateList": [
{
"amountAfterTax": "100",
"adultCount": 2,
"childCount": 0
},
{
"amountAfterTax": "110",
"adultCount": 3,
"childCount": 0
}
],
"extraChildRate": {
"childType": 0
}
}
},
"restriction": {
"maxStayArrival": 0,
"minAdvanceDay": 0,
"maxAdvanceDay": 0,
"fplos": "1111111"
},
"mealPlan": {
"meal": 1,
"mealCount": 2
}
},
{
"hotelId": "3850",
"roomId": "4991",
"rateId": "10482884",
"date": "2025-05-02",
"inventory": 3,
"currency": "SGD",
"rate": {
"type": 1,
"roomRate": {
"amountBeforeTax": "190",
"amountAfterTax": "200"
},
"personRate": {
"basePersonRateList": [
{
"amountBeforeTax": "91",
"amountAfterTax": "100",
"adultCount": 2,
"childCount": 0
},
{
"amountBeforeTax": "92",
"amountAfterTax": "110",
"adultCount": 2,
"childCount": 1
}
],
"extraAdultRate": {
"amountBeforeTax": "40",
"amountAfterTax": "50"
},
"extraChildRate": {
"childType": 1,
"childByAgeList": [
{
"amountBeforeTax": "1",
"amountAfterTax": "10",
"minAge": 0,
"maxAge": 6
},
{
"amountBeforeTax": "2",
"amountAfterTax": "20",
"minAge": 6,
"maxAge": 12
}
]
}
}
},
"restriction": {
"maxStayArrival": 0,
"minAdvanceDay": 0,
"maxAdvanceDay": 0,
"fplos": "1111111"
},
"mealPlan": {
"meal": 1,
"mealCount": 2
}
},
{
"hotelId": "3850",
"roomId": "4991",
"rateId": "10482884",
"date": "2025-05-10",
"inventory": 3,
"currency": "SGD",
"rate": {
"type": 1,
"roomRate": {
"amountBeforeTax": "190",
"amountAfterTax": "200"
},
"personRate": {
"basePersonRateList": [
{
"amountBeforeTax": "91",
"amountAfterTax": "100",
"adultCount": 2,
"childCount": 0
},
{
"amountBeforeTax": "92",
"amountAfterTax": "110",
"adultCount": 2,
"childCount": 1
}
],
"extraAdultRate": {
"amountBeforeTax": "40",
"amountAfterTax": "50"
},
"extraChildRate": {
"childType": 1,
"childByAgeList": [
{
"amountBeforeTax": "1",
"amountAfterTax": "10",
"minAge": 0,
"maxAge": 6
},
{
"amountBeforeTax": "2",
"amountAfterTax": "20",
"minAge": 6,
"maxAge": 12
}
]
}
}
},
"restriction": {
"maxStayArrival": 0,
"minAdvanceDay": 0,
"maxAdvanceDay": 0,
"fplos": "1111111"
},
"mealPlan": {
"meal": 1,
"mealCount": 2
}
}
]
}
}