Hotel configuration

Beyond the calendar, a hotel has policies, promotions, extras, child ages, content and photos. You can set all of it through the API, so a hotel can be onboarded without opening the Quendoo dashboard. Every write is checked by the same rules, in the same code, as the same change made in the dashboard — what the dashboard refuses, the API refuses.

Needs properties.manage. Every field is in the API reference.

What you can set

What Endpoints Know this
Payment policies …/properties/{id}/payment_policies Instalments: when (pay_type) and how much (amount_type). Deleting one a rate plan still uses answers 409 errors.qc.payment_policy_in_use.
Cancellation policies …/properties/{id}/cancellation_policies The penalty rules in data[]. Same 409 while in use.
Promotions …/properties/{id}/promotions type: basic (empty), md mobile, lm last minute, eb early booking. A promotion applies only on stays matching one of its stay_conditions — send at least one (a wide date range for "always"). Saved without one, it never applies, whatever its type. type must be in the body on create — "type": null for basic. stay_rules limits the day a stay starts or ends on ({"checkin":{"week_days":["sun"]}} or {"checkout":{"dates":["2027-06-15"]}}; one side takes week days OR dates, up to 20 date runs), and applies only through booking modules on template 6.
Extras …/properties/{id}/extra_services Required on create: price, price_type (1 per person, 2 once per stay or per day, 3 per adult, 4–7 per child group), is_daily, do_not_apply_promotions, active_week_days, client_select_dates_settings.type, and a name. A daily extra is charged per day, the departure day included — 5 nights are 6 days; apply_type drops the arrival day (2), the departure day (3, one charge per night) or both (4), and counts only when is_daily is true. Every field and value is in the reference.
Extra-service groups …/properties/{id}/extra_service_groups, …/rate_plans/{id}/extra_service_groups An extra reaches a guest only through a group on a rate plan — a search offers what the plan's groups hold, and a booking can take only what the search offered. A group: name_tr (at least one language), extra_service_ids (at least one), ch_type_id 0 all of them / 1 the guest picks one, optional icon. On a plan, PUT {"attachments": [{"es_type": "ss", "es_group_id": 12}]} replaces the list; es_type is included (in the price, shown at 0), insp (always added, charged on top), ss (the guest may add it) or excluded (listed as not included). GET answers attachments in that same shape. A promotion reduces an extra day by day when it is insp — and, if the extra has apply_promotions_when_selected: true, also when it is ss — never with do_not_apply_promotions: true.
Child ages GET / PUT …/properties/{id}/age_groups Infant I, child C, teen T, each with an age range. PUT changes only what you send. The next quote uses the new ages; saved bookings keep their price.
Booking modules …/properties/{id}/booking_buttons What a module sells — see Selling.
Special offers …/booking_buttons/{id}/special_offers, /special_offers/{id} Belong to one booking module. Need both dates and at least one rate plan.
Special offers a website may show GET /special_offers/public Every public offer across the properties your token reaches, in one call — a website serving several hotels has no single module to ask. Active offers inside their window, less the ones the hotelier keeps off the website; to manage offers use the per-module list. Each carries its own pbb_id, because an offer is opened through its module, and what a site needs to sell it: book_url, offer_page_url (Template 6), image_url, and the first free stay with its price (first_stay, price_from). ?property_id= narrows it; a property your token does not reach answers an empty list. inventory.read is enough.
Photos /gallery Shared by all the account's properties. Upload a file with POST /gallery. Deleting a photo still in use answers 409 with where it is used; ?force=1 removes it anyway.
Payment methods GET …/properties/{id}/payment_methods, PUT …/payment_methods/{id}/assigned The hotel's methods — the ids that available_pm_ids and a preview's payment_method_ids refer to — and whether each is offered on the property. PUT … {"assigned": true} offers an existing method on the property (or false stops it); only an active method in the property's currency. Setting a method up stays in the dashboard: it holds the bank's credentials. A new property has none offered — offer at least one, or guests cannot pay. A payment policy lists the methods each of its payments takes (available_pm_ids) and keeps that list: a policy saved before a method was offered does not offer it. After offering methods, send each such policy's payments again without available_pm_ids — they take the property's methods (the answer's notice qc.payment_methods_filled names them).
Automatic e-mails /auto_email_templates Shared by the account. event says when it is sent; property_ids limits it to some properties — each must be one your token reaches.
Reviews /reviews, POST /reviews/{id}/reply Reviews from the hotel's channels: read and reply only.

Read-only lists you will need: GET /property_types (for a new property's type_id) and GET /amenities (amenity ids and names).

Policy codes

Policies keep the hotel dashboard's codes, so what you write reads back the same and matches what the hotel sees. What they mean:

A payment — when (pay_type) and how much (amount_type):

pay_type When amount_type How much
on_res on booking tp the total
af_res num_days after booking pf_tp amount % of the total
be_arr num_days before arrival pf_fn amount % of the first night
on_arr on arrival fn the first night
on_dep on departure fixed amount in the property's currency
be_dat before date rest what is left
free nothing

30 % on booking, the rest on arrival:

{ "payments": [
  { "pay_type": "on_res", "amount_type": "pf_tp", "amount": 30 },
  { "pay_type": "on_arr", "amount_type": "rest" } ] }

A cancellation rule — when the guest cancels (c_type) and what it costs (p_type, p_value):

c_type When p_type Penalty
ct_bc_days p_days_from–p_days days before arrival "0" none
ct_ar_days p_days_from–p_days days after booking "1" p_value % of the total
ct_ar any time after booking "2" p_value nights
ct_xy_days_ap1 / ap2 p_days_from–p_days days after the first / second payment "3" p_value in the property's currency
be_date / af_date before / after p_date "4" everything paid so far
ct_ns a no-show "5" / "6" the first / second payment

Both day ends count, so p_days_from is the smaller number; give p_days 999 for an open end. Free until 15 days before arrival, then 50 %, and the whole stay for a no-show:

{ "data": [
  { "c_type": "ct_bc_days", "p_days_from": 15, "p_days": 999, "p_type": "0" },
  { "c_type": "ct_bc_days", "p_days_from": 0, "p_days": 14, "p_type": "1", "p_value": 50 },
  { "c_type": "ct_ns", "p_type": "1", "p_value": 100 } ] }

What a booking would pay if it were cancelled today: GET …/bookings/{id}/cancellation_quote.

Default policies

A rate plan created without policies gets placeholder ones, named API default —, and its answer says so in notices. The default cancellation policy is non-refundable. Create the hotel's policies first and pass their ids, or replace the placeholders afterwards.

A good order for a new hotel

  1. GET /property_types, then create the property.
  2. Payment and cancellation policies.
  3. Room types, then rate plans with those policies.
  4. Child ages, extras and their groups on the rate plans, promotions.
  5. A booking module, then prices and availability.
  6. Photos and website content, when you have them.