Tools
The doctor(find what is wrong, with one command)
The doctor is one command. Run it when something is wrong. It checks your whole , from your key to your webhooks. Then it says, in plain words, what it found and what to do.
The idea, with one example
Say a price does not show on an . There are a dozen places to look. Here are five of them:
- the key;
- a missing permission, called a ;
- a that ran out;
- a value the OTAs' side refused;
- a your server stopped answering.
The doctor looks in all the places, in order. Then it tells you which one it is.
Open a and run this:
npx @zimmerstack/connect doctor- What it needs
- 20 or newer, and nothing else.
npxdownloads the for you. - Where it finds your key
- In the
ZIMMERSTACK_CONNECT_KEY. Or in the file.env.localor.envof the folder you run it in. - One more thing it can do
- Name a night, and it explains that night too. The options below show how.
An example
This is what the doctor prints for one live company key. The hotel is The Lantern House.
ZimmerStack doctor · live key · company key · 2026-12-04T06:12:40.000Z
The key
ok This is a live key (zsk_live_), and its checksum holds.
Does it answer
ok The key answers. It is a company key that reaches 1 hotel: The Lantern House (#61).
Is it ZimmerStack
ok ZimmerStack reports no open incident that touches your hotels, and none in the last 7 days.
→ An incident is recorded by ZimmerStack's staff. If something looks wrong on its side and none is listed, write to support@zimmerstack.com or open a ticket (zs.supportTickets.create).
Hotels and scopes
note The Lantern House (#61): this key may read the calendar and the sync state, send room counts, prices and stay rules, read OTA bookings and the channel events.
Budgets
note The cells-hour budget is 88% used (17,987 of 20,440 changed cells, one clock hour (UTC)).
Every budget (used of quota):
#61 requests: 14 of 120 requests (12%) · 60 s sliding, per key
#61 cells-hour: 17,987 of 20,440 changed cells (88%) · one clock hour (UTC), per property (all its keys)
Refused requests, last 24 hours
FIX VALIDATION: 6 requests refused in the last 24 hours, the last about 4 minutes ago, on PUT /rates. Last request id: req_9f2c41d0.
→ The request itself is wrong: a field is missing, misnamed or out of range. Read the message your code received (err.message, err.details) and fix the request; sending it again unchanged is refused again.
Webhook endpoints
FIX Endpoint 7 (pms.example) is failing: 6 deliveries in a row, since about 2 hours ago. Last error: HTTP 401.
→ Your receiver answered 401: it is refusing the delivery, most often because the signature did not verify. Verify the RAW body (before any JSON parsing) with this endpoint's current secret; after a rotation the new secret must be in place within 24 hours.
Sync and drift
FIX The Lantern House (#61): 3 price or stay-rule nights were refused by the channel manager and are held: they are not on sale as you sent them.
→ Send a corrected value for those nights. The batch that carried them reads failed (zs.batches.get), and channel.sync.alert named the refusal.
3 things need attention (marked FIX).Every line starts with one of three marks.
- ok
- This is as it should be.
- note
- Good to know. You need to do nothing now.
- FIX
- This needs you. The line under it, after the arrow, says what to do.
In this example three things need you. Six requests had a wrong field. One webhook endpoint answers 401. Three nights were refused and are held.
What it checks
The doctor runs these checks, from top to bottom. The last column is the request it sends for each check. In its report the doctor calls a limit a budget.
| Check | What it finds | It reads |
|---|---|---|
| The key's shape | A key that was typed wrong, cut short or pasted with a quote mark. The key's own checksum shows it. This check runs on your computer: nothing is sent. | nothing |
| Does it answer | A key that is unknown, revoked or expired. Or a call from an address that is not on the key's allowlist. It also says whose key it is: one hotel's, or a company's. | GET /properties |
| Is it ZimmerStack | The open incidents on our side that touch your hotels, with what we last said. Also the incidents that ended in the last week. An incident is a note, not a FIX. It is ours to mend, so the exit code stays 0. | GET /status |
| Hotels and scopes | The hotels the key works for, and what the key may do on each. For a hotel that is not live yet: the readiness checks that have not passed, and what to do about each. | GET /property GET /readiness |
| Budgets | Every limit and how full it is. A limit that is used up, and when it frees. An integration that is paused or suspended. | GET /limits |
| Refused requests | The refused requests of the last 24 hours, grouped by reason, with what to do about each. Also the last request id, and the addresses your calls came from. | GET /requests |
| Webhook endpoints | For each endpoint: is your server answering it? Its last failures, and what your server answered. A change of signing secret that is in progress. | GET /webhook-endpoints … |
| Sync and drift | Values that are still on their way. Values the OTAs' side refused. A send that failed. What the nightly check found changed. Open OTA problems. | GET /sync GET /channels |
| This night, if named | One night of one room type, explained. What your software last sent. What ZimmerStack's record holds. What our connectivity partner was last seen holding. A value it refused. A rate plan that no OTA sells. | GET /explain |
- CheckThe key's shapeWhat it findsA key that was typed wrong, cut short or pasted with a quote mark. The key's own checksum shows it. This check runs on your computer: nothing is sent.It readsnothing
- CheckDoes it answerWhat it findsA key that is unknown, revoked or expired. Or a call from an address that is not on the key's allowlist. It also says whose key it is: one hotel's, or a company's.It readsGET /properties
- CheckIs it ZimmerStackWhat it findsThe open incidents on our side that touch your hotels, with what we last said. Also the incidents that ended in the last week. An incident is a note, not a FIX. It is ours to mend, so the exit code stays 0.It readsGET /status
- CheckHotels and scopesWhat it findsThe hotels the key works for, and what the key may do on each. For a hotel that is not live yet: the readiness checks that have not passed, and what to do about each.It readsGET /property
GET /readiness - CheckBudgetsWhat it findsEvery limit and how full it is. A limit that is used up, and when it frees. An integration that is paused or suspended.It readsGET /limits
- CheckRefused requestsWhat it findsThe refused requests of the last 24 hours, grouped by reason, with what to do about each. Also the last request id, and the addresses your calls came from.It readsGET /requests
- CheckWebhook endpointsWhat it findsFor each endpoint: is your server answering it? Its last failures, and what your server answered. A change of signing secret that is in progress.It readsGET /webhook-endpoints …
- CheckSync and driftWhat it findsValues that are still on their way. Values the OTAs' side refused. A send that failed. What the nightly check found changed. Open OTA problems.It readsGET /sync
GET /channels - CheckThis night, if namedWhat it findsOne night of one room type, explained. What your software last sent. What ZimmerStack's record holds. What our connectivity partner was last seen holding. A value it refused. A rate plan that no OTA sells.It readsGET /explain
Some words of this table. A is a few extra characters at the end of a key. An is the list of addresses a key may be used from. An is a problem on our side. is the list of checks before a hotel goes live. means the OTAs hold your numbers. means a value on the OTAs' side is no longer what you sent.
What it never does
- It never changes anything
- Every request it sends is a read. It is safe with a live key, on a real hotel, at any hour.
- It never prints the key
- Not in its report, not in an error, and not in its JSON. It says only if the key is a test key or a live key, and where it was read from.
- It sends the key to ZimmerStack only
- It takes no address and no URL. No option can point it somewhere else.
- It tells you what it could not check
- Sometimes a check cannot be made. The key lacks a scope, or it is a hotel's own key, which cannot read webhook endpoints. Then the doctor writes a note that says where to look. It never leaves a silent gap.
Options and exit code
You can add options after the command. When the doctor ends, it gives back an : a number that a script can read.
- --property <id>
- For a company key: look at this one hotel. Without it, the doctor looks at the first five hotels.
- --room-type <id> --night <YYYY-MM-DD>
- Also explain that night of that room type. See Explain one night. Add
--rate-plan <id>for one rate plan only. If a company key works for more than one hotel, name the hotel too. - --json
- Print the report as JSON, for a script.
- Exit code 0
- Nothing needs you.
- Exit code 1
- At least one FIX. Use it after you : a step of your deploy script that fails when the integration is not healthy.
- Which key
- A test key checks your sandboxes. A live key checks your live hotels. The checks are the same.
An example with a night. The room type has the id 412, and the night is 31 December 2026.
npx @zimmerstack/connect doctor --room-type 412 --night 2026-12-31You can also run the same checks from your own code. For example on a health page, or as a step after a deploy.
import { diagnose, formatDoctorReport } from "@zimmerstack/connect";
// The same checks from your own code: a health page, a step after a deploy.
const report = await diagnose(); // reads ZIMMERSTACK_CONNECT_KEY; reads only
if (!report.ok) console.error(formatDoctorReport(report));
report.findings; // { level, check, message, action?, propertyId? }
report.budgets; // every budget, with percentUsedFor a coding agent
Do you build with a ? The package has an , and it has the same checks as a tool: zimmerstack_doctor. The tool runs them on your key only, and refuses a live key. So an agent can ask "what is wrong?" while it builds, and never touch a real hotel. See the MCP server.
When you write to us
Words on this page
- Integration
- Your software, once it is connected to ZimmerStack through the API.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Rate limit
- How many requests you may send in a minute, an hour or a day.
- Webhook
- A message ZimmerStack sends to your server when something happens, like a new booking.
- Terminal
- A window where you type commands for your computer. Also called the command line.
- Node.js
- A free program that runs JavaScript code outside a browser, for example on a server.
- Package
- Ready-made code you install and use, so you write less yourself.
- Environment variable
- A named value kept in your server's settings, outside your code. It is a safe place for a key.
- Checksum
- A few extra characters at the end of a key, worked out from the rest of the key. A key with a typing mistake fails this check.
- Allowlist
- A list of internet addresses a key may be used from. From any other address the key is refused.
- Incident
- A problem on ZimmerStack's side that our team has written down and is fixing.
- Readiness
- The checks a hotel must pass before it can go live.
- Sync
- Short for synchronise: making the OTAs hold the same numbers as ZimmerStack.
- Drift
- A night where our connectivity partner holds a different value than the one your software sent.
- Exit code
- A number a command gives back when it ends. 0 means all is well.
- Deploy
- To put a new version of your software on your server.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- Coding agent
- An AI program that writes code for you when you tell it what to build, like Claude Code, Cursor or Codex. Learn more
- MCP server
- A small helper program that a coding agent connects to. It gives the agent extra tools. Learn more