API action
Delete a rate plan
Remove one rate plan. This cannot be undone.
About this action
- What it does
- Deletes one . It is removed from our first, then from ZimmerStack.
- When to use it
- Only when a person decided to remove this rate plan for good. Also to move a rate plan to another room type: delete it, then create it again.
- 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/rate-plans/{ratePlanId}- Before this
- You need ZimmerStack's id of the rate plan, or your own for it. The answer of Get room types and rate plans has both.
What you send
In the address:
- ratePlanId
- ZimmerStack's id of the rate plan, a whole number like
903. Or the textref:and then your own ref, likeref:rp-bb.
Things to know
- It cannot be undone. A deleted rate plan does not come back. You can create a new one with Create or change rate plans.
- Two ways to name the rate plan. The samples on this page use ZimmerStack's id: the address ends with
903. You can use your own ref in the same place. Writeref:in front of it, so the address ends withref:rp-bb. Both ways delete the same rate plan, and the answer is the same. - A rate plan that the hotel's owner made has no ref. Your ref works for a rate plan your software created. For any other rate plan, 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 rate plan requests shows them side by side. - On a hotel with a connected OTA, remove every match first. A rate plan cannot be deleted while a connected still has a match to it. 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 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.
- A sandbox does not show this. 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 rate plan 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.
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/rate-plans/903" -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/rate-plans/903" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. It means: deleted.
{
"statuscode": 200,
"message": "OK",
"data": {
"id": 903,
"deleted": true,
"channelManagerDeleted": true,
"deletedRatePlanIds": []
}
}- id
- ZimmerStack's id of the rate plan that was deleted. It is this id also when you named the rate plan 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
- Always an empty list when you delete a rate plan.
Common mistakes
- 404 RATE_PLAN_NOT_FOUND
- This hotel has no rate plan 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
- A connected OTA still has a match to this rate plan. The message names the OTAs when it can. Remove the match on each of them first. 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 rate plan
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
- 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.
- 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
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. 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.