Hotel Guests Sign In to Wi-Fi With Their Room Number: PMS Integration
ON THIS PAGE
Asking a hotel guest for a phone number, waiting for an SMS, and a guest from abroad who cannot receive one: a room number and a surname remove all of it. For that, the hotel's reservation system (PMS) has to tell Captivo who is checked in.
How it works
The connection is one way. Your PMS (or the integration layer in front of it) sends Captivo a signed webhook 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 credential to enter and no connection test. A reservation exists in Captivo from the moment its webhook arrives. 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.
Setup
- In Captivo: Settings → Hotel PMS. Turn the integration on (while it is off, the webhook answers 400 "PMS webhooks are disabled" and guests cannot sign in), choose the PMS provider and the verification method. The webhook URL is read-only; give it to your PMS vendor. The secret is created on the first save, and its refresh button makes a new one at once, without asking for confirmation.
- In the PMS: have the webhook URL added 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 body, keyed with the Webhook Secret, hex-encoded (a sha256= prefix is accepted), in the header of the provider you picked. A missing or wrong signature is refused with 401.
- Providers: Generic Webhook (default), Cloudbeds, Mews, Oracle Opera and Protel. The provider decides which signature header and which payload format Captivo expects.
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 connects. Only reservations that are checked in, whose arrival day has begun and whose check-out time has not passed can sign in. The room number must match exactly as the PMS sends it (spaces around it are ignored; "0101" is not "101").
Common mistakes
- The ID-number method works only with Generic Webhook: no other provider's format carries an ID field. The ID number is stored as an irreversible hash, never as text, and is not written to logs.
- Any other event or status is refused with 400 "Invalid payload format". On Generic Webhook the event must be check_in, check_out, reservation_update or reservation_cancel; reservationId, roomNumber and guestName are required.
- Check the wiring before the PMS vendor is involved by sending one signed test check-in; a row for room 101 should then appear on the Reservations tab. Do not delete it afterwards: check the room out from the tab or send a check_out event.
With Captivo Portal
Each provider's fields, the event table and the test commands are in the guide under hotel PMS integration; for a guest who cannot sign in, see hotel guest cannot sign in. To compare the methods, read choosing a sign-in method.