Hotel PMS integration
Hotel guests connect with their room number and surname (or ID number) instead of an SMS. Your property management system (PMS) tells Captivo who is checked in; Captivo compares what the guest types with that list. This page covers every PMS the code supports, the fields each one sends, how events are handled and what the guest sees.
How it works
The connection runs one way: your PMS (or the integration layer in front of it) sends a signed webhook to Captivo at every check-in, reservation change, cancellation and check-out. Captivo never logs in to the PMS and never pulls data from it, so there is no sync interval, no API credentials to enter and no connection test; a reservation exists in Captivo from the moment its webhook arrives. If the PMS stops sending, Captivo has no way to notice.
Received reservations are listed on the Reservations tab of the same page, where an admin can also check a room out by hand. Reservations cannot be added by hand.
?tenant=<your-slug>; on-premise the address has no tenant part because there is a single tenant. Copy the URL from the page rather than building it.1. Configure Captivo
Open Settings → Hotel PMS (Admins only). The Settings tab is one form with one Save button.
| Field | Values and default |
|---|---|
| PMS Integration | Off until you turn it on. While it is off, the webhook answers 400 "PMS webhooks are disabled" and guests cannot sign in. |
| Webhook URL | Read-only, with a copy button. Give it to your PMS vendor. |
| Webhook Secret | Created on the first save: 64 hexadecimal characters, shown in plain text with a copy button. The refresh button next to it makes a new one at once, without asking for confirmation. |
| Accept webhooks | On by default. Turn it off to refuse every incoming webhook (400) while keeping guest sign-in working for reservations already stored. |
| Guest Verification Method | Room No + Surname or Room No + National ID/Passport No. The page pre-selects the ID-number method for a tenant that has never saved PMS settings; an existing tenant keeps what it saved (surname by default). |
| Hotel Guest Profile | One of your guest profiles (guest profiles). Without one, the Base Defaults under RADIUS Settings → Session Settings apply: 2 hours if no session length is set there either, and at most 3 devices per room. |
| VIP Guest Profile | Optional. Used only when the reservation is flagged VIP, and Generic Webhook (isVip: true), Opera and Protel can send that flag (see the table below). |
| PMS Provider | Generic Webhook (default), Cloudbeds, Mews, Oracle Opera or Protel. It decides which signature header and which payload format Captivo expects. |
Under the ID-number method the page shows how many of the active reservations carry ID data and warns below 50 %: a reservation without ID data cannot sign in under that method. After you save a changed method, re-download the portal if your firewall uses a downloaded file (see portal design).
Finally, in Settings → Portal → Login Methods turn on Hotel Guest Login. The switch works only while PMS Integration is on. Switching Hotel Guest Login off in the portal hides the option for guests and the server refuses the room sign-in as well (see public API).
2. Point the PMS at Captivo
In your PMS, or ask your PMS vendor or integrator to do it, add the Webhook URL as the target for reservation events. Every request must be a POST with a JSON body and carry an HMAC-SHA256 signature of the raw request body, keyed with the Webhook Secret, hex-encoded (a sha256= prefix is accepted), in the header that belongs to the provider you picked. A request with a missing or wrong signature is refused with 401. There is no rate limit on this address.
Supported providers
| Provider | Signature header | Events understood | Fields read |
|---|---|---|---|
| Generic Webhook | X-PMS-Signature | check_in, check_out, reservation_update, reservation_cancel (the name is in the body, field event). | Every field: reservationId, roomNumber, guestName (required), e-mail, phone, checkIn, checkOut, identityNumber. The only format that can carry an ID number. Reads isVip (true marks the stay VIP). |
| Cloudbeds | X-Signature | reservation/created (counted as an update), reservation/status_changed (status: confirmed = update, checked_in, checked_out, canceled and no_show = cancel), reservation/deleted (cancel). | reservationID, roomName or roomID, guestName, guestEmail, guestPhone, checkInDate, checkOutDate. An event with none of room, guest name and dates is ignored; if some are present, a missing field is replaced by a placeholder (see the note below). |
| Mews | X-Mews-Signature | ServiceOrderUpdated and ReservationUpdated (State: Started or Checked-in = check-in, Processed or Checked-out = check-out, Canceled = cancel, anything else = update), ReservationCreated (update), ReservationCanceled (cancel). | ServiceOrderId, ReservationId or Id; AssignedSpace.Number or Name; Customer first name, last name, e-mail, phone; StartUtc, EndUtc. No ID or VIP field. |
| Oracle Opera | X-Opera-Signature | The event name (eventType or businessEventType) is lower-cased, punctuation is dropped and its content is matched: checkedin, checkin or arrival = check-in; checkedout, checkout or departure = check-out; cancel or noshow = cancel; created, updated, modified or reservation = update. | Reservation id, room, guest (first and last name, or guestName), e-mail, phone, arrival and departure dates. VIP: isVip is true, or vip / vipCode is neither empty nor "0". No ID field. |
| Protel | X-Protel-Signature | Same logic as Opera (field messageType, eventType or action); additionally void = cancel. | Reservation id, room, guest profile, e-mail, phone, arrival and departure from stayInfo. VIP: isVip, vipStatus (any value except empty, "0" and "NONE") or vipCode. No ID field. |
Any other event or status is refused with 400 "Invalid payload format". The Generic Webhook format, which works with any system or integration layer, is:
{
"event": "check_in",
"timestamp": "2026-11-25T14:00:00Z",
"data": {
"reservationId": "RES-1001",
"roomNumber": "101",
"guestName": "Sam Carter",
"guestEmail": "sam.carter@example.com",
"guestPhone": "+15550100",
"checkIn": "2026-11-25T14:00:00Z",
"checkOut": "2026-11-28T11:00:00Z",
"identityNumber": "X1234567"
}
}X-PMS-Signature: sha256=<hex HMAC-SHA256 of the raw body, keyed with the Webhook Secret>- event must be one of check_in, check_out, reservation_update or reservation_cancel; reservationId, roomNumber and guestName are required.
- Send checkIn and checkOut as full ISO date-times with a time zone. The parser does not demand them, but a missing or unreadable date makes the save fail and the webhook answers 400.
- identityNumber is needed only for the ID-number method. Captivo stores it as an irreversible hash, never as text, and does not write it to its logs.
- A date without a time ("2026-11-28", as the Opera and Protel samples in the code use) is read as midnight UTC, so the stay ends at the start of the departure day. Ask the vendor for a time, or accept that sign-in stops early on departure day.
reservation/status_changed event holds only the event, the property, the reservation id and the status. Such a bare status event, with no room, guest name or dates, is now ignored (the webhook answers 200 and the stored reservation is not touched); check-out and cancel events need only the reservation id and still apply. If at least one of room, guest name and dates is present, the missing ones are stored as Unknown / Guest / the time of the event. Check with a real webhook from your property that it carries the room, the guest name and the dates before relying on guest sign-in.To check the wiring before the PMS vendor is involved, send one signed test check-in with the commands below (Generic Webhook provider selected). A row for room 101 should then appear on the Reservations tab. Delete nothing afterwards: check the room out from the tab or send a check_out event.
# Send one signed test check-in (Generic Webhook provider).
SECRET="<the Webhook Secret from Settings -> Hotel PMS>"
BODY='{"event":"check_in","timestamp":"2026-11-25T14:00:00Z","data":{"reservationId":"RES-1001","roomNumber":"101","guestName":"Sam Carter","checkIn":"2026-11-25T14:00:00Z","checkOut":"2026-11-28T11:00:00Z"}}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //')
curl -i -X POST "https://portal.acme.example/api/v1/pms/webhook?tenant=acme-hotels" \
-H "Content-Type: application/json" \
-H "X-PMS-Signature: sha256=$SIG" \
--data "$BODY"
# Expected: HTTP 200 and {"success":true,"message":"Check-in processed for room 101","action":"created"}The answers you can get:
200{success, message, action}: processed.400: no tenant in the address (cloud), PMS not configured, PMS or Accept webhooks switched off, unreadable payload, or a processing error.401Invalid signature: wrong secret, wrong header for the selected provider, or a body changed after signing.404: no tenant with that slug.
What each event does
| Event | Effect in Captivo |
|---|---|
check_in | Creates or updates the reservation and sets it to CHECKED_IN; reopens a stay that was checked out or cancelled. If the room changed, deletes the old room's sign-in details, closes its sessions and clears the device list. |
reservation_update | The same record update as check_in, but it never reopens a stay that was checked out or cancelled. If the reservation does not exist yet it is created as CHECKED_IN (no event produces the RESERVED state). |
check_out | Deletes the room's sign-in details, closes the open session records, sets CHECKED_OUT and clears the device list. |
reservation_cancel | Sets CANCELLED and clears the device list. It does not delete sign-in details; a CANCELLED reservation simply cannot sign in again. |
Reservations are matched by reservationId. Every check-in and check-out, including a manual Check out on the Reservations tab, is written to the audit log (Settings → Logs, Audit tab) as a System Event.
The Reservations tab
The tab lists the reservations Captivo has received, 10 per page: room, guest name, status, check-in and check-out in your account's time zone, the number of registered devices, and e-mail and phone when the PMS sent them. The search box matches guest name, surname and room number; the status filter offers Check-in, Reserved, Check-out and Cancelled.
- Check out appears on rows in Check-in status. After a confirmation it deletes the room's sign-in details, closes the open session records, sets Check-out and clears the device list. It is written to the audit log as a System Event.
- The Reserved filter is always empty for reservations that arrive by webhook: every event creates a reservation as Check-in. A booking sent ahead of time shows as Check-in, yet it cannot sign in before its arrival day.
- The page does not show a last-webhook time, the VIP flag or whether a reservation carries ID data.
What the guest types
In the Hotel Guest section of the portal the guest enters the room number and either the surname or a T.C. ID number (11 digits) / passport number, ticks the two consent boxes and taps Connect as Hotel Guest. Only reservations that are checked in, whose arrival day has begun and whose check-out time has not passed can sign in.
- Room number: must match exactly as the PMS sends it (spaces around it are ignored; "0101" is not "101").
- Surname: case and Turkish letters do not matter (Şahin = sahin). It is compared with the last word of the guest name in the PMS, so a guest with a two-word surname types only its last word, and a PMS that sends names as "Carter Sam" makes the first name the one to type.
- ID number: spaces and punctuation are ignored.
- Wrong attempts are limited: 8 per 15 minutes for one room from one IP address, 30 per 15 minutes from that address across all rooms. A successful sign-in resets both. The guest then sees "Too many attempts" until the window passes.
- If a sign-in fails, the guest sees one general message, for example Room number or entered information is incorrect (this one is shown in Turkish, Oda numarası veya girilen bilgi hatalı, whatever the portal language). The reason is not revealed. See hotel guest cannot sign in.
Session length, devices and check-out
- Each sign-in lasts as long as the hotel guest profile's session length; with no profile, the Base Defaults, else 2 hours. It is not shortened to the check-out time and not stretched to the check-out date: a guest who signs in at 11:30 for a 12:00 check-out still gets the full length, and when the session ends the guest signs in again with the same details. Profiles are explained in portal design and guest profiles.
- The device limit counts per reservation: the profile's simultaneous-device value, or 3 with no profile. A further device is told the room has reached its maximum.
- Sign-in is open from the start of the arrival day (in your account's time zone) until the check-out time. A booking sent ahead of time does not open the network early.
- Several reservations in the same room are separate: each guest signs in with their own surname or ID number.
- A check-out or cancellation webhook, or Check out on the Reservations tab, removes the room's sign-in details so the guest cannot sign in or re-authenticate. The PMS code path sends no disconnect request to the network device, so a device that is already online stays connected until the session length it was given runs out. A room change moves the reservation and drops the devices registered to the old room.
The other ways guests can sign in are in guest sign-in methods; RADIUS basics are in RADIUS settings.
Common problems
- Regenerating the Webhook Secret breaks the live integration. The old secret stops working at once; the page asks for confirmation first. Until the PMS has the new secret, every webhook answers 401, no check-out arrives and the Reservations tab stops updating. Change it on the PMS side straight after.
- A provider other than the one selected sends its own header: the signature check fails with 401 even with the right secret. Switch the provider on the page first.
- The default verification method for a brand-new setup is the ID-number method, which only Generic Webhook can serve. With any other provider, switch to Room No + Surname before the first guest tries.
- The VIP Guest Profile hint on the page says the VIP status is sent in an isVip field; Generic Webhook reads it, as do Opera and Protel in their own fields.
Step-by-step diagnosis: hotel guest cannot sign in.