Get booking deposits

Bookings

get/api/bookings/{pcode}/deposits/{bookingId}x-api-key

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

gethttps://uni-api.hotelgest.com/api/bookings/123456/deposits/789

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

pcode
number

Property code. Identifies the property (hotel, apartment building, hostel) the request applies to. It must match the property your API key was issued for.

bookingId
number

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

id
number

Unique ID of the deposit

pcode
number

Property code this deposit belongs to

bookingId
number

ID of the booking this deposit is linked to

amount
number

Amount of the entry, in the currency given by currency: positive on a deposit, negative on the refund that gave it back

currency
string

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
string

Date the deposit was taken (YYYY-MM-DD). Null when it was recorded without one

observations
string

Free-text notes about this deposit. Null when none were written

createdAt
string

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

paymentId
number

ID of the payment this deposit was converted into. Absent when it was not converted

refundId
number

On a deposit entry that was given back, the ID of its refund entry. Absent when it was not returned

DepositType

Type of deposit: deposit (money received) or refund (money returned)

Example response
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?

The property code. Every endpoint is scoped to one property, and your API key only works for the property it was issued for.

Rate limits

100 requests per minute per source IP, 120 per API key and 300 per property, each counted across every endpoint together — not per endpoint. Over any of them you get a 429 with the seconds to wait in Retry-After-<limit> (apikey-ip, apikey or apikey-pcode): stop and wait it out. Repeat offences on a key or a property are blocked for longer each time, up to 7 days.