Property structure
A hotel is a property with room types, and rate plans sold on those room types.
Property
ββ Room type "Double Room", 10 rooms, up to 2 adults + 1 child
β ββ Rate plan "Bed & Breakfast" β its own id on this room
β ββ Rate plan "Non-refundable" β derived from B&B
ββ Room type "Family Suite"
ββ Rate plan "Bed & Breakfast" β another id: another room
Everything here needs the properties.manage scope. Every field is in the
API reference.
All of it in one call: GET /properties/{id}/structure β the property,
its child age groups, the room types with their occupancy, each room's rate
plans with their occupancy codes, and the policies; what PMS v1 / B2B
getPropertySettings gives. ?include=room_types for a part.
Property
POST /properties needs name, type_id (from GET /property_types),
currency and timezone. A property can also be one the hotelier already
runs in Quendoo and connected to you β it is in GET /properties either way.
Its mode decides whether your calendar writes are stored:
mode |
Calendar writes |
|---|---|
shadow |
checked and answered, not stored. Where a property you create starts. |
live |
stored, and sold. |
legacy |
not stored β the hotel is still run another way. |
disabled |
not stored. |
A write that is not stored still answers 202, with "dry": true and a
dry_reason. Change the mode with PATCH /properties/{id} and
{"mode": "live"}.
Room type
POST /properties/{id}/room_types
{ "name": "Double Room", "qty": 10, "kind": "room",
"capacity": { "adults": 2, "children": 1, "infants": 0 } }
qty is how many rooms of this type the hotel has. kind is room,
studio, apartment or villa. PATCH takes the same fields and changes
the hotel's room as the dashboard does.
capacity is for display; occupancy decides
capacity (adults, children, infants) is what the hotel's booking
engine shows as the room's capacity, from the room's form. It is for
display only β nothing is priced or searched by it. children counts
teenagers and children together.
What decides is occupancy: each place the room has, and who may sleep
there. The hotel's three age groups (teen, child, infant; ages in
GET β¦/age_groups) are told apart here:
"occupancy": { "regular": { "qty": 2, "takes": ["adult", "teen", "child"] },
"extra": { "qty": 1, "takes": ["child"] },
"extra_2": { "qty": 0, "takes": [] },
"no_bed": { "qty": 1, "takes": ["infant"] } }
From it come the rate plans' occupancy codes β A1, A2 for the two
regular beds, CEB because the extra bed takes a child, INB for the
infant without a bed, but no TEB: a teenager cannot have the extra bed
here β and the room's capacity in search.
Set it with the room: occupancy on POST β¦/room_types, or
PATCH β¦/room_types/{id} with only the places you change β the others keep
their value. A room created without it gets regular beds for its adults
only, so it takes no children:
PATCH β¦/room_types/{id}
{ "occupancy": { "regular": { "qty": 2, "takes": ["adult", "teen", "child"] },
"extra": { "qty": 1, "takes": ["child", "infant"] },
"no_bed": { "qty": 1, "takes": ["infant"] } } }
It is checked as the hotel's dashboard checks it (at least one regular
bed). A room sold on the channel manager can gain places and age groups
through the API but not lose them (409 errors.qc.room_beds_locked_by_channel_manager) β the hotel does that in its
dashboard.
After adding places, give the plans their new codes. Taking places away drops their codes at once; adding them does not add codes to the plans on the room β as in the dashboard, where the hotelier saves each plan's window again. Re-save each plan's pricing model, then price the new codes:
PUT β¦/rate_plans/{id}/pricing_model { "sell_type": "per_person" }
β occupancies: A1, A2, TEB, CEB, INB (TEB / CEB / INB new, manual)
POST β¦/inventory/rates
{ "values": [ { "room_type_id": "β¦", "rate_plan_id": "β¦",
"date_from": "2026-12-20", "date_to": "2027-01-06",
"prices": { "CEB": 25, "TEB": 40, "INB": 0 } } ] }
A re-save without occupancies sets every code back to manual; send
occupancies to keep your own derived codes. Derived plans follow their
parent.
Rate plan
POST /properties/{id}/rate_plans
{ "title": "Bed & Breakfast", "room_type_ids": ["0640b76f-β¦"],
"sell_type": "per_room", "meal_plan": "BB",
"payment_policy_id": 2182, "cancellation_policy_id": 1964 }
The answer has one entry per room type, each with its own id. That id
names the plan on that room, and it is the one prices go to.
- Only
titleandroom_type_idsare required. The plan is checked by the dashboard's own rules, with defaults for the rest: meal planBO, the public name (name_tr) the title in en-GB. meal_plan:BO(room only),BB,HB,FB,AI,UAI.- Without policies the plan gets defaults, and
noticessays so. The default cancellation policy is non-refundable β send your own.
PATCH β¦/rate_plans/{id} changes the name, meal plan or policies β the
plan's, so on every room it is sold on, as in the dashboard.
How a plan is priced β sell_type
A plan's price for a night is not one number but a small table: one price per occupancy code. A code says who stays and where they sleep.
The model is set per room, as in the hotel's dashboard: a plan can be
per_room on one room and per_person on another. A rate plan id names the
plan on one room, so PATCH and PUT β¦/pricing_model on it change that
room only.
sell_type |
What you price | A night for 2 adults + 1 child on an extra bed costs |
|---|---|---|
per_room |
one price for the room, whoever stays β the code ROOM |
ROOM |
per_person |
the adults together (A1, A2, β¦), plus each extra adult and each child by the bed they take |
A2 + CEB |
per_occupancy |
the adults together, then each further person in turn β the 1st extra adult, the 2nd, the 1st child, β¦ | A2 + Cpn1 |
The codes
| Code | Price of⦠|
|---|---|
ROOM |
the whole room β per_room plans only |
A1, A2, A3, β¦ |
that many adults together on the room's regular beds. A2 is the price for two adults, not per person: 150 for A1 and 200 for A2 means one adult pays 150 and two pay 200 in total |
AEB |
one adult on an extra bed β added once for each such adult (per_person) |
ANB |
one adult without a bed |
TRB, TEB, TNB |
one teenager on a regular bed / an extra bed / without a bed |
CRB, CEB, CNB |
one child, the same three ways |
IRB, IEB, INB |
one infant, the same three ways (INB: a baby in the parents' bed) |
Apn1, Apn2, β¦ |
per_occupancy only: the 1st, 2nd, β¦ extra adult beyond the regular beds β each its own price, never a total |
Tpn1, Cpn2, Ipn3, β¦ |
per_occupancy only: the children in turn, numbered across all of them β teenagers first, then children, then infants. The third child overall is β¦pn3 whatever its age |
T, C and I are the hotel's own age groups (typically teenager 12β17,
child 2β11, infant 0β1); the hotelier sets the ages in the dashboard.
Which codes a room has follows from its beds, as the hotelier set them in
the dashboard: A1 up to A{n} for n regular beds that take adults, AEB
when an extra bed takes an adult, a child code only for a bed that takes that
age group. A room for two with one extra bed for a child has A1, A2,
CRB, CEB β and no A3.
Which codes take a price β kind
Each plan lists its codes in occupancies, each with a kind. Only
manual codes take your prices; the hotel has set how the others are worked
out.
kind |
The code's price is⦠|
|---|---|
manual |
what you send (or the hotelier types in) for the night |
derived |
worked out from the code in derived_from, by modifier β e.g. A1 = A2 less 10 % |
fee |
a fixed amount, fee_value, every night |
cost_free |
0 β e.g. an infant in the parents' bed |
as_adult |
a child on a regular bed paying as one more adult: 2 adults + a child in the third bed pay A3 |
inactive |
not sold: a stay that needs it is not offered |
A real answer for a per_person plan:
"occupancies": [
{ "code": "A2", "kind": "manual", "persons": 2 },
{ "code": "A1", "kind": "derived", "persons": 1, "derived_from": "A2",
"modifier": ["decrease_by_percent", 10] },
{ "code": "A3", "kind": "derived", "persons": 3, "derived_from": "A2",
"modifier": ["increase_by_amount", 40] },
{ "code": "AEB", "kind": "fee", "fee_value": 20 },
{ "code": "CRB", "kind": "as_adult" },
{ "code": "IRB", "kind": "cost_free" },
{ "code": "TEB", "kind": "inactive" }
]
Here you send only A2. With A2 at 200 for a night, the guest pays: one
adult 180, two 200, three 240, two adults + an adult on the extra bed 220.
modifier is increase_by_amount, decrease_by_amount,
increase_by_percent or decrease_by_percent, with its value. persons is
filled for the A{n} codes only.
Setting the codes yourself
Usually the codes come from the room's beds and all you do is price the
manual ones. To decide yourself which codes take a price and how the others
follow, send occupancies β on POST β¦/rate_plans (one room only), on
PUT β¦/rate_plans/{id}/pricing_model, or when adding a room (below):
PUT β¦/rate_plans/{id}/pricing_model
{ "sell_type": "per_person",
"occupancies": [ { "code": "A2" },
{ "code": "A1", "pricing": { "derived_from": "A2", "adjust": "-10%" } },
{ "code": "A3", "pricing": { "derived_from": "A2", "adjust": "+40" } } ] }
A code without pricing takes your price (manual). With pricing, it is
worked out from derived_from: -10% / +10% by percent, -15 / +40 by
amount. A code the room's beds do not allow is dropped. This is what the
hotelier sets in the plan's window for that room in the dashboard.
Rooms of a plan
A plan is sold on the rooms given at POST. Later:
POST β¦/rate_plans/{id}/room_types{ "room_type_id": "β¦" }β sell it on one more room. The answer is the plan on the new room, with its own id; prices go to that id. Its codes come from the room's beds, or sendoccupancies.DELETE β¦/rate_plans/{id}/room_types/{room_type_id}β stop selling it on a room. Its prices on that room are deleted. The plan's last room stays;detachthe plan instead.
{id} is the plan on any of its rooms. Only base plans: a derived plan is sold
on its parent's rooms, as in the dashboard.
Derived plans
A derived plan is another plan's price with a discount or a markup β a non-refundable plan 10 % cheaper than "Bed & Breakfast", an early-booking plan, a weekend plan 15 β¬ dearer. You price only the parent; the derived plan follows it on its own.
POST /properties/{id}/rate_plans/{parent_id}/derived
{ "title": "Non-refundable",
"periods": [
{ "from": "2026-12-01", "to": "2026-12-23", "type": "dec_per", "amount": 10 },
{ "from": "2026-12-24", "to": "2027-01-02", "type": "dec_per", "amount": 5 },
{ "from": "2027-01-03", "to": "2027-03-31", "type": "dec_abs", "amount": 15 }
],
"cancellation_policy_id": 1964 }
{parent_id} is the parent plan's id on any of its rooms.
Periods. Each has its own adjustment, applied to the parent's price of every night in it:
type |
The night costs |
|---|---|
dec_per |
the parent's price less amount % |
inc_per |
the parent's price plus amount % |
dec_abs |
the parent's price less amount (the property's currency) |
inc_abs |
the parent's price plus amount |
A night no period covers is not sold on the derived plan β give periods
for every night it should sell. from and to are both included.
Defaults. Only title and periods are needed:
| Field | Left out |
|---|---|
meal_plan |
the parent's |
payment_policy_id |
the parent's |
cancellation_policy_id |
the parent's β send another one for a non-refundable plan |
name_tr |
the title, in en-GB |
The answer's defaulted_from_parent lists what was taken from the parent.
The plan is checked by the hotel dashboard's own rules before it is written,
as the hotelier's child rate would be.
What it has of its own, and what not.
- Rooms: the parent's. It is sold on every room the parent is, and the answer has one entry β one id β per room. Adding or removing a room is done on the parent.
- Prices: none (
"prices_writable": false). Prices sent to it are refused (errors.qc.prices_belong_to_parent); send them to the parent. - Restrictions and availability: its own β
min_los,stop_sell, closed to arrival and the rest are set on its own id. - Meal plan and policies: its own, defaulting to the parent's.
A derived plan can itself be a parent. The same plan can also be created with
POST /rate_plans and parent_rate_plan_id + derivation (one adjustment
for all its periods).
Your own codes
Give a property, room type or rate plan your own partner_code. It can then
be named by that code in the URL instead of our id.
Detach
POST β¦/room_types/{id}/detach or POST β¦/rate_plans/{id}/detach β you stop
managing it. It leaves your connection, and the room_type.deleted or
rate_plan.deleted webhook fires. The hotel keeps selling it. Nothing is
deleted in the hotel.
A detached rate plan also stays in every booking module that offered it, and
the module keeps selling it. A module's rate_plan_ids lists only the plans
on your connection, so it no longer names the plan β and may read [] while
the module still sells.