Get customer document image
Bookings
Download a scan of a guest's identity document — passport, ID card or residence permit — or the guest's signature, as binary image data. The hash is not something you build: read it from the booking detail, as the last segment of the customer fields documentPortraitImagePath, documentFrontImagePath, documentBackImagePath or signatureImagePath, which hold the whole path of this endpoint. A guest who never uploaded a document has none, and there is nothing to fetch. Responses carry a strong ETag and may be cached for 10 minutes; send the ETag back as If-None-Match and you get 304 Not Modified, with no body, instead of the bytes. The same document keeps the same hash even if the guest replaces the file, so rely on the ETag rather than the URL to tell whether it changed. With an API key, this endpoint counts against the key's quota like any other. This is personal data: the response is marked as privately cacheable so no shared cache keeps a copy. Store it accordingly, or not at all.
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
Headers
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.
Identifier of the document image: the last segment of the path in the customer fields documentPortraitImagePath, documentFrontImagePath, documentBackImagePath or signatureImagePath of the booking detail. Take it from there rather than building it
Responses
The document image, as binary data. The content type is the one the file was stored with: image/jpg for documents scanned in the PMS (a non-standard spelling of JPEG; treat it as image/jpeg), application/octet-stream for older ones uploaded through the legacy panel, and image/png or image/jpeg when the file was stored that way. Read the bytes rather than trusting the type
1"<binary>"
What is a pcode?
Rate limits