Get the property's basics

Properties

get/api/properties/{pcode}/settings/litex-api-key

What an integration needs to know about the property to read its prices and bookings: its name and stars, where it is, the currency and time zone its prices and dates are in, whether those prices include tax, and its default arrival and departure times. The times, as hours of the day, are what applies to a booking that does not state its own: the booking endpoints return per-booking arrival and departure times only when someone has set them, so fall back to these when those come back empty. These two are HH:mm, and an empty string when the property has not set them either — then no default time applies. All of it rarely changes — fetch once and keep.

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/properties/123456/settings/lite

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.

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

arrivalHour
string

Default check-in time configured for the property (HH:mm). Empty string when the property has not set one

departureHour
string

Default check-out time configured for the property (HH:mm). Empty string when the property has not set one

name
string

Name of the property

stars
number

Star rating, when set

currency
string

Currency of its prices (ISO 4217). EUR when the property has none set

currencySymbol
string

Symbol of that currency, as the property shows it

timezone
string

Time zone of the property (IANA). Dates without a time, such as stay nights, are in it. Europe/Madrid when the property has none set

pricesIncludeTax
boolean

Whether the prices the property sets include tax. When false, tax is added on top

taxRate
number

VAT rate of the stay, in percent, when the property set one

country
string

Country (ISO 3166-1 alpha-3, as stored for the property). Null when not set

province
string

Province or region

city
string

City

address
string

Street address

postalCode
string

Postal code

latitude
number

Latitude, in decimal degrees

longitude
number

Longitude, in decimal degrees

Example response
1{
2 "arrivalHour": "15:00",
3 "departureHour": "11:00",
4 "name": "Hotel Demo",
5 "stars": 4,
6 "currency": "EUR",
7 "currencySymbol": "€",
8 "timezone": "Europe/Madrid",
9 "pricesIncludeTax": true,
10 "taxRate": 10,
11 "country": "ESP",
12 "province": "Málaga",
13 "city": "Nerja",
14 "address": "Calle Mayor 1",
15 "postalCode": "29780",
16 "latitude": 36.74518,
17 "longitude": -3.8818377
18}

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.