Self check-in kiosks
Check a guest in at a kiosk: find the booking, register its guests with their documents, check it in, give the guest the door PIN and record what was paid — and what changes coming from the legacy API.
4 min read
For a self check-in kiosk on the partner programme. Every route takes your partner key and is reached only once it is enabled on your connection to that property; the answers come sealed to your key, as the encryption guide explains. The kiosk routes write to the booking or hand out the door PIN, so each has to be granted on purpose.
From your server, never from the kiosk
The kiosk talks to your backend, and your backend calls Hotelgest with the key kept on your server. No kiosk, tablet or app calls the API directly.
The check-in, step by step
- 1Find the bookingSearch it with
GET /api/v2/bookings/{pcode}/searchand read it withGET /api/bookings/{pcode}/detail/{bookingId}: dates, room, guests already on it and status. - 2Register each guest
POST /api/integrations/{pcode}/kiosk/guests/{bookingId}, one call per guest, with the document you read. Sendholder: truefor the guest the booking is for, so their record is completed instead of a second one being added. Sending a guest again updates them in place. - 3Check the booking in
PUT /api/bookings/{pcode}/check-in-out/{bookingId}withnextStatus: checked-in, once every guest is registered: it is the check-in that sends them to the police registration, as when reception does it. - 4Give the guest the door PINOnce the booking is checked in,
GET /api/integrations/{pcode}/kiosk/door-keys/{bookingId}answers the key of its room door, whatever lock system the property has:pinwith the PIN as text (leading zeros kept),keyWithoutPinwhen the key carries no PIN (send the guest to reception), ornone. Before the check-in it answers409kioskBookingNotCheckedIn. Each read goes in the booking history under your name; the answer is not cached, so do not keep the PIN after handing it over. - 5Record what was paidRead what is due with
GET /api/v2/bookings/{pcode}/payments/{bookingId}, collect it, and record it withPOST /api/integrations/{pcode}/kiosk/payments/{bookingId}. YourtransactionIdis the payment reference, stored behind your partner slug (<slug>:<transactionId>): resending it never records the payment twice, and another kiosk or reception using the same reference never gets in the way.
Coming from the legacy API
| Legacy | Now |
|---|---|
/v1/user/getToken with a user and password of the property | Your partner key in x-api-key, the property in the path. |
/v1/reservation/get and getAll | The booking search and the booking detail. |
/v1/user/setHost with rscode, main and the legacy field names (document_class_code, date_of_birth…) | POST …/kiosk/guests/{bookingId}: holder instead of main, camelCase fields, dates as YYYY-MM-DD, countries as ISO 3166-1 alpha-3, images as JPEG data URIs. |
/v1/reservation/checkin | PUT /api/bookings/{pcode}/check-in-out/{bookingId}. |
/panel/invoice/setPayment with a free payment type, which recorded the same payment again on every resend | POST …/kiosk/payments/{bookingId} with method card or cash, and transactionId to make resends safe. It does not invoice, as setPayment did not: the property issues the invoice. |