API action
Close a ticket
Close a ticket you opened, when the problem is gone.
About this action
- What it does
- Sets one support to
CLOSED. A closed ticket takes no more messages. - When to use it
- When the problem is gone on your side, or when your question is answered.
- Who can use it
- A only. The key needs the
support:write. - Address
POSThttps://api.zimmerstack.com/api/v1/connect-api/v1/support-tickets/{ticketId}/close
What you send
In the address:
- ticketId
- The ticket's id, a number. It is the
idin the answer of Open a support ticket and of List your tickets.
Things to know
- A closed ticket stays closed. If the problem comes back, open a new ticket and name the old one in it.
- Closing a closed ticket gives no error. The answer then shows the ticket as it is.
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/support-tickets/1042/close" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. It means: the ticket is closed. The answer is the whole ticket, with the same fields that Get a ticket shows.
{
"statuscode": 200,
"message": "Support ticket closed",
"data": {
"id": 1042,
"subject": "Bookings from Booking.com stopped arriving on two hotels",
"severity": "many_hotels",
"status": "CLOSED",
"mode": "live",
"properties": {
"all": false,
"ids": [
61,
62
]
},
"openedAt": "2026-11-22T04:05:12.000Z",
"lastMessageAt": "2026-11-22T08:52:31.000Z",
"firstReply": {
"target": "Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.",
"dueAt": "2026-11-22T05:05:12.000Z",
"repliedAt": "2026-11-22T04:31:40.000Z"
},
"closedAt": "2026-11-22T10:15:00.000Z",
"closedBy": "partner",
"messages": [
{
"id": 3310,
"author": "partner",
"body": "Since about 09:10 IST no new Booking.com booking has reached our webhook for either hotel. Their extranets show three bookings made since then. Other booking sites are arriving.",
"createdAt": "2026-11-22T04:05:12.000Z"
},
{
"id": 3311,
"author": "zimmerstack",
"body": "Booking.com signed both hotels out at 09:11 IST. Both are connected again since 09:58 IST, and the three bookings made in between have reached your webhook. Write here if anything is still missing.",
"createdAt": "2026-11-22T04:31:40.000Z"
},
{
"id": 3312,
"author": "partner",
"body": "It started again at 14:20 IST on hotel 61 only.",
"createdAt": "2026-11-22T08:52:31.000Z"
}
],
"diagnostic": {
"takenAt": "2026-11-22T04:05:12.000Z",
"windowHours": 24,
"requests": {
"refused": 3,
"byCode": [
{
"status": 429,
"errorCode": "RATE_LIMITED",
"count": 3,
"lastAt": "2026-11-22T03:58:40.000Z"
}
],
"lastRefused": [
{
"requestId": "rq_mi8x3k2a9f2c1a7e",
"at": "2026-11-22T03:58:40.000Z",
"method": "PUT",
"route": "/rates",
"status": 429,
"errorCode": "RATE_LIMITED",
"propertyId": 61
}
]
},
"hotels": [
{
"propertyId": 61,
"inventory": {
"pendingCells": 0,
"outOfSyncSince": null,
"lastOkAt": "2026-11-22T04:03:55.000Z"
},
"rates": {
"waitingCells": 0,
"refusedCells": 0,
"lastPushAt": "2026-11-22T03:59:02.000Z",
"lastErrorAt": null,
"consecutiveFailures": 0
},
"channelIssues": [
{
"event": "disconnect_channel",
"count": 1,
"since": "2026-11-22T03:41:18.000Z"
}
],
"shield": {
"level": "CLEAR",
"until": null
},
"usage": {
"cellsChanged": 1138,
"refusals": 0,
"refusedByChannelManager": 0
}
}
],
"hotelsNotShown": 0,
"partner": {
"shield": {
"level": "CLEAR",
"until": null
},
"usage": {
"cellsChanged": 20914,
"refusals": 0,
"refusedByChannelManager": 0
}
},
"webhooks": [
{
"endpointId": 7,
"status": "ACTIVE",
"consecutiveFailures": 0,
"failingSince": null,
"lastSuccessAt": "2026-11-22T03:39:50.000Z",
"lastFailureAt": null,
"deliveries": {
"delivered": 212,
"failed": 0,
"pending": 0
},
"lastFailed": []
}
],
"incomplete": []
}
}
}- status
- Now
CLOSED. - closedAt
- The time the ticket was closed.
- closedBy
- Who closed it.
partner: you.zimmerstack: our team.
Common mistakes
- 403 COMPANY_KEY_REQUIRED
- You used a hotel key. This request works with a company key only.
- 404 SUPPORT_TICKET_NOT_FOUND
- No ticket with this id for your company and this kind of key. A ticket opened with a live key cannot be read with a test key. A ticket opened with a test key cannot be read with a live 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
support: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.
- 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: close a ticket
It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.
Go deeper
- Support and uptime: How to reach us, and how fast we answer.
Words on this page
- Ticket
- One question or problem you sent to support, with all its replies.
- 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.
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.