2.2.5 推送数据查询
约 427 字大约 1 分钟
2025-04-24
提示
- 可选.
- 推送至klook价格获取,用于价格检查
URL
/supplier/openapi/{supplierCode}/get/klook/rates
入参
接口请求参数
| 字段 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
hotelId | String | true | 酒店 id,目前只支持 klookHotelId |
roomRatePlanDateRangeList | list<RoomRatePlanDateRange> | true | 房型 rateplan 请求列表 |
RoomRatePlanDateRange
| 字段 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
roomId | String | true | 房型 id,可以是 klookRoomId 或 supplierRoomId |
ratePlanId | String | true | 价格计划 id,可以是 klookRatePlanId 或 supplierRatePlanId |
dateRangeList | list<DateRange> | true | 时间范围列表,最多 30 天数据(Start-end 间隔不能超过 30 天) |
入参示例
{
"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"
}
]
}
]
}
}出参
标准空返回
出参示例
{
"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
}
}
]
}
}