API action
Create or change rate plans
Send the hotel's rate plans from your software. New ones are created. Known ones are changed.
About this action
- What it does
- Creates or changes each you send. Each one belongs to one and has a : your own id for it.
- When to use it
- After the room types exist. Also each time a rate plan is added or changed in your software.
- Who can use it
- A or a . A company key names the hotel with the . The key needs the
catalog:write. - Address
PUThttps://api.zimmerstack.com/api/v1/connect-api/v1/catalog/rate-plans- Before this
- The room type must exist first. Create it with Create or change room types.
What you send
You send a list named ratePlans. Each item in the list is one rate plan. One request can hold up to 100.
- ref
- Text. Required. Your own id for this rate plan, like
rp-bb. Never change it. - roomTypeRef
- Text. The
refyou gave the room type of this rate plan. Send this orroomTypeId. - roomTypeId
- Number. ZimmerStack's id of the room type. Send this or
roomTypeRef. - name
- Text, up to 80 characters. Required. The name of the rate plan, like
Bed and breakfast. - mealPlan
- Text. Optional. The :
EProom only,CPbreakfast,MAPbreakfast and one meal,APall meals. - occupancy
- Whole number, 1 to 12. Optional. How many guests the price is for. This is called .
- refundable
trueorfalse. Optional. Withfalse, the rate plan is . Without it:true.- defaultRate
- Number, or text like
"4500.50". Required for a new rate plan. The : the real price of one night, in the currency of the hotel. Every date of the rate plan starts with it. For a rate plan you sent before, you can leave it out: its price stays as it is.
{
"ratePlans": [
{
"ref": "rp-bb",
"roomTypeRef": "rt-deluxe",
"name": "Bed and breakfast",
"mealPlan": "CP",
"occupancy": 2,
"refundable": true,
"defaultRate": 4500
}
]
}Things to know
- One of three requests. Read with Get room types and rate plans. Create or change by your own
ref. Delete by ZimmerStack's id, or by your ownrefwithref:in front. The three rate plan requests shows them side by side. - You can send the same list again. ZimmerStack knows each rate plan by its
ref. So the same list sent twice makes nothing twice. - A rate plan never moves to another room type. To move it, delete it. Then send it again for the new room type.
- The meal is a part of the rate plan. Make one rate plan for room only, and another one for breakfast. Each has its own price.
- A new rate plan needs its real price. A request that would create a rate plan without
defaultRateis refused with400 VALIDATION, and nothing in it is saved. The reason: the can sell every date of a new rate plan at this price, from the first minute, until you send the price of a night. So never send a test number. Send the price a guest would really pay. - A rate plan keeps a price of its own.
defaultRate: nullis refused with400 VALIDATIONfor a rate plan your software made. Only a rate plan that the hotel made in ZimmerStack, on a room type with its own base rate, can have no price of its own. - Send the price of each night after this.
defaultRateis the price that every date starts with. Send the price of each night with Update rates.
The request, in your language
Show the examples for
A sandbox's own key works for one hotel: choose "A hotel key" for it.
Put your key in place of zsk_test_YOUR_KEY, and your hotel's property id in place of YOUR_PROPERTY_ID.
Save the example above as create-or-change-rate-plans.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.
curl -X PUT "https://api.zimmerstack.com/api/v1/connect-api/v1/catalog/rate-plans" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID" -H "Content-Type: application/json" -d "@create-or-change-rate-plans.json"Put your key in place of zsk_test_YOUR_KEY. A hotel key works for one hotel, so the request does not name the hotel.
Save the example above as create-or-change-rate-plans.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.
curl -X PUT "https://api.zimmerstack.com/api/v1/connect-api/v1/catalog/rate-plans" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@create-or-change-rate-plans.json"What comes back
The is 200. It means: saved. The answer has one item for each rate plan you sent, in the same order.
{
"statuscode": 200,
"message": "OK",
"data": {
"items": [
{
"ref": "rp-bb",
"id": 901,
"action": "created",
"sync": "IN_SYNC",
"notice": null
}
],
"channelManager": {
"enabled": true,
"reason": null
}
}
}- ref
- Your own id, as you sent it.
- id
- ZimmerStack's id of the rate plan. Send it as
ratePlanIdin other requests. - action
- What was done.
created: it is new.updated: something changed.adopted: it existed and is now yours.unchanged: nothing was different. - sync
- Does our have it too? It holds a copy of every room type and rate plan, and the OTAs get their numbers from that copy. The value
IN_SYNCmeans yes, and the copy is the same. The valuesPENDINGandSENDINGmean it is on its way. Read again in a moment. The valueNOT_LINKEDmeans it is saved in ZimmerStack only. Send it again. The valueFAILEDmeans sending stopped after several tries. The valueDRIFTEDmeans someone changed it at our connectivity partner, so the two copies differ. The valueDISABLEDmeans the hotel itself is not connected there. WithFAILEDorDRIFTED, a person at the hotel decides, on the screen Rooms & rates. A always answersIN_SYNC. - notice
- A sentence, when it was saved and there is something to know. If not, it is
null. - channelManager.enabled
- Can the hotel send its numbers to the OTAs? With
false,reasonsays why. - rounded
- Only when a
defaultRatewas rounded. It says what you sent and what was kept.
Then send availability and rates
Now send the free rooms with Update availability. Then send the price of each night with Update rates.
Common mistakes
- 400 VALIDATION
- A value is missing or has the wrong type, or one
refis in the list twice. Each item needsroomTypeReforroomTypeId. A new rate plan also needsdefaultRate: the answer'sdetails.refslists the rate plans that have none. - 400 UNKNOWN_ROOM_TYPE
- The room type is not one of this hotel, or its
refwas never sent. Create the room type first. - 400 TOO_MANY_NEW_ENTITIES
- The request would create too many new rate plans at once. Send the new ones in several requests.
- 409 CATALOG_CONFLICT
- The rate plan was sent for another room type than the one it has. Or its
occupancyis above the adults of the room type. - 409 CATALOG_LIMIT_REACHED
- The hotel has as many rate plans as it may have. Delete one that is not used. Check your key shows the number in
limits.maxRatePlans. - 409 CATALOG_BUSY
- Another request for the room types or rate plans of this hotel is still running. Wait a few seconds and send again.
Other errors this request can give
- 401 API_KEY_INVALID
- The key is not right. Copy it again, all of it, with no space before or after.
- 400 PROPERTY_REQUIRED
- You hold a company key and did not name the hotel. Add the
X-ZS-Propertyheader. - 404 PROPERTY_NOT_FOUND
- The property id is not one of your hotels. Use an id from List your hotels.
- 403 SCOPE_MISSING
- The key is not allowed to do this. It needs the scope
catalog:write. - 403 IP_NOT_ALLOWED
- The key only works from the addresses its owner allowed.
- 429 RATE_LIMITED
- Too many requests in a short time. Wait the number of seconds in the
Retry-Afterheader, then send again. - 401 API_KEY_REVOKED
- The key was switched off, or it was replaced and its extra 24 hours are over. Ask the key's owner for the new key. Nothing else makes this key work.
- 409 CHANNEL_MANAGER_DISABLED
- The hotel's channel manager is off, so nothing would be sent to an OTA. details.reason says why. not_on_channel_manager: the hotel was never put on it. With a company key, send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there. switched_off: the hotel's owner switched it off. Only the owner can switch it back on.
- 409 PROPERTY_UNAVAILABLE
- The hotel is deleted or is a demo. Or a test key was used on a real hotel, or a live key on a sandbox. Check which key you send. If the key is right, contact the hotel's owner.
- 503 SHIELD_UNAVAILABLE
- A problem on our side: the update could not be checked against the hotel's limits, so nothing was saved. Wait the seconds in Retry-After and send again.
- 503 WRITES_FROZEN
- ZimmerStack has paused the updates of every integration for now, never yours alone. Wait the seconds in Retry-After and send again. Reading and bookings still work.
Try it now
No code and no install. This box sends a real request to your . It works with a only, so it can never change a real hotel.
Try it here: create or change rate plans
It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.
Go deeper
- Create rate plans: Give each room type its prices: room only, with breakfast, and so on.
- Meal plans: Room only, breakfast, half board, full board.
- Money: How to send a price, in any currency.
Words on this page
- 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.
- Ref
- Your own name or id for a room type or a rate plan. You choose it, and ZimmerStack remembers it.
- Company key
- The key of a software company. One key works for all the hotels of that company.
- Hotel key
- A key that works for one hotel only. The hotel's owner makes it, or a partner makes it for a hotel it added.
- X-ZS-Property
- The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
- Header
- A small piece of extra information sent with a request, like your key.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Meal plan
- Which meals the price includes: none (EP), breakfast (CP), breakfast and one meal (MAP), or all meals (AP).
- Occupancy
- How many guests stay in one room.
- Non-refundable
- A price where the guest gets no money back after cancelling. Learn more
- Standing price
- The normal price of a rate plan: its defaultRate. Every date starts with it. A rate plan the hotel made in ZimmerStack can use the base rate of its room type instead.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- 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
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- Test key
- A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
New here? Start with the partner path or the one-hotel path.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 18:26:11 UTC.