Hotel Rooms
Read and edit the rooms of your own hotels: their type, facilities, bed configurations and images. Promotions and allotments point at rooms by id, and this is where you find those ids.
These endpoints are for DMC keys. A tour operator key gets 404 on every one of them. A room of another hotel answers 404 with ROOM_NOT_FOUND.
For the full request and response schemas, see the complete API Reference.
| What | Endpoint |
|---|---|
| The rooms | GET / POST /api/v3/hotels/{id}/rooms |
| One room | GET / PUT / PATCH / DELETE /api/v3/hotels/{id}/rooms/{roomId} |
| Its images | GET / POST /api/v3/hotels/{id}/rooms/{roomId}/images |
| One image | PATCH / DELETE /api/v3/hotels/{id}/rooms/{roomId}/images/{imageId} |
Read the rooms
GET /api/v3/hotels/1042/rooms returns every room of the hotel, with no pagination (the hotel bounds the list):
{
"data": [
{
"id": "5521",
"name": "Deluxe Garden View",
"type": { "id": "12", "name": "Deluxe" },
"facilities": [
{
"id": "301",
"name": "Balcony",
"iconUrl": "https://storage.googleapis.com/koob-icons/balcony.svg",
"details": "Faces the garden"
}
],
"description": "38 m² room opening on the tropical garden.",
"quantity": 8,
"minCapacity": 1,
"maxCapacity": 3,
"bedConfigurations": [
{
"id": "7710",
"beds": [{ "bed": { "id": "2", "name": "Double bed" }, "count": 1 }]
},
{
"id": "7711",
"beds": [{ "bed": { "id": "1", "name": "Single bed" }, "count": 2 }]
}
],
"images": [
{
"id": "99120",
"url": "https://storage.googleapis.com/koob-images/rooms/99120.jpg",
"name": "Garden view"
}
],
"koediaId": null,
"rakutenId": null,
"createdAt": "2025-11-04T10:02:00.000Z",
"updatedAt": "2026-09-18T07:45:31.000Z"
}
]
}quantityis how many rooms of this kind the hotel has.minCapacityandmaxCapacityare computed from the bed configurations. You cannot write them; change the beds instead.- A facility's
idis the facility itself, the value you send back asfacilityId.detailsis this room's own text about it. - Pass
localeto read the names and texts in another language.
Create a room
POST /api/v3/hotels/1042/rooms answers 201 with the room, in the same shape:
{
"name": "Deluxe Garden View",
"typeId": "12",
"facilities": [{ "facilityId": "301", "details": "Faces the garden" }],
"description": "38 m² room opening on the tropical garden.",
"quantity": 8,
"bedConfigurations": [
{ "beds": [{ "bedId": "2", "count": 1 }] },
{ "beds": [{ "bedId": "1", "count": 2 }] }
],
"koediaId": null,
"rakutenId": null
}name, typeId, quantity and bedConfigurations are required. quantity runs from 0 to 10,000. A room needs at least one bed configuration that sleeps a guest, since its capacity comes from the beds: an empty list answers 400. The new room takes the hotel's cancellation conditions. Images never travel in this body: add them through the room image endpoints below.
An unknown typeId, facilityId or bedId answers 400 with INVALID_FIELD_VALUE and names the field in details.field. The same bed twice in one configuration answers 400 with DUPLICATE_REFERENCE.
Change a room
PATCH changes only the keys you send:
{ "quantity": 10, "description": "40 m² room opening on the tropical garden." }null clears description, facilities, koediaId and rakutenId. A room always has a name, a type, a quantity and a bed configuration, so null on name, typeId, quantity or bedConfigurations answers 400.
PUT replaces the whole room. A field you leave out goes back to its default and facilities left out is emptied. It takes the same required fields as POST.
facilities and bedConfigurations are replaced whole whenever you send them, on both verbs. Within bedConfigurations, a configuration sent with its id is kept (its beds become the ones you send) and one you leave out is removed.
Both return the updated room.
Delete a room
DELETE /api/v3/hotels/1042/rooms/5521 returns 204. The room leaves the catalog and availability; past bookings keep referring to it.
While a booking of the room has not ended (any state but draft, cancelled, refused, replaced or failed, with a departure today or later), the delete answers 409 with ROOM_HAS_ACTIVE_BOOKINGS and details.bookingsCount. The same rule guards deleting a hotel.
Room images
They work like the hotel images: one image per call, sent as a base64 data URI, each addressed by its own id.
POST /api/v3/hotels/1042/rooms/5521/images
{
"name": "garden-view.jpg",
"data": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ...",
"primary": true
}PATCH .../images/{imageId} renames an image or makes it the main one, and DELETE .../images/{imageId} removes it. Adding or removing one image leaves the others alone.
Migrating from v1
| v1 | v3 |
|---|---|
GET /api/v1/hotels/{hotelId}/hotelRooms | GET /api/v3/hotels/{id}/rooms |
POST /api/v1/hotels/{hotelId}/hotelRooms | POST /api/v3/hotels/{id}/rooms, answers the room |
PUT /api/v1/hotels/{hotelId}/hotelRooms/{id} | PUT or PATCH /api/v3/hotels/{id}/rooms/{roomId} |
displayName, roomId, count | name, typeId, quantity |
hotelRoomCompositions[].hotelRoomCompositionBeds | bedConfigurations[].beds |
hotelRoomFacilities | facilities |
attachments | /rooms/{roomId}/images sub-resource |