API action
Disconnect one OTA from a hotel
Disconnect one OTA from one hotel. The OTA then gets nothing from ZimmerStack. The hotel's listing at the OTA is not closed.
About this action
- What it does
- Removes one of a hotel. The connection is paused first, then removed. The stops getting prices and , and its bookings stop reaching you.
- When to use it
- When a hotel stops selling on one OTA through ZimmerStack. Let a person decide it on a screen in your software.
- Who can use it
- A only. The key needs the
channels:connect. - Address
POSThttps://api.zimmerstack.com/api/v1/connect-api/v1/properties/{propertyId}/channels/{channelId}/disconnect- Before this
- You need the
channelId, from List the connected OTAs. You also need the OTA's brand word. It isconfirmWordin the answer of Get the mapping of one OTA. The scopechannels:connectis never ticked by itself: someone in your company must give it to the key.
What you send
In the address:
- propertyId
- The id of the hotel, a number. Get it with List your hotels.
- channelId
- The id of the channel, from the answer of List the connected OTAs. That request names the hotel with the
X-ZS-Propertyheader.
You send one field: the OTA's brand word. It is the same word a person types to disconnect this OTA on ZimmerStack's own screens.
- confirm
- Text, 1 to 80 letters. Required. The OTA's brand word, like
MakeMyTriporBooking.com. It isconfirmWordin the answer of Get the mapping of one OTA. For the connection of MakeMyTrip and Goibibo, sendMakeMyTriporGoibibo.
{
"confirm": "MakeMyTrip"
}Things to know
- The hotel is in the address. You name the hotel as
propertyIdin the address. This request never reads the . - A wrong word changes nothing. The answer is then
422 CONFIRMATION_MISMATCH. The right word is indata.details.expected. - Airbnb takes more than one request. Before the connection is removed, each Airbnb is unlinked, one for each request. The answer then has
doneasfalse. Send the same request again untildoneistrue. Use a new each time, or none. - It is written down. Each disconnect is on the hotel's activity log, with the name of your key. The hotel's owner reads that log.
The request, in your language
Put your key in place of zsk_live_YOUR_KEY.
Save the example above as disconnect-one-ota.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.
curl -X POST "https://api.zimmerstack.com/api/v1/connect-api/v1/properties/61/channels/0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d/disconnect" -H "Authorization: Bearer zsk_live_YOUR_KEY" -H "Content-Type: application/json" -d "@disconnect-one-ota.json"What comes back
The is 200. Read done. In this example it is true: the connection is removed.
{
"statuscode": 200,
"message": "Channel disconnected",
"data": {
"channelId": "0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d",
"done": true,
"remaining": 0,
"waiting": false
}
}- channelId
- The channel you named.
- done
- With
true, the connection is removed. It isfalseonly on Airbnb, while listings are still being unlinked. Then send the same request again. - remaining
- On Airbnb: the listings that were still linked before this request removed one. It is
0whendoneistrue. - waiting
- With
true, Airbnb is still confirming a removal. Wait a few seconds before the next request.
Then the hotel looks at its listing
The hotel closes or changes its listing in the OTA's extranet. To connect the same OTA again later, make a new with Make a connect link.
Common mistakes
- 422 CONFIRMATION_MISMATCH
- The value of
confirmis not the OTA's brand word. The right word is indata.details.expected. Nothing was changed. - 403 COMPANY_KEY_REQUIRED
- You used a hotel key. This request works with a company key only.
- 404 PROPERTY_NOT_FOUND
- The
propertyIdis not a hotel your key may act on. Use an id from List your hotels. - 404 CHANNEL_NOT_FOUND
- This hotel has no channel with this
channelId. Read the ids again with List the connected OTAs. - 409 LIVE_KEY_REQUIRED
- You used a test key. A sandbox has no real OTA. Use a live key.
- 409 CHANNEL_NOT_AVAILABLE
- Read
data.details.reason. Withnot_in_your_access, managing connections is not part of your access to this hotel: open a support ticket. The other reasons arenot_matched_here,switched_offandtest_account. - 409 CHANNEL_MANAGER_DISABLED
- The hotel is not on the .
- 409 PROPERTY_UNAVAILABLE
- The hotel's service is paused or has ended.
- 502 CHANNEL_MANAGER_ERROR
- Our did not disconnect the OTA. Nothing was changed. This answer is never kept under an idempotency key, so you can send the request 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.
- 403 SCOPE_MISSING
- The key is not allowed to do this. It needs the scope
channels:connect. - 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.
Try it
This page has no box to try the action. This request disconnects a real OTA, and a has none. So it works with a only. Send it from your own code or from Postman. Never type a live key into a web page.
Go deeper
- Connect an OTA: First the OTA accepts our connectivity partner. Then a link: the hotel's id, the mapping, Start selling.
Words on this page
- Channel
- One connection between a hotel and one OTA. Hotel people say channel and OTA for nearly the same thing.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Availability
- How many rooms of one room type are free to sell on one night. Learn more
- Listing
- A hotel's own page on an OTA, with its rooms, photos and prices.
- Extranet
- The website an OTA gives a hotel to manage its own listing, like the Booking.com extranet.
- Connect link
- A one-time link you send to a hotel: the last step of connecting one OTA. Except on Airbnb, the OTA must first accept our connectivity partner for the hotel. Then the hotel's person types the hotel's id at the OTA, matches the rooms and rates, and starts selling.
- Idempotency key
- A code you choose and send with an update. If the same update is sent twice by mistake, it is done only once.
- Header
- A small piece of extra information sent with a request, like your key.
- X-ZS-Property
- The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
- Channel manager
- Software that keeps a hotel's rooms and prices the same on every OTA. Learn more
- 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.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- Live key
- A key that starts with zsk_live_. It works on real hotels.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
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 22:53:43 UTC.