Prices, availability and restrictions
Three writes keep a hotel's calendar. They land in the same calendar the hotelier edits in the dashboard and the booking engine sells from; Quendoo passes changes on to the hotel's channels.
| Write | Per | Sets |
|---|---|---|
POST β¦/inventory/availability |
room type, night | rooms free to sell |
POST β¦/inventory/rates |
rate plan, night | prices |
POST β¦/inventory/restrictions |
rate plan, night | min/max stay, stop sell, closed to arrival/departure |
They need the inventory.write scope. Each takes values: up to 1000 rows,
each for a date range (both ends included), up to 20 000 nights in all.
The answer
Every write answers 202 with what happened:
{ "status": "ok", "message": "accepted",
"data": { "written": 62, "unchanged": 0, "skipped_out_of_window": 5,
"dry": false, "dry_reason": null, "warnings": [] } }
writtenβ values that changed;unchangedβ values that already held what you sent. Sending your full state again is cheap.skipped_out_of_windowβ nights before yesterday or more than two years ahead, counted per code you sent. They are skipped, not refused."dry": trueβ nothing was stored, because the property is notlive(see Property structure).warningsβ rows that were not applied, byindexin yourvalues. Read them: the rest of the batch is applied either way.
Availability β rooms free to sell
{ "values": [ { "room_type_id": "0640b76f-β¦",
"date_from": "2026-12-01", "date_to": "2026-12-31",
"availability": 8 } ] }
availability is the number of rooms still free, not the total. Quendoo
adds the rooms already booked: with one booking on 10 December,
"availability": 8 makes nine rooms offered and eight for sale. A push
cannot sell rooms under existing bookings.
To close or open the room type on some nights, send closed or opened,
with or without availability:
{ "values": [ { "room_type_id": "0640b76f-β¦",
"date_from": "2026-12-24", "date_to": "2026-12-26", "closed": true } ] }
closed: truecloses the room type on those nights for every rate plan and keeps its count;opened: trueopens them again. Sent together,openedwins.- A row needs at least one of
availability,opened,closed. - A night with no row yet is created open when you send only
availability; addclosed: trueto create it closed. - To close one rate plan rather than the room, use
stop_sellon restrictions.
Prices
A per_room plan takes rate:
{ "values": [ { "room_type_id": "0640b76f-β¦", "rate_plan_id": "4e5633fb-β¦",
"date_from": "2026-12-01", "date_to": "2026-12-31", "rate": 120 } ] }
A per-room plan has one code, ROOM. Codes such as A2 or AEB exist only
on per-person and per-occupancy plans: sent to a per-room plan, the row is
skipped with the warning errors.qc.unknown_acm_code and its nights stay
unpriced. Check the plan's sell_type and occupancies before choosing the
shape.
A per_person or per_occupancy plan takes prices: one price per
occupancy code. A code says who stays and where they sleep:
A1,A2,A3, β¦ β that many adults together, not per person."A1": 150, "A2": 200means one adult pays 150 a night and two pay 200 between them.AEBβ one adult on an extra bed, added per such adult.CRB/CEB/CNBβ one child on a regular bed / an extra bed / without a bed.Tβ¦is a teenager,Iβ¦an infant, the same three ways.Apn1,Cpn1, β¦ βper_occupancyplans: each further person in turn.
{ "values": [ { "room_type_id": "0640b76f-β¦", "rate_plan_id": "61784ca5-β¦",
"date_from": "2026-12-01", "date_to": "2026-12-31",
"prices": { "A1": 150, "A2": 200, "AEB": 40, "CEB": 25 } } ] }
A night for 2 adults and a child on the extra bed then costs A2 + CEB =
225.
Read the plan's occupancies first (GET β¦/rate_plans). It lists the
codes this room has β they follow from its beds β and which of them take a
price: only "kind": "manual". The rest the hotel has set to be worked out
from another code (derived), a fixed fee (fee), free (cost_free), as one
more adult (as_adult), or not sold (inactive). Often only A2 takes a
price and everything else follows from it. All codes and kinds:
How a plan is priced.
Pricing a night also makes the plan's other codes sellable on it, as when the hotelier prices it in the dashboard.
What a row is refused for, as a warning:
| Warning | Means |
|---|---|
errors.qc.unknown_acm_code |
a code the plan does not take β the whole row is skipped, not only that code |
errors.qc.prices_map_required |
rate sent to a per-person plan |
errors.qc.prices_belong_to_parent |
prices sent to a derived plan β send them to parent_rate_plan_id |
Restrictions
{ "values": [ { "room_type_id": "0640b76f-β¦", "rate_plan_id": "61784ca5-β¦",
"date_from": "2026-12-24", "date_to": "2026-12-26",
"min_los": 2, "closed_to_arrival": true } ] }
| Field | A stay is not offered when⦠|
|---|---|
min_los / max_los |
it is shorter / longer than this, and includes this night β not only when it arrives on it |
stop_sell |
any of its nights is stopped |
closed_to_arrival |
it starts on this night |
closed_to_departure |
it ends on this night |
A min_los of 3 on 15 December refuses a stay from 14 to 16 December.
closed_to_departure on 28 December refuses stays that check out on the 28th.
Send only the fields you change; "max_los": null removes a maximum,
"min_los": null a minimum. A restriction may come before the prices: it is
kept on nights that have no price yet and applies once they get one.
A derived plan takes its own restrictions, and they win over its parent's.
A restriction you set on a derived plan opens that night on the derived
plan, even where the parent is closed β as in the dashboard. To keep it
closed, send "stop_sell": true with it.
Reading it back
GET β¦/availability?date_from=2026-12-01&date_to=2026-12-31
GET β¦/rate_plans/{id}/rates?date_from=2026-12-01&date_to=2026-12-31
The range is date_from / date_to, as writes name it (from / to are
still accepted). Availability comes back
per room type and night: qty_offered, qty_booked and sell_qty, the
rooms left to sell. Rates come back per night with prices and
restrictions. For a derived plan these are the worked-out prices, as a
guest would be quoted.
Pushing well
- Push a change when it happens, as a range. Do not loop over single days.
- Push your full state once a night; unchanged values cost nothing.
- Two writes to the same night: the later one wins. Keep one queue per property if order matters to you.