Guide
Notices(messages inside an answer)
ZimmerStack accepted your update. A is a short message in the same answer. It tells you about something the update did not do. Each notice has a code that never changes, and it says what to do.
The idea
An error stops an update. A notice does not. The update was accepted, and its values are saved. The notice says what ZimmerStack can see that you probably did not want.
Here is one example. You stop selling one on 31 December. The update is accepted. But the room still sells, through another rate plan. The answer carries a notice that says so.
- Where notices are
- In the field
noticesof the answer. Every update of , and can carry them. So can every dry run of one. - What one notice holds
- A
code, alevel, amessagefor a person, and anactionthat says what to do. It also says what it is about: the room type, the rate plans, the nights and the OTAs. - How many
- At most 20 in one answer, warnings first. If there were more,
noticesOmittedsays how many were left out. When there is nothing to say, the field is not there. - Level: warning
- ZimmerStack can see that your update does not do the whole job. Something still sells. Or nothing is sent. Or a rule of the hotel will undo it.
- Level: info
- It explains how something works, so that it does not surprise you later.
- How to use them
- Let your code decide by
code. Showmessageandactionto a person. A code you do not know was added later: show it too. - A notice is not an error
- No notice code is an error code of Errors. The older field
warningskeeps its own meaning: an availability number above the room type's rooms. Notices are a field of their own.
Example 1: a stop sell on one rate plan leaves the room on sale
A hotel sells its Deluxe Garden Room through two rate plans: "Bed and breakfast" and "Room only". For 31 December your software sends a for "Bed and breakfast". The person meant: "do not sell this room that night".
The update is accepted. But the room keeps selling, through "Room only". The answer says so:
{
"batchId": "0b7c4f52-91d3-4e0a-8c66-5a1f2e3d4c5b",
"resource": "restrictions",
"requestedCells": 1,
"acceptedCells": 1,
"noopCells": 0,
"rejected": [],
"pushedBy": "ari-projector",
"poll": "/api/v1/connect-api/v1/batches/0b7c4f52-91d3-4e0a-8c66-5a1f2e3d4c5b",
"notices": [
{
"code": "ROOM_STILL_ON_SALE",
"level": "warning",
"message": "You sent a stop-sell for rate plan 901: a switch on that plan, not on the room. Room type 412 is still on sale on 1 night through its other plan 904.",
"action": "To close the room on every plan and every channel, use POST /availability/close for room type 412, or send availability 0 for it (PUT /availability).",
"roomTypeId": 412,
"ratePlanIds": [
901
],
"otherRatePlanIds": [
904
],
"dateFrom": "2026-12-31",
"dateTo": "2026-12-31",
"nights": 1
}
]
}- code
- ROOM_STILL_ON_SALE. Your code can decide by this.
- otherRatePlanIds
- The rate plans that are still selling. Here: 904.
- message and action
- Show both to the person who saved.
- The fix to offer
- Close the room type.
The rule for your code: after every update, read data.notices. Decide by code. Show message and action to a person. When noticesOmitted is there, that many more were left out.
With the Node package, reading the notices looks like this:
const accepted = await zs().restrictions.set([{ ratePlanId, dateFrom: night, dateTo: night, stopSell: true }]);
// Accepted is not "the room is closed". A stop-sell is a switch on ONE rate plan.
const stillSelling = findNotice(accepted, "ROOM_STILL_ON_SALE");
if (stillSelling) {
// The room type is still on sale through its other plans: say so, with what to do about it.
console.log(stillSelling.message);
console.log(stillSelling.action, "Other plans:", stillSelling.otherRatePlanIds?.join(", "));
}
// Every other notice goes to the person too; a code you do not know is shown like the rest.
for (const notice of noticesOf(accepted)) if (notice !== stillSelling) console.log(notice.level, notice.code, notice.message);
Example 2: availability 0 is not a stop sell
The other way to close that night is to send availability 0 for the . That closes the room on every rate plan and every at once. But it is a number, not a switch.
The next morning a guest cancels at an OTA. One room is put back. Now the availability is 1, and the room is on sale again. So an update with 0 carries this notice:
{
"updates": [
{
"roomTypeId": 412,
"dateFrom": "2026-12-31",
"dateTo": "2026-12-31",
"available": 0
}
]
}[
{
"code": "COUNT_ZERO_IS_NOT_STOP_SELL",
"level": "info",
"roomTypeId": 412,
"dateFrom": "2026-12-31",
"dateTo": "2026-12-31",
"nights": 1,
"message": "…a sentence for a person…",
"action": "…what to do, with the request to send…"
}
]You sent availability 0. It is a number, not a switch. It closes every rate plan on every OTA. But the next cancellation at an OTA, or your next number, changes it.
A number and a switch
Availability 0 and a stop sell are two different things. To close a room and keep it closed, you need both. One of the rows below names an and a .
| Availability 0 | Stop sell | |
|---|---|---|
| What it is | A number for the room type. | A switch on one rate plan. |
| What it closes | Every rate plan of the room, on every OTA. Also OTA-linked rates. | That rate plan only. Its per-OTA plans take it from it. |
| What changes it | A cancellation at an OTA puts one room back. Your next number replaces it. | Only an update. It stays, whatever the availability does. |
| What it leaves on sale | Nothing, until the number changes. | The room's other rate plans, and any OTA-linked rate. |
- What it isAvailability 0A number for the room type.Stop sellA switch on one rate plan.
- What it closesAvailability 0Every rate plan of the room, on every OTA. Also OTA-linked rates.Stop sellThat rate plan only. Its per-OTA plans take it from it.
- What changes itAvailability 0A cancellation at an OTA puts one room back. Your next number replaces it.Stop sellOnly an update. It stays, whatever the availability does.
- What it leaves on saleAvailability 0Nothing, until the number changes.Stop sellThe room's other rate plans, and any OTA-linked rate.
Every code
There are 19 codes. Each one has a level. Each one says which update can carry it, what it means and what to do. In this list, is the company between ZimmerStack and the OTAs. The API's own messages call it "the channel manager".
NOT_SOURCE_OF_TRUTHwarning, on every update- The hotel is not live for your software yet. Rates and restrictions you send now are saved and wait for go-live. Of availability, only a number that lowers what is on sale is sent on.
- What to do: Check if the hotel is ready (GET /readiness), then go live (POST /go-live). Until then nothing you send reaches an OTA.
ROOM_TYPE_NOT_LINKEDwarning, on an update of availability- The room type has no link to our connectivity partner. Its availability is saved, and sent nowhere.
- What to do: Send the room type again (PUT /catalog/room-types), so that it is linked. Then send the availability again.
PLAN_NOT_LINKEDwarning, on an update of rates, restrictions- The rate plan has no link to our connectivity partner. Its values are saved, and sent nowhere.
- What to do: Send the rate plan again (PUT /catalog/rate-plans), so that it is linked. Then send the values again.
PLAN_NOT_MAPPEDwarning, on an update of rates, restrictions- The rate plan is on our connectivity partner, but no connected OTA that is switched on sells it. So this update changes nothing a guest sees.
- What to do: A person must match the rate plan to a rate of an OTA: with a connect link, or on the hotel's channel screens. This reading is as fresh as last night's.
ROOM_STILL_ON_SALEwarning, on an update of restrictions- You sent a stop sell for one rate plan. The room is still on sale through its other rate plans. Their ids are in otherRatePlanIds.
- What to do: If you wanted to close the room, use POST /availability/close, or send availability 0 for the room type. If you wanted to stop one rate plan only, do nothing.
OTA_LINKED_RATES_NOT_REACHEDinfo, on an update of restrictions- A stop sell does not reach an OTA-linked rate. Only the room's availability closes it.
- What to do: If the room must not sell at all, close it by its availability: send 0, or use POST /availability/close.
STAY_RULES_FROM_ANOTHER_PLANwarning, on an update of restrictions- On one OTA, the rate this plan sells takes its restrictions from another rate plan. Its id is in otherRatePlanIds. A restriction sent here alone does not reach that rate.
- What to do: Send the same restriction on the rate plan named in otherRatePlanIds. The OTA reads its restrictions from that one.
PER_OTA_PLANS_FOLLOWinfo, on an update of rates, restrictions- The rate plan has per-OTA plans. Its price is copied onto them, and they follow its restrictions.
- What to do: Nothing. Just know that the per-OTA plans take this plan's price and follow its restrictions.
PER_OTA_PLAN_FOLLOWS_PARENTwarning, on an update of rates, restrictions- The rate plan you sent is a per-OTA plan. The price and restrictions of its parent replace what you set here.
- What to do: Send the values on the parent rate plan instead.
VALUE_HELDwarning, on an update of rates, restrictions- The value is the same as one our connectivity partner refused before. It is kept on hold with the reason. It is not sent again.
- What to do: Send a different value for those nights. Sending the same value again does not send it on.
COUNT_WAS_REFUSEDwarning, on an update of availability- The last availability sent for these nights was refused by our connectivity partner. Nothing has been taken since.
- What to do: Read GET /explain for the night. It has our connectivity partner's own words. Fix what they name. Then send the availability again.
COUNT_ZERO_IS_NOT_STOP_SELLinfo, on an update of availability- You sent availability 0. It is a number, not a switch. It closes every rate plan on every OTA. But the next cancellation at an OTA, or your next number, changes it.
- What to do: If the room must stay closed whatever happens at the OTAs, use POST /availability/close. If availability 0 is what you wanted, do nothing.
STOP_SELL_IS_NOT_A_COUNTinfo, on an update of restrictions- You sent a stop sell. It is a switch on those rate plans. The room's availability is not changed.
- What to do: Nothing, if you wanted to stop those rate plans. To close the room itself, close it by its availability too.
COUNT_OPEN_BUT_PLANS_STOPPEDwarning, on an update of availability- You sent availability above 0. But on these nights every rate plan of the room has a stop sell. So the room does not sell.
- What to do: Switch the stop sell off on at least one rate plan (PUT /restrictions). Or use POST /availability/reopen, if a close switched them on.
NEW_DATES_OPEN_CLOSEDwarning, on an update of availability- The hotel uses the rule “new dates open closed”. It will set these nights to 0 when they come on sale.
- What to do: The hotel chose this rule. Its owner can switch it off. Or your software sends the availability again once those nights are on sale.
FAR_NIGHTS_NEED_A_COUNTwarning, on an update of rates, restrictions- A night after day 365 with no availability of its own is sent closed. Its price and restrictions do not change that. This notice is given only where that rule is in force. Today a far night you never sent sells like every other night. The rule starts on a date that ZimmerStack tells partners first.
- What to do: Send availability for those nights (PUT /availability).
ENGINE_WILL_REPRICEwarning, on an update of rates- The hotel's pricing engine is set to win. It replaces a price you send here at its next hourly update.
- What to do: The hotel's owner can let hand-set prices win, or switch the pricing engine off. Until then a price you send here is replaced.
ENGINE_WILL_RECOUNTwarning, on an update of availability- The hotel sends the availability that its own bookings work out. A number above 0 that you send here is replaced. A 0 stays.
- What to do: Nothing to send. The hotel's own bookings decide its availability. A 0 that you send stays.
DRIFT_REPAIR_OFFinfo, on an update of rates, restrictions- The hotel switched the nightly repair off. A value changed on our connectivity partner's side is told to you, but not sent again.
- What to do: When you get the webhook channel.drift.detected, send the value again yourself. The hotel's owner can switch the repair back on, in Admin, under Developers, then API settings.
How notices are made
- From ZimmerStack's own record only
- A notice is worked out from what ZimmerStack holds. That is: the links of room types and rate plans, and the hotel's settings. The stop sells and availability in force. The last refusal. And what the nightly read last saw of the hotel's OTA connections.
- It never slows an update
- No request is made to our connectivity partner for a notice. An update is never held up, and never fails, because of a notice.
- It never guesses
- A hotel whose OTA connections have not been read yet gets no PLAN_NOT_MAPPED. A sandbox has no OTA. So it gets none of the notices about what an OTA sells.
- Which requests carry notices
- Update availability, Update rates and Update restrictions, and their dry runs.
- Close and reopen
- They say the same kind of thing in their own list,
notReached. - Requests with no notices
- Send rates again, an update of a room type or a rate plan, a price modifier of one OTA, and a booking.
- New codes
- A code is never renamed, and its meaning never changes. A new code can be added at any time. Show a code you do not know with its own message.
Words on this page
- Notice
- A short message inside an answer. It tells you about something your request did not do.
- Rate plan
- One way to sell a room type, with its own price. For example Room only, or With breakfast.
- Room type
- A kind of room the hotel sells, like Deluxe Room or Family Suite. A hotel can have 12 rooms of one room type.
- Availability
- How many rooms of one room type are free to sell on one night. Learn more
- Rates
- The price of a room for one night. Learn more
- Restrictions
- Stay rules for a night, like a minimum stay of 2 nights, or no arrival on that day. Learn more
- Stop sell
- A switch on a rate plan for one night. When it is on, that rate plan is not sold on that night.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- OTA-linked rate
- A rate a hotel sets up inside an OTA's own extranet, so that it follows another rate there. ZimmerStack does not hold it.
- Per-OTA plan
- A child of a rate plan, made for one OTA only. It takes its restrictions from its parent rate plan, and often its price too.
- Connectivity partner
- The company that carries ZimmerStack's numbers to each OTA and brings the bookings back. You never call it. Where an API name says channel manager, it means this last step. Learn more
Routes, samples, limits and codes on this page come from the API's public contract, read live, Sat, 05 Dec 2026 01:08:27 UTC.