API, AI-assisted integration and a secure test environment to build connected hotel solutions.
> GET /api/v1/ping Authorization: Bearer hgxk_test_… 200 OK { "hotel": "Hotel de pruebas", "key": "Mi integración", "scopes": ["setup:read", "bookings:write", "ari:read"] }
Different ways to connect, to fit your solution, use case and roadmap. All of them work on the hotel's same inventory, rates and bookings.
Direct integration with hotel data: setup, bookings, availability and rates in JSON. For PMSs, apps, OTAs and integrators.
Connection with channel managers through Channex: HotelGEX appears as just another channel to exchange availability, prices, restrictions and bookings.
Integration through OpenTravel (OTA) messages for distribution and booking management. We are opening pilots with partners.
If you are an OTA, a bedbank, a wholesaler or a B2B or B2C channel, you can receive availability and prices from hotels using HotelGEX and send them bookings, with the same inventory as every other channel.
HotelGEX hotels already distribute on more than 70 channels.
«OTA or direct channel» profile with its own sandbox.
GET /ariPUT /bookings/{ref}POST /bookings/{ref}/cancelFor channels that already work with the OpenTravel standard.
Use our MCP (Model Context Protocol) to search the documentation, validate payloads and, if you are a partner, run tests in your test hotel.
Open to everyone, no account needed: search the documentation, ask for examples in curl, PHP, Node, Python or C# and validate JSON and OTA XML.
The sandbox with login is for partners: the address comes in your invitation.
claude mcp add --transport http hotelgex https://app.hotelgex.es/mcp/docsIn Cursor or VS Code, add the URL as an HTTP MCP server.Connect your application to HotelGEX in four simple steps.
curl https://app.hotelgex.es/api/v1/ping \
-H "Authorization: Bearer hgxk_test_…"
200 OK · hotel, clave y permisosAll the documentation and resources to integrate your solution with HotelGEX.
Integrate your technology with a common data model and clear rules on who is in charge of availability and prices (ARI) at each hotel.
Each hotel has a single ARI owner: its channel manager or HotelGEX. That way two systems never overwrite each other's prices and the data stays consistent.
Base https://app.hotelgex.es/api/v1 · JSON · dates AAAA-MM-DD. The OpenAPI specification and full examples are in the MCP (tool api_referencia).
Each hotel has its own secret keys (hgxk_…), with permissions by scope: setup:read, setup:write, bookings:read, bookings:write and ari:read. They are created by the HotelGEX team and shown only once. Test keys (hgxk_test_…) only open the sandbox.
Authorization: Bearer hgxk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
| Method and path | What it does |
|---|---|
GET /ping | Checks the connection: hotel, key name and permissions. |
GET /setup | Codes for room types, rooms and rates used by bookings and ARI. |
GET /setup/template | Sheets and columns accepted for loading the setup. |
POST /setup/preview | Preview without writing anything; returns a summary and a token valid for 2 hours. |
POST /setup/apply | Applies the preview, all or nothing. An empty cell never deletes anything. |
PUT /bookings/{ref} | Idempotent creation or update by your reference. 201 if created, 200 if updated. |
POST /bookings/{ref}/cancel | Cancels the booking (idempotent). |
GET /bookings/{ref} | Look up by your reference or by the HotelGEX booking code. |
GET /bookings?changed_since= | All the hotel's bookings sorted by last modification, for syncing (maximum 200 per page). |
GET /ari?from=&to= | Availability and price per day, room type and rate (maximum 92 days). |
PUT https://app.hotelgex.es/api/v1/bookings/EXP-123456
{
"status": "confirmed",
"arrival_date": "2026-12-15",
"departure_date": "2026-12-17",
"adults": 2, "children": 0,
"guest": {"first_name": "Ana", "last_name": "García", "email": "ana@example.com", "language": "es"},
"room_type": "DBL", "rate_plan": "BAR", "room_number": "101",
"total_amount": 240.00, "currency": "EUR",
"channel": "Expedia", "notes": "Llegada tarde"
} Required: dates, guest.last_name, room_type and total_amount. The API only modifies the bookings it created itself; those from the booking engine, OTAs or the PMS return 409 not_owned. To sync, call GET /bookings?changed_since= with the meta.next_changed_since value from the previous response: it includes bookings from all of the hotel's sources.
GET /ari?from=&to= returns availability and price by day, room type and rate, up to 92 days per call. Coming soon: ARI write, only at hotels where HotelGEX owns the prices.
Each partner has its own test hotel, isolated from real hotels: hgxk_test_ keys, sample data, real API calls and an error log, also from the MCP. It comes with the partner invitation, free of charge: request access.
Format: {"error": {"code": "...", "message": "...", "details": {...}}} with 401 (missing or invalid key), 403 (no permission), 404, 409 (for example not_owned) or 422 (invalid data). Limits: 240 requests per minute per key in production; in the sandbox, 60 per minute and 5,000 per day per partner. Recommendation: retry with exponential backoff and sync with changed_since rather than reading booking by booking.
The hotel can keep managing prices and allocations in its channel manager. HotelGEX connects as just another channel: it receives availability, prices and restrictions, and sends back bookings from the booking engine, Concierge and Journey. The hotel adds the «Open Channel» channel in its Channex account with these details:
| Field | Value |
|---|---|
| Base URL | https://app.hotelgex.es/api/channex-oc/ |
| Hotel Code | Each hotel's own code (shown in HotelGEX → Integrations). |
| API key | The hotel's Open Channel key, in the api-key header. |
Supported messages: test_connection, mapping_details and changes (availability, prices, closed, CTA, CTD, minimum and maximum stay). HotelGEX sends Channex new, modified and cancelled bookings.
For channel managers and channels that work with OpenTravel messages. We are preparing it with pilot partners:
| Direction | Messages |
|---|---|
| To HotelGEX | OTA_HotelAvailNotifRQ (availability and restrictions) and OTA_HotelRateAmountNotifRQ (rates) |
| From HotelGEX | OTA_HotelResNotifRQ (bookings) |
You can already validate your OTA XML messages with the MCP (tool validar_ota_xml). If you want to be a pilot, write to us.
Free programme for technology partners: integrate your solution, certify your connection and access new opportunities with HotelGEX hotels.
Request partner accessFrom first contact to integration in production.