Get booking deposits
Bookings
Retrieve the security deposits held against a booking. A deposit is money taken as a guarantee, not as payment for the stay: it is returned at check-out unless it is converted into a payment. That is what type says — deposit for money taken, refund for money given back — so a deposit that was returned appears as two entries, the refund one with the amount negative. A deposit converted into a payment carries the paymentId it became; a returned one carries the refundId of its refund entry. Each entry gives its currency in currency, as it was stored. Payments for the stay itself are a different endpoint: /payments.
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
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.
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
Unique ID of the deposit
Property code this deposit belongs to
ID of the booking this deposit is linked to
Amount of the entry, in the currency given by currency: positive on a deposit, negative on the refund that gave it back
Currency of the deposit as it was stored: the currency symbol (€) for deposits recorded in the PMS, the ISO 4217 code for some recorded by the legacy panel. Not normalised
Date the deposit was taken (YYYY-MM-DD). Null when it was recorded without one
Free-text notes about this deposit. Null when none were written
When the deposit was recorded, as an ISO 8601 date-time with a Z suffix. Deposits recorded in the PMS hold UTC; older ones recorded by the legacy panel hold Spain local time (Europe/Madrid) under the same suffix
ID of the payment this deposit was converted into. Absent when it was not converted
On a deposit entry that was given back, the ID of its refund entry. Absent when it was not returned
Type of deposit: deposit (money received) or refund (money returned)
1[2 {3 "id": 1,4 "pcode": 123456,5 "bookingId": 789,6 "amount": 150,7 "currency": "€",8 "date": "2025-01-10",9 "observations": "Deposit made at check-in",10 "createdAt": "2025-01-10T12:00:00.000Z",11 "paymentId": 101,12 "refundId": 12,13 "type": "deposit"14 }15]
What is a pcode?
Rate limits