Get booking proformas
Bookings
Retrieve the proformas issued for a booking. A proforma is a quote in the shape of an invoice: it is sent to the guest or the company before the stay to state what it will cost, and it has no accounting value — it does not use the invoice numbering and it settles nothing. The real document is the invoice (/invoices), which may be issued later for a different amount if the stay changed. When the booking is part of a group, the proformas of every booking of the group in the same property come too. Each entry carries its series and number, date, total, line items and the customer or company it was addressed to. Amounts are in the currency the proforma was issued in, given in coin as it was stored.
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
Currency of the proforma as it was stored when it was issued: the symbol for most properties (€, $, S./), an ISO 4217 code for some others (COP, MAD, PHP). Not normalised; null on a few old proformas that stored none
Proforma issue date (YYYY-MM-DD)
Unique ID of the proforma
Proforma series prefix (e.g. PRO) as configured in the property settings
Number of the proforma within its series, as text. The series is in prefix: the printed reference is the two together
Total amount of the proforma (including taxes)
Always false: proformas have no credit flag. Kept so that the shape matches the invoices one
Day the proforma was emailed (YYYY-MM-DD). Absent when it was never sent
List of booking IDs included in this proforma
Line items breakdown. Keyed by item ID, each entry shows the booking it belongs to, tax percentage, and total amount
Billing customer type: particular, company, or agency
Billing customer first name. For a particular it is every word of the billing name but the last; for a company or an agency it is the whole billing name
Billing customer last name: the last word of the billing name for a particular (empty when the name is one word), and always empty for a company or an agency
Billing customer document type: P (passport), D (DNI), C (driving license), I (identity card), N (Spanish residence permit), X (foreign residence permit), MI (minor undocumented), E (other), IDX (foreigner ID), ID (identity card, legacy code), 50 (foreign tax ID). P when the stored type is missing or not one of these
Billing customer document number. Absent when it was not recorded
Billing customer phone number. Absent when empty
Billing address. Absent when empty
Billing postal code. Absent when empty
Billing city. Absent when empty
Billing country code as stored: almost always ISO 3166-1 alpha-3, a two-letter code on a few older documents. Absent when empty
Billing province or state. Absent when empty
Additional notes or observations on the proforma. Absent when empty
Country name of the billing customer as it was typed (for example "france"), the text the proforma prints. Absent when empty
What is a pcode?
Rate limits