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": [] } }

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 } ] }

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:

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