Hotel Room Availability
Room-level availability for a single hotel. This is the call that makes a stay bookable: besides the full room detail (bed choices, prices, cancellation conditions, board), the response carries the booking handshake — a requestId you pass to POST /api/v3/bookings.
Endpoint: GET /api/v3/hotels/{id}/rooms/availability
Path parameter:
id— the hotel ID from the availability search or the catalog (raw or encoded form).
Query parameters:
| Parameter | Required | Description |
|---|---|---|
checkIn | yes | Check-in date, YYYY-MM-DD. |
checkOut | yes | Check-out date, YYYY-MM-DD; must be strictly after checkIn. |
rooms | yes | Room occupancies, deep-object encoded: rooms[0][adults]=2&rooms[0][childrenBirthdates][0]=2019-05-01. One entry per room you want to book. Optional firstAdultNationality (ISO 3166-1 alpha-2). |
suppliers | no | Restrict to these suppliers (Koob, Koedia, Rakuten, STAAH; case-insensitive). Omitted = all suppliers. |
tripId | no | Trip ID; derives the pricing organization and currency server-side. |
replaceBookingId | no | Booking being replaced; its allotment is released for this search. |
locale | no | Content language (ISO 639-1, e.g. fr) for room, bed, facility, board and condition texts; unknown or omitted = en. Own-inventory texts fall back to en per field; bed-bank suppliers are queried in that language. |
sort | no | Comma-separated sort keys among price, promotionsCount, instantAvailability; - prefix = descending (e.g. sort=-price). Omitted = instantly-bookable rooms first. Any other key returns 400 with code INVALID_SORT. |
Use the same stay dates and room occupancies you will book — the handshake stores them.
curl "https://api.koob.tech/api/v3/hotels/4242/rooms/availability?checkIn=2026-11-12&checkOut=2026-11-16&rooms[0][adults]=2&rooms[0][childrenBirthdates][0]=2019-05-01" \
-H "X-API-Key: your-api-key-here"Response
{
"data": [
{
"name": "Deluxe Garden View",
"description": "32m² room with balcony",
"extraInformation": null,
"instantAvailability": true,
"minCapacity": 1,
"maxCapacity": 3,
"supplier": {
"name": "Koob",
"code": "Koob",
"flux": null
},
"facilities": [
{ "name": "WiFi", "iconUrl": "https://cdn.koob.tech/icons/wifi.png" }
],
"images": [
{
"id": null,
"url": "https://cdn.koob.tech/rooms/812/1.jpg",
"name": "Room view"
}
],
"bedChoices": [
{
"id": "bed-812-double",
"offerId": "3f1c9a52-7b4e-4d2a-9e61-0c8d5b2f7a14",
"name": "1 double bed",
"tags": [
{
"code": "refundable",
"label": "Refundable",
"startAt": null,
"endAt": null
},
{
"code": null,
"label": "Breakfast included",
"startAt": null,
"endAt": null
}
],
"mealPlans": [
{
"code": "breakfast",
"label": "Breakfast included",
"startAt": null,
"endAt": null
}
],
"cancelConditions": [
{
"startAt": "2026-11-01T10:00:00.000Z",
"endAt": "2026-11-04T23:59:59.000Z",
"refundable": true,
"deduction": 0
},
{
"startAt": "2026-11-05T00:00:00.000Z",
"endAt": "2026-11-12T00:00:00.000Z",
"refundable": false,
"deduction": 606.0
}
],
"freeCancellationUntil": "2026-11-05T00:00:00.000Z",
"contractingConditions": "Rates include taxes and service…",
"checkInInstructions": null,
"price": {
"currency": "EUR",
"base": 640.0,
"supplements": [
{ "id": "promo-91", "name": "Gala dinner 24 Dec", "amount": 30.0 }
],
"discounts": [
{ "id": "promo-77", "name": "Early Bird 10%", "amount": 64.0 }
],
"total": 606.0
},
"hasExtraBed": false,
"hotelFees": [
{
"label": "City tax, payable on site",
"amount": 8.0,
"currency": "EUR"
}
],
"addOns": [
{ "id": "promo-80", "name": "Late check-out", "amount": 45.0 }
],
"perks": []
}
],
"compatibleRoomCompositions": []
}
],
"meta": {
"requestId": "6f1f9e0c-0a52-4c5e-9c1d-3f2b7a9e8d41",
"expiresAt": "2026-11-01T10:15:00.000Z"
}
}The booking handshake
meta.requestIdidentifies the priced offer set server-side. It is required byPOST /api/v3/bookingsand expires atmeta.expiresAt, about 15 minutes after the call.- Booking with an expired
requestIdreturns404. Re-run this request and book with the freshrequestId— prices may have changed, so show them again to your user. - To book, keep two values: the
requestId(one per booking) and, for each room, theofferIdof the bed choice picked. Add the ids of any add-ons the guest chose. No other identifier is needed; supplier internals never round-trip through your integration.
Room fields
instantAvailability:true= instantly bookable;false= on-request (the booking waits for supplier confirmation).minCapacity/maxCapacity: guest capacity bounds;nullwhen the supplier does not expose capacity. Results are already filtered to the occupancy you requested, sonulldoes not need client-side handling.supplier: the sales channel (Koob,Koedia,Rakuten,STAAH).fluxidentifies the bed bank, chain or inventory behind a Koedia rate and isnullfor suppliers that sell direct.- The response follows the fixed-schema convention: every key is always present, empty collections are
[], absent scalars arenull.
Bed choice fields
Each bedChoices entry is one offer: a bed configuration at one price, with the promotions that price it. See Offers, promotions and add-ons.
id— the bed configuration. Offers of the same bed with other promotions share it, so it does not name an offer on its own.offerId— this offer. Send it asofferIdwhen booking, with therequestIdit came with: each search gives new ids.price— the price for the whole stay; see Price.hasExtraBed—truewhen the rate includes an extra bed (already in the price).cancelConditions/freeCancellationUntil— the cancellation fee ladder and the moment free cancellation ends; see Cancellation conditions.contractingConditions/checkInInstructions— supplier contract text and check-in notes.tags— refundability and extra-bed tags carry a stablecode(refundable,non_refundable,extra_bed) with alabelin the requestedlocale; board tags havecode: nulland the supplier's own wording.mealPlans— the structured board; see Meal plans. Prefer it over parsingtags.hotelFees— fees payable on site, never inprice.addOns— optional supplements the guest may add to this offer,{ id, name, amount }. Send the ids picked asaddOnIdswhen booking; each is charged itsamount, and the booked room's price lists it in itssupplements.perks— upgrades and amenities the rate comes with:{ id, name, type, upgradedFromRoom, upgradedToRoom },type=upgradeoramenity, the two rooms as{ id, name }on an upgrade andnullon an amenity.
Deprecated, removed on 2027-01-31: currency, totalPriceWithPromo, totalPriceWithoutPromo, promotions, promotionInfo, mandatorySupplements and optionalSupplements. Everything they said is in price, perks and addOns.
Price
Every price in v3 has the same shape:
{
"currency": "EUR",
"base": 640.0,
"supplements": [
{ "id": "promo-91", "name": "Gala dinner 24 Dec", "amount": 30.0 }
],
"discounts": [{ "id": "promo-77", "name": "Early Bird 10%", "amount": 64.0 }],
"total": 606.0
}totalis what is paid, and always equalsbase + Σ supplements[].amount − Σ discounts[].amount, to the cent.baseis the rate before any supplement or discount.supplementsare the compulsory supplements (a gala dinner, an early check-in the rate requires).discountsare the promotions and free nights. Amounts are positive, incurrency; the list says whether a line adds or takes away. A percentage promotion shows as the amount it takes off.- The price before discounts, to strike out, is
baseplus the supplements. - For bed-bank suppliers (Koedia, Rakuten, STAAH, TL-Lincoln) the supplier has already applied its own promotions to the rate it returns: they are inside
baseand the lists are empty.
Offers, promotions and add-ons
A hotel's promotions combine by its own rules: some go together, some exclude each other. The same bed is listed once per combination the rules allow, each listing with its own offerId and price. For example, the double room might be offered with Early Bird at 606.00 and with Long Stay at 590.00: two bed choices, same id, two offerIds.
- Promotions are not picked one by one. Pick an offer; its
price.discountsare the promotions it is booked with, and itsperksthe upgrades and amenities it comes with. Booking itsofferIdbooks exactly that price. - Compulsory supplements are already in every offer's
price.supplements. - Add-ons are the optional supplements (a late check-out, a dinner). They are not part of any offer's price: each offer lists the ones the guest may add in
addOns, with what each costs. Send the ids picked asaddOnIds; one the offer does not list is refused with a400.
A booking room is therefore one offerId plus any addOnIds.
Meal plans (board)
mealPlans is the machine-readable board of a bed choice. The same information also appears as free text in tags (the label values are identical), but board tags wording varies by supplier and language — build your logic on mealPlans (and on tags[].code for refundability), and use tags[].label only for display.
Each entry:
{
"code": "half_board",
"label": "Demi-pension",
"startAt": "2026-11-12T00:00:00.000Z",
"endAt": "2026-11-14T00:00:00.000Z"
}code — the canonical board. One of exactly seven values:
code | Included meals |
|---|---|
room_only | No meals. |
breakfast | Breakfast (bed & breakfast). |
lunch | Lunch only. |
dinner | Dinner only. |
half_board | Breakfast plus one main meal (lunch or dinner). |
full_board | Breakfast, lunch and dinner. |
all_inclusive | All meals and (per the hotel's terms) drinks and extras. |
Why code can be null. Boards originate as supplier free text ("Bed & Breakfast", "Demi-pension", "Standard Rate with meals"). We classify that text into the seven codes: hotel-managed inventory carries a curated code set by the hotel's operator, and channel rates are classified from their label. When a label doesn't map to any standard board, code is null and label still carries the original text — so you can always display the board, even when you can't filter on it. Treat null as "board present but unclassified", never as room-only.
Why it is an array with startAt / endAt. Hotel-managed inventory contracts define the board per season. A stay whose board changes between contract periods gets one entry per board, each with its validity window (ISO 8601 date-times, from its first night to the morning after its last night, so a board covering the whole stay runs from check-in to checkout) telling you which part of the stay it covers — e.g. half board until the 14th, breakfast after. Windows never extend beyond the stay. Channel and bed-bank rates (Koedia, Rakuten, STAAH) always price one board for the whole stay: one entry, startAt/endAt both null. So the rules are:
- one entry,
nullwindows → the board covers the whole stay (the common case); - several entries → the board changes during the stay; the windows partition it;
startAt: null/endAt: nullon any entry → no restriction on that side.
An empty array means no board information, not room-only. Some rates carry no board at all (for example a channel rate plan whose name is just "Standard Rate"). If your product must always show a board, display nothing or "not specified" — do not assume room_only.
Integration guidance: filter and compare on code, display label, never parse labels yourself. If you need one board per rate for display, use the entry covering the check-in date, or list all windows.
The mealPlans on the availability search room previews follow exactly the same rules.
Cancellation conditions
cancelConditions is a ladder of fee windows, ordered by time. Each entry means: cancelling while startAt ≤ now < endAt costs deduction, in the price's currency (never a percentage — supplier percentages are already converted to amounts). A window with deduction: 0 is free. All timestamps are ISO 8601 in UTC.
"cancelConditions": [
{ "startAt": "2026-10-20T08:00:00.000Z", "endAt": "2026-10-28T23:59:59.000Z", "refundable": true, "deduction": 0 },
{ "startAt": "2026-10-29T00:00:00.000Z", "endAt": "2026-11-04T23:59:59.000Z", "refundable": true, "deduction": 128.00 },
{ "startAt": "2026-11-05T00:00:00.000Z", "endAt": "2026-11-12T00:00:00.000Z", "refundable": false, "deduction": 576.00 }
],
"freeCancellationUntil": "2026-10-29T00:00:00.000Z"Read this as:
- Until Oct 29: cancellation is free.
- Oct 29 – Nov 5: cancelling costs 128.00 EUR; the rest is refunded.
- Nov 5 – check-in: cancelling costs 576.00 EUR.
freeCancellationUntil is the start of the first window with a fee: display "free cancellation until …" from it. It is null when there is no free window or the terms are unknown.
Read deduction, not refundable: what refundable means differs by supplier.
An empty cancelConditions means the supplier gave no cancellation policy for this rate. Treat the terms as unknown and refer your user to contractingConditions; do not present the rate as freely cancellable.
Conditions are per bed choice: in a multi-room combination the last room of the branch carries the conditions for the whole combination.
Multi-room stays
When you request several rooms:
- Own-inventory rates (
Koob) return a flat list: pick one bed choice per requested room from the top-leveldata, and send one booking room entry per pick.compatibleRoomCompositionsis[]. - Bed-bank rates (
Koedia,STAAH) price the whole stay as one combination: the room for your second requested occupancy is nested inside the first room'scompatibleRoomCompositions, the third inside the second's, and so on. Walk one branch of the tree, picking one bed choice at each level, and send theirofferIds in request order. The last room of the branch carries the cancellation and contract conditions for the whole combination.
In both cases the booking request shape is the same: one rooms entry per requested room, each with its offerId, any addOnIds, and travelers. Continue to Hotel Booking.