Register a guest of a booking
Bookings
Saves one guest of the booking from the identity document the kiosk read: one call per guest, before checking the booking in with PUT /api/bookings/{pcode}/check-in-out/{bookingId}, which sends them to the police registration. Send holder: true for the guest the booking is for: their record on the booking is completed with the document instead of a second one being added. A companion goes to the first companion place, taking it over when the booking holds it by name only, or to the next free one. Only the people already on this booking are matched by their document, and sending a guest again updates them in place and answers the same guestId: it is safe to retry. The booking history credits each guest to your partner name. Fields you leave out keep what the booking already had. Dates go as YYYY-MM-DD and countries as ISO 3166-1 alpha-3. The signature and the document images are optional JPEGs as data URIs; the document images are kept only while the property stores them. Answers 409 kioskBookingCheckedOut once the booking is checked out, 409 kioskBookingNotActive for a cancelled booking, a no-show or a block, and 409 kioskInProgress while another kiosk write for the same booking runs — retry in a moment. The images go through an antivirus scan before anything is saved: 422 fileBlocked with its reason when it refuses one, 409 fileScanUnavailable when the scan cannot be done and 429 fileScanBusy with Retry-After when it is busy; nothing is saved in any of them. Partner keys only, with this endpoint granted to the connection.
Console
Runs against the API from your browser, with the same request your server will send.
Environment
Production
https://uni-api.hotelgest.com
Calls hit live data with your own API key. A POST, PUT, PATCH or DELETE here changes a real property.
Credentials
The API key, sent on every request. A property admin creates it in the PMS under Settings → API keys; a partner receives one per property when the property activates its integration. It works only for the property it was issued for, and only on the endpoints granted to it.
This endpoint needs a credential. Without it you will get a 401.
Stored in this browser only. Never sent anywhere but the API host above.
Path parameters
Body
Arm production
Writing methods are locked until you arm them. This is live hotel data.
POST is locked on production. Arm it above if you mean it.
Send the request to see the real response here.
Nothing is mocked. What comes back is what the API returned.
Requests go straight from your browser to the API host above — nothing is proxied through this site.
Path parameters
Property code. Identifies the property (hotel, apartment building, hostel) the request applies to. It must match the property your API key was issued for.
Booking ID. Obtained from the search endpoints (GET /api/v2/bookings/{pcode}/search) or returned by the booking creation endpoint.
Request body
This guest is who the booking is for. Their record on the booking is completed with the document, and the booking is put in their name. Leave it out, or false, for everybody else.
Given name, as the document prints it
Surnames, as the document prints them
P passport, D Spanish DNI, I identity card of another country, N Spanish residence permit (NIE), X foreign residence permit, C driving licence, MI undocumented minor
One of:PDCMIINXEIDXID50
Number of the document, up to 15 characters. Required except for MI
Support number of a Spanish DNI or NIE. The police registration refuses an adult with one of those documents without it
Country that issued the document, ISO 3166-1 alpha-3
Issue date, YYYY-MM-DD
Expiry date, YYYY-MM-DD
As the document prints it: M male, F female, O other
One of:MFO
Date of birth, YYYY-MM-DD
Nationality, ISO 3166-1 alpha-3
Country of residence, ISO 3166-1 alpha-3. The nationality when left out
Province, for a residence in Spain
Municipality, for a residence in Spain
Relationship to the holder, which the police registration asks for a minor: PM parent, TU guardian, HJ child, OT other…
One of:ABBABNCYCDHRHJPMNISBSGTIYNTUOT
The guest’s signature, a JPEG as a data URI
Front of the document, a JPEG as a data URI. Kept only while the property stores document images
Back of the document, a JPEG as a data URI. Kept only while the property stores document images
Photo of the document holder, a JPEG as a data URI. Kept only while the property stores document images
Responses
Ok. If your API key answers encrypted — every key issued now does, and every partner credential — this body arrives as the encryption envelope ({ crypto, protected, wrappedKey, iv, payload, tag }, a compact JWE), and the schema below is what its payload decrypts to. See https://public-api.hotelgest.com/public/guides/encryption
ID of the guest on the booking. The same one when the document was already on it: sending a guest again updates them in place
1{2 "guestId": 44712033}
What is a pcode?
Rate limits