2.2.4 Push Room Level Inventory
About 263 wordsLess than 1 minute
2025-04-25
Tips
- Optional.
- If inventory cannot be provided at the ratePlan level and only room level inventory is available, use this interface.
- If the inventory update interface at the room type level (
push/room/inventory) is used, then the data update at the RatePlan level does not need to provide inventory data (/push/rates). If both the RatePlan level and the room type level inventory data are provided simultaneously, klook will eventually use the room type level inventory to cover the RatePlan level inventory data
URL
/supplier/openapi/{supplierCode}/push/room/inventory
Input Parameters
| Field | Type | Required | Description |
|---|---|---|---|
hotelId | String | true | Hotel ID: klookHotelId or supplierHotelId. Currently only supports klookHotelId. |
roomDateRangInventoryList | list<RoomDateRangInventory> | true | List of room level inventory pushes. |
RoomDateRangInventory
| Field | Type | Required | Description |
|---|---|---|---|
roomId | String | true | Room ID: klookRoomId or supplierRoomId. |
dateRangeList | list<DateRange> | true | List of date ranges for room level inventory push. |
inventory | Integer | false | Inventory. |
close | string | false | Whether to close room. Enumeration: open, close Optional |
DateRange Description
| Field | Type | Required | Description |
|---|---|---|---|
start | String | true | Start date: YYYY-MM-DD (inclusive) |
end | String | true | End date: YYYY-MM-DD (inclusive). Cannot exceed 180 days |
Input Example
{
"base": {
"requestId": "xxxxx111bbbbbcccc",
"requestTime": "2025-11-28T12:06:15.890+08:00"
},
"requestData": {
"hotelId": "3850",
"roomDateRangInventoryList": [
{
"roomId": "4991",
"dateRangeList": [
{
"start": "2025-05-10",
"end": "2025-05-10"
}
],
"inventory": 4,
"close": "close" // or "open", optional
}
]
}
}Output Parameters
Standard empty response
Output Example
{
"success": true,
"error": {
"code": "",
"message": ""
}
}