Get booking engine packs

Booking engine

get/api/direct-booking/{pcode}/packsx-api-key

The packs the property sells on its booking engine: an offer tied to room types, a date window and a minimum stay, sometimes with products included. It is the list Hotelgest's own booking engine offers; packs whose last day is before yesterday, and packs the hotel hides from its engine, are left out. name and text carry only the languages the hotel wrote, and are an empty object when it wrote none.

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/direct-booking/123456/packs

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

id
string

Pack id

BookingEnginePackRoomDto[]

The room type, occupancy, board and policy combinations the pack is sold on

name
object

Pack name per language, keyed by language code. Only the languages the hotel wrote; an empty object when it wrote none

text
object

Pack description per language, keyed by language code. Only the languages the hotel wrote; an empty object when it wrote none

board
string

Board of the pack (that of its last room row)

type
string

Kind of pack, as the legacy stores it

weekday
string

Weekdays the pack is restricted to, as the legacy stores them. Null or empty when any day

match_weekday
number

How weekday applies, as the legacy stores it: 0 when it does not restrict

iframe
string

Whether the pack is kept off the booking engine, as the legacy stores it: always 0 or lower here, because packs hidden from it are left out

extcode
string

External code the hotel gave the pack, if any

promo_code_excl
string

1 when promo codes cannot be combined with the pack

dfrom
string

First day the pack can be booked

dto
string

Last day the pack can be booked

price
number

Price of the pack

dtype
string

How value applies: 0 replaces the price with value, -1 takes value % off, -2 takes value off, 1 adds value %, 2 adds value

value
string

Amount or percentage dtype applies

min_stay
string

Minimum nights

max_stay
string

Maximum nights (0 means no limit)

BookingEnginePackProductDto[]

Products included in the pack, when it includes any

Example response
1[
2 {
3 "id": "12",
4 "room": [
5 {
6 "id": "481",
7 "rtcode": "101",
8 "occupancy": "2",
9 "board": "bb",
10 "policy": "4"
11 }
12 ],
13 "name": {
14 "es": "Escapada romántica",
15 "en": "Romantic getaway"
16 },
17 "text": {
18 "es": "Dos noches con cena",
19 "en": "Two nights with dinner"
20 },
21 "board": "bb",
22 "type": null,
23 "weekday": null,
24 "match_weekday": 0,
25 "iframe": "0",
26 "extcode": null,
27 "promo_code_excl": "0",
28 "dfrom": "2027-01-01",
29 "dto": "2027-12-31",
30 "price": 240,
31 "dtype": "-1",
32 "value": "10",
33 "min_stay": "2",
34 "max_stay": "0",
35 "pack_prod": [
36 {
37 "product_id": 33,
38 "value": 1
39 }
40 ]
41 }
42]

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.