One-hotel path
What you must build
Each job needs a few small parts in your own software. This page shows them: one drawing for each job, a checklist, and the tables to keep in your database. Read only the part for your job, then the rules at the end.
Job 1: connect the hotel's own PMS
The hotel keeps its own . You write one new part, a connector. It stands between the PMS and ZimmerStack. ZimmerStack talks to the . Connect the hotel's own PMS has the steps.
Your PMS
Rooms, prices and bookings live here.
numbers that changed OTA bookingsYour connector
New code you write. It sends updates and receives webhooks.
updates webhooksZimmerStack
Talks to every OTA for you.
Checklist
- Read the ids once, and save your . Get room types and rate plans
- Send when a room count changes. Update availability
- Send when a price changes. Update rates
- Send when a stay rule changes. Update restrictions
- Save the
batchIdof each update, and check it. Check an update - Receive each : check its , then answer 200 fast. Send messages on new bookings shows how.
- For each OTA booking: save it, and lower your own room count for its nights.
- For each cancelled OTA booking: raise your own room count again.
- After your server was down, read what you missed. List OTA bookings
Tables to keep
- Id map
- Your own room name with its roomTypeId. Your own price name with its ratePlanId.
- Updates sent
- The batchId, what you sent, the time, and its last status: pending, landed or failed.
- OTA bookings
- ZimmerStack's booking id, the OTA's name, the OTA's reservation code, the status, the dates, and your own booking id.
- Events handled
- The id of each event you handled, so a repeat does nothing twice.
- Your place in the list
- The last nextCursor you got, so the next read starts where this one stopped.
Job 2: create bookings from your website
The hotel runs the ZimmerStack PMS. Your website sells a room and tells ZimmerStack. Create bookings from your website has the steps.
Your website
A guest chooses a room and confirms.
your bookingYour booking sender
New code you write. It sends each booking once, with your own id.
one booking its bookingIdZimmerStack
Saves the booking in the PMS. The OTAs show one room fewer.
Checklist
- Read the ids with your . Get room types and rate plans
- Give every an id of your own. Send it as
externalReference. - Send the booking when the guest has confirmed. Create a booking
- Save the
bookingIdand thereferencefrom the answer. - No answer came? Send the same request again, with the same externalReference.
- The answer is
409 NO_AVAILABILITY? No room is free. Nothing was saved. Tell the guest. - The guest cancels on your website? Cancel in ZimmerStack too. Cancel your booking
Tables to keep
- Id map
- Your own room name with its roomTypeId. Your own price name with its ratePlanId.
- Bookings
- Your own booking id, ZimmerStack's bookingId, the reference, the status, and whether ZimmerStack answered.
Job 3: read bookings for reports
Your software only reads. One small part asks ZimmerStack on a timer and saves what it gets. Read bookings for reports has the steps.
ZimmerStack
Holds the OTA bookings and the website bookings.
bookings, page by pageYour reader
New code you write. It runs on a timer and saves each booking.
saved bookingsYour report
A dashboard, a sheet or accounting software.
Checklist
- Ask the owner for the of each list you read.
- On the first run, send
sincewith the oldest time you need. List OTA bookings - While
moreis true, ask again with the . - Save the last
nextCursor. Start from it on the next run. - A booking you already hold comes again? Replace your copy.
- Read
amountBasisbefore you add up money. - Do the same for website bookings, if the hotel has them. List website bookings
Tables to keep
- Bookings
- The booking id, which list it came from, the OTA's name, the status, the dates, the money fields you report, and updatedAt.
- Your place in each list
- The last nextCursor of each list you read.
Job 4: send messages on new bookings
ZimmerStack tells your server about each new booking. Your own code sends the message. Send messages on new bookings has the steps.
ZimmerStack
Sends one webhook for each new OTA booking or website booking.
a webhookYour receiver
New code you write. It checks the signature, answers 200 and saves the event.
a saved eventYour sender
Sends the WhatsApp, the email or the alert.
Checklist
- The owner adds your server's address in Admin.
- Keep the on your server.
- Check the signature on the body exactly as it arrived.
- Answer 200 within 10 seconds. Send your message after that.
- Save the id of each . If an id comes again, do nothing.
- Make your message work when the guest's phone or email is missing.
- After your server was down, read what you missed. List events
Tables to keep
- Events
- The event id, its type, the time it came, and whether you handled it.
- Messages sent
- The event id, the booking id, who the message went to, the time, and the result.
Rules that save you trouble
These hold for every job.
- Build on the sandbox first
- A works on the only. Nothing there reaches an OTA or a guest. Job 2 is the one job without a sandbox.
- Never guess an id
- Read the ids from ZimmerStack. The real hotel has other ids than its sandbox, so read them again with your live key.
- Dates are the hotel's dates
- A date is a day on the hotel's own calendar, like 2026-12-24. The hotel's is in the answer of Check your key.
- Prices are in the hotel's own money
- The same answer names the hotel's . Send prices in it, and in no other.
- Send the full number
- For availability, send how many rooms are free. Never send the change.
- Send when something changes
- Do not send the whole calendar again on a timer. It uses up your limits and changes nothing.
- Wait when you are told to wait
- The answer 429 means too many requests. Its says how many seconds to wait. Rate limits explains it.
- Make a repeat safe
- For an update, send an in the header
X-Idempotency-Key. The same key with the same body, within 7 days, gives the first answer again. For a booking, the externalReference does this. - Read the code, not the message
- A refused request has a code, like
SCOPE_MISSING, indata.code. Let your software act on the code. The message is for people and can change. Errors lists every code. - Keep the request id of a problem
- Every answer has a header
X-Request-Id. Save it when a request fails. List your recent requests shows your requests of the last 7 days. - Keep the key on a server
- Never in a web page, a mobile app, a chat or your code files.
Words on this page
- PMS
- Property management system: the software a hotel uses at its front desk for bookings, guests and bills.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- 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
- Availability
- How many rooms of one room type are free to sell on one night. Learn more
- Rates
- The price of a room for one night. Learn more
- Restrictions
- Stay rules for a night, like a minimum stay of 2 nights, or no arrival on that day. Learn more
- Webhook
- A message ZimmerStack sends to your server when something happens, like a new booking.
- Signature
- A code sent with each webhook. Your server checks it with the signing secret.
- Live key
- A key that starts with zsk_live_. It works on real hotels.
- Booking
- A guest has reserved a room for some nights. Also called a reservation.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Cursor
- A marker that says where a long list stopped. Send it back to get the next part of the list.
- Signing secret
- A secret code ZimmerStack shares with you once. With it your server can check that a webhook is really from ZimmerStack.
- Event
- One thing that happened, like a new booking. Each webhook carries one event.
- 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.
- Time zone
- The clock a place uses. A hotel's dates are always dates on its own clock.
- Currency
- The money a hotel sells in, like INR for rupees or USD for dollars.
- Retry-After
- A header in an answer. It says how many seconds to wait before you send again.
- Header
- A small piece of extra information sent with a request, like your key.
- 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.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 23:37:03 UTC.