Skip to content

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:

ParameterRequiredDescription
checkInyesCheck-in date, YYYY-MM-DD.
checkOutyesCheck-out date, YYYY-MM-DD; must be strictly after checkIn.
roomsyesRoom 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).
suppliersnoRestrict to these suppliers (Koob, Koedia, Rakuten, STAAH; case-insensitive). Omitted = all suppliers.
tripIdnoTrip ID; derives the pricing organization and currency server-side.
replaceBookingIdnoBooking being replaced; its allotment is released for this search.
localenoContent 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.
sortnoComma-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.

bash
curl "https://api.v2koob.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 ​

json
{
  "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.requestId identifies the priced offer set server-side. It is required by POST /api/v3/bookings and expires at meta.expiresAt, about 15 minutes after the call.
  • Booking with an expired requestId returns 404. Re-run this request and book with the fresh requestId — 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, the offerId of 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; null when the supplier does not expose capacity. Results are already filtered to the occupancy you requested, so null does not need client-side handling.
  • supplier: the sales channel (Koob, Koedia, Rakuten, STAAH). flux identifies the bed bank, chain or inventory behind a Koedia rate and is null for suppliers that sell direct.
  • The response follows the fixed-schema convention: every key is always present, empty collections are [], absent scalars are null.

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 as offerId when booking, with the requestId it came with: each search gives new ids.
  • price — the price for the whole stay; see Price.
  • hasExtraBed — true when 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 stable code (refundable, non_refundable, extra_bed) with a label in the requested locale; board tags have code: null and the supplier's own wording.
  • mealPlans — the structured board; see Meal plans. Prefer it over parsing tags.
  • hotelFees — fees payable on site, never in price.
  • addOns — optional supplements the guest may add to this offer, { id, name, amount }. Send the ids picked as addOnIds when booking; each is charged its amount, and the booked room's price lists it in its supplements.
  • perks — upgrades and amenities the rate comes with: { id, name, type, upgradedFromRoom, upgradedToRoom }, type = upgrade or amenity, the two rooms as { id, name } on an upgrade and null on 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:

json
{
  "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
}
  • total is what is paid, and always equals base + Σ supplements[].amount − Σ discounts[].amount, to the cent.
  • base is the rate before any supplement or discount.
  • supplements are the compulsory supplements (a gala dinner, an early check-in the rate requires). discounts are the promotions and free nights. Amounts are positive, in currency; 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 base plus 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 base and 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.discounts are the promotions it is booked with, and its perks the upgrades and amenities it comes with. Booking its offerId books 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 as addOnIds; one the offer does not list is refused with a 400.

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:

json
{
  "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:

codeIncluded meals
room_onlyNo meals.
breakfastBreakfast (bed & breakfast).
lunchLunch only.
dinnerDinner only.
half_boardBreakfast plus one main meal (lunch or dinner).
full_boardBreakfast, lunch and dinner.
all_inclusiveAll 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, null windows → the board covers the whole stay (the common case);
  • several entries → the board changes during the stay; the windows partition it;
  • startAt: null / endAt: null on 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.

json
"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.

Which contract prices a stay ​

A hotel may sell under several contract lines, one per market. Your key sees only the contracts that apply to your organization: the lines your DMC linked to you, or the default line when none is. Rates, offers and cancellation conditions come from those contracts alone, and a night they do not cover is unavailable.

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-level data, and send one booking room entry per pick. compatibleRoomCompositions is [].
  • 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's compatibleRoomCompositions, the third inside the second's, and so on. Walk one branch of the tree, picking one bed choice at each level, and send their offerIds 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.

Rates over a window ​

Endpoint: GET /api/v3/hotels/{id}/rates

What a stay costs in one room from each check-in day of a window, for one room's party, without a call per date: the calendar view of the prices this page quotes.

ParameterRequiredDescription
fromnoFirst check-in day, YYYY-MM-DD. Defaults to today; an earlier day reads as today.
tonoLast check-in day, YYYY-MM-DD. Defaults to a year after from; at most 366 days.
nightsnoLength of the stay each rate prices, 1 to 30. Defaults to 1.
adultsone ofAdults in the one room, at least 1.
childrenBirthdatesnoOne birthdate (YYYY-MM-DD) per child in the one room; repeat the parameter.
roomsone ofSeveral rooms instead of adults, as on hotel availability (rooms[0][adults]=2&rooms[1][adults]=1), at most 9.
cancellationnorefundable or non_refundable to keep only those rates; all by default.
localenoLanguage of the room names; defaults to en.
viewAsnoDMCs only: a partner tour operator's id, to read its rates for your own hotels.
bash
curl "https://api.v2koob.tech/api/v3/hotels/4242/rates?from=2026-11-01&to=2027-01-31&nights=3&adults=2" \
  -H "X-API-Key: your-api-key-here"
json
{
  "data": [
    {
      "id": "9134",
      "startAt": "2026-11-01",
      "endAt": "2026-11-23",
      "availabilityState": "free_sale",
      "availableDays": [true, true, true, true, true, true, true],
      "price": {
        "currency": "USD",
        "base": 363.0,
        "supplements": [],
        "discounts": [{ "id": "305", "name": "Early bird", "amount": 36.3 }],
        "total": 326.7
      },
      "minNights": 2,
      "room": { "id": "812", "name": "Deluxe Garden View" }
    }
  ]
}

One row per room and run of check-in days whose stay costs and books the same (with several rooms, one row per run, room: null: see below); id is the contract period of the check-in night, repeated when a run is cut inside it. A day no stay can start from (a stop sale, no contract or a party that does not fit on one of its nights) is left out, so a run ends there.

  • price is what you pay for the whole stay of nights nights from any day of the row, in your connection's currency, exactly as this page prices it: margin, compulsory supplements (a gala dinner on New Year's Eve, for example) and the promotions the stay gets when booked today (early booker, long stay, free nights…), the cheapest bed layout the party fits in, extra bed included when the party needs one. Group rates are left out. Each promotion is a line of discounts or supplements.
  • minNights is the minimum stay from that day; a shorter stay is still priced, but cannot be booked.
  • availabilityState is free_sale (an allotment is left every night of the stay) or on_request.
  • Several rooms: each row prices the cheapest room for each requested room, summed, its promotions merged into one line each. Every room type is checked for all the rooms asked, as the rooms page does: a type with too few rooms left books on request, so two rooms never count on the same last one. room is null.
  • cancellation keeps the rates the rooms page tags refundable (a free cancellation window before arrival) or non-refundable.

A hotel with several contracts prices you from the one that applies to you, as availability does: the contract you are linked to, else the default one. Once your own contract ends there are no rates, never the default's. Offers linked to contracts apply only to the stays those contracts serve.

Only hotels under contracts in Koob have rates: a supplier hotel (Koedia, Rakuten, STAAH, TL Lincoln) answers an empty list. A hotel you can only see in a showcase answers 404 with code HOTEL_NOT_SELLABLE.