Selling
Sell a hotel's rooms from your own site, booking tool or chat bot. Quendoo prices them exactly as the hotel's booking engine does, holds the price, writes the booking and gives you the page where the guest pays.
Building a whole booking page? Build a booking engine walks the flow end to end, with a diagram.
GET /properties/{id}/booking_buttons which booking module sells
GET /properties/{id}/booking_offers priced offers + search_token
POST /properties/{id}/bookings/preview the summary: lines, total, payment plan
POST /properties/{id}/bookings/from_search the booking + payment_url
1. The booking module
Offers are sold through a booking module: it decides which rate plans, currency, extras and payment rules apply.
{ "selected_booking_button_id": null,
"booking_buttons": [ { "id": 1546, "name": "My booking site", "is_active": true,
"currency_code": "EUR", "rate_plan_ids": ["4e5633fb-β¦"] } ] }
The hotelier can choose, in the dashboard, which module partners sell. Then
selected_booking_button_id names it, it is the only one listed, and you
can leave booking_button_id out of searches. With none chosen, pass
booking_button_id; without it the search answers
422 errors.qc.booking_module_required.
Create a module with POST β¦/booking_buttons, and choose its plans with
POST β¦/booking_buttons/{id}/rate_plans. rate_plan_ids lists the module's
plans that are on your connection. The module may also sell plans you
detached or never connected; those are not listed, so an empty
rate_plan_ids does not mean the module sells nothing.
2. Search
GET β¦/booking_offers?booking_button_id=1546&checkin=2026-12-05&checkout=2026-12-07
&rooms[0][adults]=2&rooms[1][adults]=2&rooms[1][children_ages][]=7
1 to 90 nights, 1 to 10 rooms. Optional: promo_code, currency, lng,
and your visitor's guest_ip and guest_user_agent β some rates are sold
only in some countries, some promotions only on mobile. Needs
inventory.read. The search token keeps the two, so a booking made from it is
priced for the same visitor β send them with the search, not the booking.
{ "booking_offers": [ { "room_name": "Double Room", "rate_name": "Bed & Breakfast",
"price": 240, "currency": "EUR",
"accommodation_name": "2 adult on regular bed β¦",
"room_type_id": "0640b76f-β¦", "rate_plan_id": "4e5633fb-β¦",
"offer_id": "5295|10479:2:",
"payment_plan": { "currency": "EUR", "instalments": [
{ "position": 1, "amount": 240, "due_date": "2026-12-05", "auto_cancel_after": null } ] } } ],
"search_token": "v1.H4sIAAAAβ¦", "expires_at": "2026-10-11T00:09:00+03:00" }
- Each offer is priced for one of the rooms you searched. Treat
offer_idas opaque. - Do not read
accommodation_nameto the guest as their room. It is PMS v1's text, kept as PMS v1 wrote it. For a per-person rate (sell_type: per_person/per_occupancy) it does describe the party you searched. For a per-room rate it describes the room's maximum β every bed, "(max room occupancy, accommodation per room)" β not the party, and it calls the first extra bed "adult" even where only children may use it. Tell the guest who you searched for (the adults and children's ages you sent) and, for the beds, read the room type'soccupancy(GET β¦/room_types): each bed with the guests ittakes. payment_planis what the guest would pay, and when, for that room alone.unavailablelists what the module sells but did not offer, and why:{ "room_name": "Studio", "rate_name": "Room Only", "adults": 2, "children_ages": [7], "reason": "min_los", "value": 3, "nights": [β¦], "suggestion": { "checkin": "2026-12-24", "checkout": "2026-12-27" } }. Tell the guest "from three nights" or "no arrivals that day" instead of "nothing free".suggestioncomes with a stay-length rule: search it again.format=enginereturns everything the hotel's booking engine draws its page from β photos, policies, extras, nightly prices β to build your own design on.GET /booking_offers(no property in the path) searches every hotel your token sells, or those inproperty_ids[], up to 50: one result and onesearch_tokenper hotel.
3. The search token
search_token holds the prices you were shown for 30 minutes
(expires_at). A booking made with it is taken at those prices. It is bound
to your client and to this property, and it books once β search again
for the next booking.
4. Preview
Before the guest gives their name, show what they will book:
POST β¦/bookings/preview
{ "search_token": "v1.H4sIAAAAβ¦",
"items": [ { "offer_id": "5295|10479:2:", "extras": [ { "service_id": 55, "qty": 1 } ] } ] }
It answers the lines, total_amount, the payment_plan of the whole
booking and payment_methods β what the guest can pay with, as the hotel's
booking engine shows them at checkout (name, type, is_onlineβ¦), each with
the plan it gives. Several rooms merge their plans by due date, so never add up the
offers' plans yourself. Nothing is written; the token is not spent. Needs
bookings.write.
5. Book
POST β¦/bookings/from_search
{ "search_token": "v1.H4sIAAAAβ¦",
"partner_reference": "DOCS-SELL-1",
"client": { "first_name": "Ivan", "last_name": "Petrov",
"email": "[email protected]", "phone": "+359888123456" },
"items": [ { "offer_id": "5295|10479:2:",
"guests": [ { "first_name": "Ivan", "last_name": "Petrov", "adult": true },
{ "first_name": "Maria", "last_name": "Petrova", "adult": true } ] } ] }
{ "status": "ok", "message": "created",
"data": { "id": "Z7JJ5YQW", "total_amount": 240, "currency": "EUR", "status": "CREATED",
"reference": "QCN-DOCSPARTNER-DOCS-SELL-1", "partner_reference": "DOCS-SELL-1",
"payment_url": "https://β¦/payment/?β¦",
"payment_plan": [ { "position": 1, "amount": 240, "due_date": "2026-12-05",
"is_paid": false, "auto_cancel_after": null, "payment_url": "https://β¦" } ],
"dry": false } }
- One item per room; repeat an
offer_idfor two identical rooms. Rooms on different rates go in one booking with one total and one payment plan. partner_referenceis your own number (letters, digits,.,_,-, up to 21). The same one twice for a property answers409 errors.qc.partner_reference_taken.- Send an
Idempotency-Key: a retry then returns the same booking. idis the hotel's booking code. Read or cancel the booking withGET β¦/bookings/{id}andPOST β¦/bookings/{id}/cancel.- While the property is not
live, nothing is written:202and"dry": true.
6. Payment
Two ways: send the guest to the hotel's payment page, or build that page yourself. Either way the money goes to the hotel's own accounts.
The hotel's page
Send the guest to payment_url. It is the hotel's own payment page β
its booking engine, in the guest's language β for the first unpaid
instalment, not a form to embed. There the guest picks one of the hotel's
methods (card, bank transfer, at the propertyβ¦) and pays the hotel directly.
After paying, the guest stays on the hotel's confirmation page; they are not
sent back to your site β to bring them back, use pay_url and
your own pages.
The guest picks the method with the booking
Show the preview's payment_methods and send the chosen one as
payment_method_id with from-search. The booking is written with it β a
method can move a due date β and the answer says where the guest pays:
- an online method β
pay_url, the payment provider's own page (DSK, Borica, Stripeβ¦) on the hotel's account. Send the guest straight there. - a transfer β
bank_transfer: the account, amount, due date and thepayment_referencethe hotel matches it by, withpayment_planfor every instalment and its date. The guest gets the same by e-mail. - at the property β
payment_plan: what is due, and when.
Your own page
The same steps as the hotel's page, on your site, for a booking you made through Quendoo Connect:
GET β¦/bookings/{id}/payment_options?position=1 the instalment and the hotel's methods
PUT β¦/bookings/{id}/payment_plan/1/method { "payment_method_id": 1899 }
POST β¦/bookings/{id}/payment_plan/1/paid paid some other way
- Show the instalment β
payment_optionsanswers its amount and due date, whether it can be paid now (state: payable, or why not:already_paid,previous_unpaid,booking_cancelled, β¦) andmethods: each withid, the hotel's ownname,typeandis_online. - The guest picks one β
PUT β¦/method. Then:is_online: trueβ send the guest topay_url, the payment provider's page on the hotel's account. When they pay, the instalment is marked paid by itself. Where they land afterwards ispay_returnβ see below.- a transfer β show
bank_transfer: account, amount, due date and thepayment_referencethe hotel matches it by. The guest gets the same by e-mail. - at the property β nothing to collect now.
- Paid some other way β through your own provider, at your office β
POST β¦/paidmarks the instalment paid as the hotel's reception does:payment_statusmoves on and the hotel's payment e-mails go out. Optionalpaid_atandpayment_method_id(one of the property's methods). Earlier instalments first.
With more than one instalment, repeat for each position when it falls due.
Bringing the guest back to your site
Set your own two pages once β they apply to every booking your app writes:
PUT /v1/qc/payment_return
{ "success_url": "https://your.site/payment/done",
"fail_url": "https://your.site/payment/failed" }
After the bank, the guest is sent to one of them with the booking in the query β your own query and fragment are kept:
https://your.site/payment/done?booking=GD6SAQUC&position=1&status=paid&partner_reference=ORDER-55
https://your.site/payment/failed?booking=GD6SAQUC&position=1&status=failed
- A paid instalment sends the guest back by itself; a declined one does
not. The bank shows its own "Payment declined" page, and the guest
reaches your
fail_urlonly by pressing "Return to Merchant" there. A guest who closes that tab never arrives β so an instalment you hear nothing about is unpaid untilGET β¦/bookings/{id}or the feed says otherwise. - The redirect is not proof of payment. Anyone can open your success
page with any booking code. Before you tell the guest it is paid, read
GET β¦/bookings/{id}(payment_status) or wait for themodifiedrevision on the feed. - Check
pay_returnnext to everypay_url(from-search,PUT β¦/method):partnerβ the guest comes back to your pages;hotelβ to the hotel's confirmation page.hotelwhile you have pages set means this hotel's payment provider does not report back to us yet, so the hotel's page is the only way back; tell the guest they will see the hotel's confirmation. GET /v1/qc/payment_returnreads them,DELETEremoves them.httpsonly. They belong to your OAuth client: a hotelier's own token has none (errors.qc.payment_return_needs_oauth_client). Needsbookings.write.
Which methods the guest will see. GET β¦/properties/{id}/payment_methods
lists the hotel's methods; the page offers those with is_assigned: true
that the rate's payment policy allows. In the preview each instalment's
payment_method_ids names them β an empty list means the page will offer
nothing to pay with, so tell the guest they pay as the policy says (often
at arrival), or ask the hotel to switch a method on.
The preview says so in notices (qc.no_payment_methods_offered, per
instalment). A payment policy you create without available_pm_ids gets the
methods switched on for the property at that moment (qc.payment_methods_filled
in its answer); a method switched on later is not added until you update the
policy.
Knowing that it was paid.
GET β¦/bookings/{id}answerspayment_status(WAITING,DEPOSIT_PAID,PARTIALLY_PAID,FULLY_PAID,REFUNDED,FAILED), thepayment_planwithis_paidon each instalment, andpayment_urlfor the next unpaid one β send it again if the guest lost it.- A payment changes the booking, so it arrives on the
booking feed as a
modifiedrevision (and thebooking.modifiedwebhook), withpayment_statusand the plan in its payload. No separate payment event exists.
If an instalment is still unpaid after its auto_cancel_after, the booking
is cancelled automatically β tell the guest.
On staging the payment page sits behind a team login, so the guest's step cannot be walked through there.
Several hotels, one guest
POST /bookings/batch books one guest at several hotels in one call β each
entry is a from-search body with that hotel's own token β all or
none. POST /bookings/batch/preview is its summary step. Each hotel
takes its own payment; by_due_date in the answer shows them as one
schedule.
What the booking is afterwards
It arrives on the booking feed like any
other. The hotelier sees reference in the dashboard and can search by it.
Refusals and their keys are in the error dictionary.