Authentication
Every call carries Authorization: Bearer <token>. There are two ways to
get one.
| For | How | |
|---|---|---|
| OAuth client | a partner system (PMS, channel, booking tool) | Quendoo issues a client_id and client_secret β write to [email protected]. You trade them for a token that lives an hour. |
| Hotelier token | one hotel's own scripts and tools | The hotelier creates it in the Quendoo dashboard, on the Quendoo Connect page. It starts with qc_, is shown once and works until it is revoked. |
Get an OAuth token
curl -X POST https://staging-api.quendoo.com/v1/qc/oauth/token \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-d grant_type=client_credentials
{ "access_token": "eyJ0eXAiOiβ¦", "token_type": "Bearer", "expires_in": 3600,
"scope": "inventory.read inventory.write properties.manage bookings.read bookings.write β¦",
"property_ids": ["43be3468-43d2-4b8b-b2f9-e01520cf47eb"] }
-
The credentials may also go in the body as
client_idandclient_secretβ both forms are standard OAuth 2.0. -
Ask for less with
scope=inventory.read bookings.read. Asking for a scope the client does not hold is refused (invalid_scope), never narrowed quietly. -
Get a new token before
expires_inruns out. A401on a later call says why inerror, with ahint:missing_tokenβ noAuthorizationheader;malformed_authorizationβ the header is notBearer <token>;token_expiredβ the access token is past its hour: fetch a new one, then retry;invalid_tokenβ anything else: mistyped, revoked, or (for aqc_token) past its date or outside its IP allowlist. These are not told apart on purpose.
messagestayserrors.unauthorized, and theWWW-Authenticateheader carries the same, as OAuth 2.0 bearer tokens do. -
A refusal carries the OAuth
errorcode (invalid_client,invalid_scope) and our key inmessage. -
The public keys that sign tokens:
/v1/qc/.well-known/jwks.json.
Which properties a token reaches
property_ids lists the properties the token reaches.
GET /properties returns the same set. An empty list means nothing is
connected yet. A call for a property outside the set answers 403. An id
that names no property answers 404.
A client can instead be account-wide: it reaches every property the
account connects, including ones added later. Its token answers
"account_scoped": true and "property_ids": null.
Scopes
| Scope | Opens |
|---|---|
properties.manage |
the property, room types, rate plans, booking modules, policies, promotions, extras, content; approving a booking request (POST β¦/bookings/{id}/approve) |
inventory.read |
reading the calendar; searching offers |
inventory.write |
writing prices, availability and restrictions |
bookings.read |
bookings and the booking feed |
bookings.write |
booking from booking_offers, cancelling and marking no-show, a payment's method and marking it paid |
bookings.import |
POST β¦/bookings: a booking sold elsewhere, at your own price and channel, without our search |
subscriptions.manage |
webhook subscriptions |
groups.manage |
property groups |
analytics.read |
the analytics reports |
A call without the scope it needs answers 403 errors.qc.insufficient_scope.
A token can also be narrowed to a list of endpoints (endpoint_scopes, set
when it is created). GET /permissions lists the endpoint names. A call
outside that list answers 403 errors.qc.endpoint_not_allowed.
Rate limits
Limits are counted per token and per endpoint β GET /properties/{id} and
GET /properties/{id}/room_types each have their own. Calendar writes are
counted per property, so one busy hotel never holds back the others on the
same token.
| What | Per minute | Per day |
|---|---|---|
| Prices, availability, restrictions β per property | 60 | β |
Creating bookings (from-search, bookings, bookings/batch) |
60 | β |
| Other writes (configuration, acks, subscriptions) | 120 | β |
Reads (GET), including the booking feed |
300 | 100 000 |
POST /oauth/token |
10 | 200 an hour |
The minute starts with the first call; the day is the calendar day in Sofia. Every answer reports where you stand on the endpoint you called:
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 298
X-RateLimit-Reset: 1791662966
X-RateLimit-Reset is a Unix time. Past a limit, the answer is 429 with
errors.qc.rate_limit_exceeded and a Retry-After in seconds β wait that
long, and pause that property's writes rather than retrying at once.
Batch your calendar writes. One call takes up to 1000 rows, and a row covers a date range. Queue the changes and send them together every few seconds, as ranges β a whole sync is a handful of calls. Need more for a good reason? Write to [email protected].
Staging and production
| Base URL | |
|---|---|
| Production | https://api.quendoo.com/v1/qc |
| Staging | https://staging-api.quendoo.com/v1/qc |
They are separate: credentials, properties, tokens and webhook subscriptions from one do not work on the other. Staging is for building and testing. Its data is test data, and it can be slower than production.