Revenue management systems
Read what a property sells and has sold, and push its prices and restrictions — and what changes coming from the legacy API.
8 min read
For an RMS on the partner programme: everything it needs to price a property, from reading its rooms and its current prices to pushing new ones and following its bookings. Every route below takes your partner key and is reached only once it is enabled on your connection to that property; the answers come sealed to your key, as the encryption guide explains.
The property has to have its rates on Unified
rmsPropertyNotOnUnified, and nothing is stored. Hotelgest moves the property to Unified before your integration goes live; ask your Hotelgest contact. Reading works either way.What to ask us for
These go in your ceiling when you join, and every connection carries your whole ceiling: when a property switches your integration on in its Marketplace, all of them are enabled for that property. None of them reaches you without being in your ceiling first.
| Endpoint | What it is for |
|---|---|
GET /api/properties/{pcode}/settings/lite | The property: name, stars, where it is, its currency and time zone, and whether its prices include tax. |
GET /api/rooms/{pcode}/types | Its room types and rooms. |
GET /api/integrations/{pcode}/rms/rates | The rates you may push to, with their room type, channel, board, policy and guests: map yours onto their id. |
GET /api/direct-booking/{pcode}/prices | What the booking engine sells: the price of each of its rates, night by night, with availability and restrictions. |
GET /api/integrations/{pcode}/rms/prices | The price each rate of rms/rates sells at, night by night, channel rates and linked ones included, plus the free rooms and the stay restrictions of each night; a night without a price comes as null, never 0. Narrow it with rateId, with roomTypeId, or with both. |
POST /api/integrations/{pcode}/rms/push | Your prices or restrictions for one rate. |
GET /api/integrations/{pcode}/rms/on-the-books | What is sold and what is left: bookings with their nights, and rooms sold, blocked and free per day. |
GET /api/integrations/{pcode}/rms/booking-changes | The bookings that changed since your last call: status, channel, dates, room type, guests counted by age, board, policy and amounts. No personal data beyond the holder’s country, nationality and language. |
Coming from the legacy API
The data keeps the shape the legacy endpoints use, field names included, so moving over is mostly a matter of new addresses and a new credential. Where something changes, the table says so.
| Legacy | Now | What changes |
|---|---|---|
POST /panel/channel/rms, /panel/channel/rmsRestriction | POST …/rms/push | The same elements (StartUtc, EndUtc, Value, min_stay…). The property goes in the path and no publicToken: the key says who you are. The answer is { requestId, ignored } and refusals carry a code. |
POST /panel/channel/rate | GET …/rms/rates | The same rates and fields, without the { success, data } envelope; with roomTypeId, occupancy, active and anchored added. |
GET /v1/booking/price | GET /api/direct-booking/{pcode}/prices | The same answer for the booking engine’s rates (rate). The channel rates of channel=1 (rateChannel) are not in it: read them from …/rms/prices. |
GET /v1/booking/price with channel=1, rateChannel[…].priceList | GET …/rms/prices | The same nightly price, one entry per rate with the ids of …/rms/rates, its roomTypeId and its anchored. Each night also carries what the legacy gave alongside the price: availability (the legacy availabilityList) and the stay restrictions minStay (the legacy minstay, 1 when none is set), maxStay, closed, closedToArrival and closedToDeparture. A channel rate’s restrictions come from its OTA’s own calendar; the legacy read them all from the direct-sale one. Every rate you may push to comes, whether or not its room type is on the booking engine, main and mainchannel included. A night without a price is null, never 0, and so is availability when there are no rooms to read. Filter with rateId, roomTypeId or both; start and end are both included, and end at most 366 days after start. |
POST /panel/thirdPart/revbell | GET …/rms/on-the-books | The same answer and parameters, plus, on each booking, roomTypeId, currency, commission, taxRate, its extras and a netPrice per night. On a cancelled booking, Fecha_Anulacion is when it was cancelled, read from its history: the legacy gave its last change, which any later edit moved. dfrom is required, and dto at most 366 days after dfrom. |
GET /v1/property/{pcode} | GET /api/properties/{pcode}/settings/lite | The fields an integration needs, not the whole property record. |
GET /v1/property/{pcode}/room, /v1/booking/room | GET /api/rooms/{pcode}/types | Room types with their rooms, in the Public API shape. |
| A nightly push from Hotelgest | GET …/rms/booking-changes | You poll for what changed, as often as you need, instead of waiting for it. |
Pushing prices and restrictions
1POST /api/integrations/1234/rms/push2x-api-key: <your key for this property>34{5 "rateId": 48122,6 "sentAt": "2026-10-15T08:30:00Z",7 "rate": [8 { "StartUtc": "2026-11-01", "EndUtc": "2026-11-15", "Value": "129.90" },9 { "StartUtc": "2026-11-16", "EndUtc": "2026-11-30", "Value": "119.00" }10 ]11}1213→ 200, once opened with your key: { "requestId": "9b2f6c1e-…", "ignored": [] }
Value) or restrictions (min_stay_through, stop_sell, max_stay; min_stay only counts beside one of them, so send minimum stays as min_stay_through), never both. Dates go from yesterday to 700 days ahead. ignored lists what you sent that is accepted and not applied: closures and maximum stays, for now.The queue is not the legacy one
sentAt and a late retry built before your last accepted push is refused with 409 rmsPushStale instead of overwriting newer prices. A 429 with rmsQueueFull or rmsQueueUnavailable means nothing was stored: resend after the Retry-After seconds.| Refusal | What to do |
|---|---|
400 rmsRateNotFound, rmsRoomTypeNotFound | The id is not one of the property: list the rates again and remap. |
400 rmsRateNotPushable | A price modifier: push the rate it derives from. |
400 with a validation list | The body does not have the shape: prices and restrictions mixed, a price that is not an amount, a date outside yesterday to 700 days ahead. Each entry names the field, as the errors guide explains. |
400 rmsPushTooLarge | The ranges overlap so much they spell out too many days: send ranges that do not repeat days. |
409 rmsPropertyNotOnUnified | The property is not ready: ask Hotelgest to move it, then push again. |
409 rmsPushStale | Nothing to do: a newer push of yours already won. |
429 rmsQueueFull, rmsQueueUnavailable | Resend after Retry-After seconds. |
Reading what is sold
- 1Take the pictureOn-the-books with
dfromanddtogives the bookings arriving in the range, each night with its price, and the capacity of every day: sold, blocked, free. Ask forarticleto get the articles sold too. - 2Then follow the changesCall booking-changes with
since; while the answer has anextCursor, call again withcursorset to it. Every page of that pass answers the sameuntil: oncenextCursoris null, use it as thesinceof your next poll. Changes are compared to the second, so a booking can come twice: keep the latest version of each by its id. Cancellations come too.