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

  1. 1Find the bookingSearch it with GET /api/v2/bookings/{pcode}/search and read it with GET /api/bookings/{pcode}/detail/{bookingId}: dates, room, guests already on it and status.
  2. 2Register each guestPOST /api/integrations/{pcode}/kiosk/guests/{bookingId}, one call per guest, with the document you read. Send holder: true for 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.
  3. 3Check the booking inPUT /api/bookings/{pcode}/check-in-out/{bookingId} with nextStatus: checked-in, once every guest is registered: it is the check-in that sends them to the police registration, as when reception does it.
  4. 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: pin with the PIN as text (leading zeros kept), keyWithoutPin when the key carries no PIN (send the guest to reception), or none. Before the check-in it answers 409 kioskBookingNotCheckedIn. 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.
  5. 5Record what was paidRead what is due with GET /api/v2/bookings/{pcode}/payments/{bookingId}, collect it, and record it with POST /api/integrations/{pcode}/kiosk/payments/{bookingId}. Your transactionId is 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

LegacyNow
/v1/user/getToken with a user and password of the propertyYour partner key in x-api-key, the property in the path.
/v1/reservation/get and getAllThe 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/checkinPUT /api/bookings/{pcode}/check-in-out/{bookingId}.
/panel/invoice/setPayment with a free payment type, which recorded the same payment again on every resendPOST …/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.