API action
Delete a room type
Remove one room type and all its rate plans. This cannot be undone.
About this action
- What it does
- Deletes one and every of it. It is removed from our first, then from ZimmerStack.
- When to use it
- Only when a person decided to remove this room type for good. To change a room type, send it again with Create or change room types.
- Who can use it
- A or a . A company key names the hotel with the . The key needs the
catalog:write. - Address
DELETEhttps://api.zimmerstack.com/api/v1/connect-api/v1/catalog/room-types/{roomTypeId}- Before this
- You need ZimmerStack's id of the room type, or your own for it. The answer of Get room types and rate plans has both.
What you send
In the address:
- roomTypeId
- ZimmerStack's id of the room type, a whole number like
414. Or the textref:and then your own ref, likeref:rt-penthouse.
Things to know
- It cannot be undone. A deleted room type does not come back. Its rate plans are deleted with it.
- Two ways to name the room type. The samples on this page use ZimmerStack's id: the address ends with
414. You can use your own ref in the same place. Writeref:in front of it, so the address ends withref:rt-penthouse. Both ways delete the same room type, and the answer is the same. - A room type that the hotel's owner made has no ref. Your ref works for a room type your software created. For any other room type, use ZimmerStack's id. That id always works.
- 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. - On a hotel with a connected OTA, remove every match first. A room type cannot be deleted while a connected still has a match to it, or to one of its rate plans. A match is one line of the . Remove it on every connected OTA. Then send this request.
- How to remove a match. A company key with the scope
channels:connectcan do it by API. Send Change the mapping of one OTA and leave that line out, or give it another rate plan. A person can also do it. In the : open Hotels, the hotel, the tab Channels, the OTA, then Rooms and rates. The hotel's own staff can also do it in their ZimmerStack app. - Stop the sale on the OTA before you remove the match. A room or a rate with no match keeps selling on the OTA, with the OTA's own numbers. So the hotel closes it on the OTA's first.
- Coming stays hold a room type too. The delete is refused while a coming stay, or a guest in the house, holds one of its rooms. Move or cancel those stays first. On a hotel with the ZimmerStack PMS, rooms that are still assigned to it also refuse the delete.
- A sandbox does not show the first rule. A has no OTA, so a delete there is never refused for a match. You meet this refusal first on a real hotel.
- If our connectivity partner refuses, nothing changes. The room type then stays as it was, on both sides.
- A hotel can delete only a limited number a day. After that, the answer is the error
429 RATE_LIMITED. To repair a difference, send the room type again. Do not delete it.
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.
Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.
curl -X DELETE "https://api.zimmerstack.com/api/v1/connect-api/v1/catalog/room-types/414" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID"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.
Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.
curl -X DELETE "https://api.zimmerstack.com/api/v1/connect-api/v1/catalog/room-types/414" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. It means: deleted.
{
"statuscode": 200,
"message": "OK",
"data": {
"id": 414,
"deleted": true,
"channelManagerDeleted": true,
"deletedRatePlanIds": [
903
]
}
}- id
- ZimmerStack's id of the room type that was deleted. It is this id also when you named the room type by your ref.
- deleted
- Always
truein a good answer. - channelManagerDeleted
- With
true, the copy at our connectivity partner is gone too. A has no copy there. - deletedRatePlanIds
- The ids of the rate plans that were deleted with the room type.
Common mistakes
- 404 ROOM_TYPE_NOT_FOUND
- This hotel has no room type with this id, or with this ref. Maybe it was deleted before. The answer is the same when the text after
ref:cannot be a ref. - 409 CATALOG_CONFLICT
- The room type is still in use. The message says by what, and it names the OTAs when it can. Remove every match on those OTAs, or move the coming stays. Then delete.
- 502 CHANNEL_MANAGER_ERROR
- Our connectivity partner refused the delete. Nothing changed. Try again in a moment.
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.
- 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: delete a room type
It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.
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.
- Rate plan
- One way to sell a room type, with its own price. For example Room only, or With breakfast.
- 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
- 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.
- Ref
- Your own name or id for a room type or a rate plan. You choose it, and ZimmerStack remembers it.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Mapping
- Saying which room and price in one system is which room and price in another system. For an OTA: each of its rooms and rates is matched to one of the hotel's rate plans. A person makes the first matching. Changing it later is called a re-map. Learn more
- Partner portal
- The website where your company signs in to make keys, add hotels and pay invoices.
- Extranet
- The website an OTA gives a hotel to manage its own listing, like the Booking.com extranet.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- 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 16:20:29 UTC.