API action
Create or change room types
Send the hotel's room types from your software. New ones are created. Known ones are changed.
About this action
- What it does
- Creates or changes each you send. You name each one with a : your own id for it. A new ref makes a new room type. A known ref changes that room type.
- When to use it
- When your software sets up a hotel. Also each time a room type 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/room-types
What you send
You send a list named roomTypes. Each item in the list is one room type. One request can hold up to 50.
- ref
- Text. Required. Your own id for this room type, like
rt-deluxe. Up to 64 letters, digits and the signs. _ : -. Never change it. - name
- Text, up to 80 characters. Required. The name of the room type. The owner of the hotel sees it.
- roomCount
- Whole number, 1 to 200. Required. How many rooms of this room type the hotel has.
- adults
- Whole number, 1 to 12. Required. The most adults one room takes.
- children
- Whole number, 0 to 8. Optional. The most children one room takes. Without it: 0.
{
"roomTypes": [
{
"ref": "rt-deluxe",
"name": "Deluxe Garden Room",
"roomCount": 8,
"adults": 2,
"children": 1
},
{
"ref": "rt-penthouse",
"name": "Penthouse",
"roomCount": 1,
"adults": 3,
"children": 1
}
]
}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 room type requests shows them side by side. - You can send the same list again. ZimmerStack knows each room type by its
ref. So the same list sent twice makes nothing twice. - A room type with the same name is taken over. Maybe the owner of the hotel already made a room type with this name. Then it becomes yours, and the answer says
adopted. No second one is made. - The number of rooms is not the availability.
roomCountsays how many rooms exist. How many are free on a night is sent with Update availability. - A hotel with the ZimmerStack PMS keeps its own number of rooms. There,
roomCountcomes from the hotel's own list of rooms and is not changed. Thenoticeof the item says so.
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-room-types.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/room-types" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID" -H "Content-Type: application/json" -d "@create-or-change-room-types.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-room-types.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/room-types" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@create-or-change-room-types.json"What comes back
The is 200. It means: saved. The answer has one item for each room type you sent, in the same order.
{
"statuscode": 200,
"message": "OK",
"data": {
"items": [
{
"ref": "rt-deluxe",
"id": 412,
"action": "adopted",
"sync": "IN_SYNC",
"notice": null
},
{
"ref": "rt-penthouse",
"id": 414,
"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 room type. Send it as
roomTypeIdin 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. For example a room type has no rate plan yet.
Then create the rate plans
A room type needs one or more before an can sell it. Send them with Create or change rate plans.
Common mistakes
- 400 VALIDATION
- A value is missing or has the wrong type. Or a field is not known. Or one
refis in the list twice. The message names it. - 400 TOO_MANY_NEW_ENTITIES
- The request would create too many new room types at once. Send the new ones in several requests.
- 409 CATALOG_CONFLICT
- Another room type of this hotel has this name. Or
roomCountis below the number of rooms that hold coming stays. - 409 CATALOG_LIMIT_REACHED
- The hotel has as many room types as it may have. Delete one that is not used. Check your key shows the number in
limits.maxRoomTypes. - 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 room types
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 room types: Tell ZimmerStack which kinds of room the hotel has, and how many.
Words on this page
- 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.
- Availability
- How many rooms of one room type are free to sell on one night. Learn more
- PMS
- Property management system: the software a hotel uses at its front desk for bookings, guests and bills.
- 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
- Rate plan
- One way to sell a room type, with its own price. For example Room only, or With breakfast.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. 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.