API action
Cancel a connect link(revoke)
Make a connect link stop working.
About this action
- What it does
- Switches off one . The API's word for this is . The link no longer opens. If the hotel's person has the page open, it stops at the next step.
- When to use it
- When you sent the link to the wrong person. Or when the hotel no longer wants to connect this .
- Who can use it
- A only. The key needs the
channels:connect. - Address
POSThttps://api.zimmerstack.com/api/v1/connect-api/v1/connect-links/{linkId}/revoke- Before this
- You need the
linkId, from Make a connect link or List your connect links.
What you send
In the address:
- linkId
- The id of the link to cancel.
Things to know
- It does not disconnect an OTA. A link that is already
completedstays as it is, and the OTA stays connected. To disconnect a connected OTA, use Disconnect one OTA from a hotel. - You can send it twice. A link that is already cancelled, used or run out gives the same answer again, not an error.
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 POST "https://api.zimmerstack.com/api/v1/connect-api/v1/connect-links/3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c/revoke" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. The answer is the link as it is now, with the same fields as in Get a connect link.
{
"statuscode": 200,
"message": "Connect link revoked",
"data": {
"id": "3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c",
"propertyId": 61,
"channel": "bookingcom",
"channelName": "Booking.com",
"status": "revoked",
"createdAt": "2026-11-23T09:30:00.000Z",
"expiresAt": "2026-11-26T09:30:00.000Z",
"openedAt": null,
"connectedAt": null,
"completedAt": null,
"revokedAt": "2026-11-23T10:05:00.000Z",
"channelId": null,
"reference": "onboarding-4471",
"returnUrl": null,
"createdByKey": {
"id": 12,
"name": "Aarohan PMS, production",
"maskedKey": "zsk_live_aB3…"
}
}
}- id
- The id of the link.
- status
- Now
revoked, when this request switched the link off. A link that was alreadycompletedorexpiredkeeps that status. - revokedAt
- When the link was switched off.
Common mistakes
- 404 CONNECT_LINK_NOT_FOUND
- No link of your company has this id. Check the
linkId. - 403 COMPANY_KEY_REQUIRED
- You used a hotel key. Connect links belong to a company key.
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.
- 409 ARI_NOT_AUTHORITATIVE
- The hotel is not live yet: your software is not its source of truth, so nothing was saved. GET /readiness says what is missing, and POST /go-live makes the switch. To send rates before that, add the header X-ZS-Before-Go-Live: true. It is the same for a company key and for a hotel's own key: a hotel key with ari:read or ari:write can be made before its hotel is live.
- 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.
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: cancel a connect link
It starts with zsk_test_. It is kept in this browser tab only. Never paste 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
- 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.
- Revoke
- To switch a key or a link off for good.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. 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.
- 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.
- 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
- Extranet
- The website an OTA gives a hotel to manage its own listing, like the Booking.com extranet.
- 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
- 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.
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:30 UTC.