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

A push for a property whose rates are still managed on the legacy platform is refused with 409 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.

EndpointWhat it is for
GET /api/properties/{pcode}/settings/liteThe property: name, stars, where it is, its currency and time zone, and whether its prices include tax.
GET /api/rooms/{pcode}/typesIts room types and rooms.
GET /api/integrations/{pcode}/rms/ratesThe rates you may push to, with their room type, channel, board, policy and guests: map yours onto their id.
GET /api/direct-booking/{pcode}/pricesWhat the booking engine sells: the price of each of its rates, night by night, with availability and restrictions.
GET /api/integrations/{pcode}/rms/pricesThe 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/pushYour prices or restrictions for one rate.
GET /api/integrations/{pcode}/rms/on-the-booksWhat is sold and what is left: bookings with their nights, and rooms sold, blocked and free per day.
GET /api/integrations/{pcode}/rms/booking-changesThe 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.

LegacyNowWhat changes
POST /panel/channel/rms, /panel/channel/rmsRestrictionPOST …/rms/pushThe 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/rateGET …/rms/ratesThe same rates and fields, without the { success, data } envelope; with roomTypeId, occupancy, active and anchored added.
GET /v1/booking/priceGET /api/direct-booking/{pcode}/pricesThe 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[…].priceListGET …/rms/pricesThe 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/revbellGET …/rms/on-the-booksThe 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/liteThe fields an integration needs, not the whole property record.
GET /v1/property/{pcode}/room, /v1/booking/roomGET /api/rooms/{pcode}/typesRoom types with their rooms, in the Public API shape.
A nightly push from HotelgestGET …/rms/booking-changesYou poll for what changed, as often as you need, instead of waiting for it.

Pushing prices and restrictions

json
1POST /api/integrations/1234/rms/push
2x-api-key: <your key for this property>
3
4{
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}
12
13→ 200, once opened with your key: { "requestId": "9b2f6c1e-…", "ignored": [] }
One rate per push, either prices (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

A push is applied within the minute, not when a cron gets to it hours later, and the answer still comes as soon as it is queued. Each day keeps only the newest value sent for it, so resending a whole calendar costs nothing; inside one push, a later tranche wins over an earlier one on the days they share. Send 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.
RefusalWhat to do
400 rmsRateNotFound, rmsRoomTypeNotFoundThe id is not one of the property: list the rates again and remap.
400 rmsRateNotPushableA price modifier: push the rate it derives from.
400 with a validation listThe 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 rmsPushTooLargeThe ranges overlap so much they spell out too many days: send ranges that do not repeat days.
409 rmsPropertyNotOnUnifiedThe property is not ready: ask Hotelgest to move it, then push again.
409 rmsPushStaleNothing to do: a newer push of yours already won.
429 rmsQueueFull, rmsQueueUnavailableResend after Retry-After seconds.

Reading what is sold

  1. 1Take the pictureOn-the-books with dfrom and dto gives the bookings arriving in the range, each night with its price, and the capacity of every day: sold, blocked, free. Ask for article to get the articles sold too.
  2. 2Then follow the changesCall booking-changes with since; while the answer has a nextCursor, call again with cursor set to it. Every page of that pass answers the same until: once nextCursor is null, use it as the since of 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.