API action
Remove a hotel
Remove a hotel you added. This cannot be undone.
About this action
- What it does
- Takes one hotel off ZimmerStack, for good. Its are disconnected, it is not billed any more, and nobody can sign in to it.
- When to use it
- When a hotel stops using your software, and a person has decided to remove it. Never send it from a loop, a timer or a clean-up job.
- Who can use it
- A only. The key needs the
properties:write. - Address
DELETEhttps://api.zimmerstack.com/api/v1/connect-api/v1/properties/{propertyId}- Before this
- Read the you want to keep first, with List OTA bookings. After the removal your key cannot read them. Also connect the hotel's OTAs to its next first, so the hotel keeps selling.
What you send
In the address:
- propertyId
- The hotel's property id, a number. It is the
idin the answer of List your hotels.
At the end of the address, after a question mark:
- confirm
- Required. The hotel's exact name, as List your hotels shows it. It is asked so that a wrong id never removes a hotel.
Things to know
- Only a hotel you added. The hotel must be one you added and pay for. It must use the channel manager only, and be the only hotel of its owner's account. For any other hotel the answer is
409 PROPERTY_NOT_REMOVABLE. - It cannot be undone. A removed hotel cannot be added again by API. Its past bookings and bills are kept, but your key can no longer read them.
- The month already billed is not given back. A removed hotel is not counted on the next 1st. Nothing is paid back for the month that was already billed.
- The answer can take more than a minute. The OTAs are disconnected one after another. Wait up to 90 seconds. If no answer comes, send the same request again.
The request, in your language
Put your key in place of zsk_test_YOUR_KEY.
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/properties/61?confirm=The%20Lantern%20House" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. It means: the hotel is removed, and nothing of it is left at . A 202 means: the hotel is removed, but one step there is still running. ZimmerStack finishes that step. You do nothing.
{
"statuscode": 200,
"message": "The hotel is removed.",
"data": {
"id": 63,
"name": "Ganga Guest House",
"removed": true,
"replay": false,
"sandbox": false,
"access": "CLOSED",
"billing": {
"state": "CANCELLED",
"cancelledAt": "2026-11-19T09:30:12.000Z"
},
"channelManager": {
"state": "REMOVED",
"step": null,
"stillConnected": null
}
}
}- removed
- Always
truein a good answer. - replay
- The value
truemeans: the hotel was already removed before this request (). - access
- Always
CLOSED: nobody can sign in to the hotel, and no key works for it. - billing.state
- The value
CANCELLEDmeans: the hotel is not billed any more.NOT_BILLED: it was a sandbox. - channelManager.state
- With
REMOVED, nothing of the hotel is left at our connectivity partner. WithRETRYING, one step is still running, and ZimmerStack tries it again. WithNOT_CONNECTED, the hotel was never set up there. - channelManager.step
- Only with
RETRYING: the step that is still running. One ofCHANNELS,RATE_PLANS,ROOM_TYPESorPROPERTY. - channelManager.stillConnected
- Only with
RETRYING: what was still there when this request ended.
After a 202, ask again later
Send the same request again after some minutes. When the hotel is fully gone, the answer is 200 with replay: true. For a hotel that is already gone, confirm is not needed.
Common mistakes
- 400 CONFIRMATION_MISMATCH
- The
confirmvalue is missing, or it is not the hotel's exact name. Copy the name from List your hotels. - 403 COMPANY_KEY_REQUIRED
- You used a hotel key. This request works with a company key only.
- 403 WRITES_SUSPENDED
- ZimmerStack has stopped your company's writes for now. Open a support ticket: a ticket still works.
- 404 PROPERTY_NOT_FOUND
- No hotel with this id that your key can work for. Check the id with List your hotels.
- 409 PROPERTY_NOT_REMOVABLE
- You cannot remove this hotel. Read
data.details.reason.OWNER_ALLOWED: you did not add it, so its owner must remove your access.NOT_BILLED_TO_YOU,OTHER_PRODUCTSorSHARES_ACCOUNT: open a support ticket. - 503 PROPERTY_BUSY
- A hotel of yours is being added or removed right now. Wait the seconds in the header, then send again. If the wait is one hour, this removal has started, and ZimmerStack finishes it.
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.
- 403 SCOPE_MISSING
- The key is not allowed to do this. It needs the scope
properties: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_EXPIRED
- The key is past the end date its owner set. Ask the owner for a new key, or for a later end date.
- 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: remove a hotel
It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.
Go deeper
- Add and remove hotels: What each request does, and what it does to your invoice.
- Move a hotel to ZimmerStack: OTA by OTA, with no missed and no double booking.
Words on this page
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Booking
- A guest has reserved a room for some nights. Also called a reservation.
- Channel manager
- Software that keeps a hotel's rooms and prices the same on every OTA. Learn more
- Company key
- The key of a software company. One key works for all the hotels of that company.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Test key
- A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- 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
- Replay
- The first answer, given again for a request that was already done. Nothing is done a second time.
- Retry-After
- A header in an answer. It says how many seconds to wait before you send again.
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 23:24:16 UTC.