Partner path
What you must build
Your software needs seven small parts to work with ZimmerStack. This page shows them in one drawing. Then it lists each part, with the API action it uses.
The parts, in one drawing
Your is on one side. ZimmerStack is on the other side. The parts you build are in the middle.
Your PMS
The hotel changes rooms and prices here.
What you build
Out: your numbers go to ZimmerStack
1. Sender
Sends availability, rates and restrictions when they change.
5. Check after sending
Asks if each update reached the OTAs.
In: bookings come from ZimmerStack
2. Receiver
Takes each webhook, for all hotels, at one address.
6. Daily catch-up
Reads the bookings a webhook may have missed.
Kept in your database
3. Hotel list
Your hotel id beside the property id.
4. Room map
Your room and price names beside the ids.
7. Error log
Every request that failed, and why.
ZimmerStack
The channel manager. It talks to every OTA for you.
The checklist
The numbers are the same as in the drawing. Tick each part when it works on your sandbox.
- 1
A sender for availability, rates and restrictions
When , or change in your PMS, send the new number to ZimmerStack. Send only what changed: one or one , and the nights that changed. Send it when it happens, not at a fixed hour. Actions: Update availability, Update rates, Update restrictions. - 2
A receiver for webhooks
One address on your server, for every of all your hotels. It checks the , saves the and answers 200 within 10 seconds. Each event names its hotel inproperty.id. Start with Receive a booking. Action: Add a webhook endpoint. - 3
A hotel list
A table that says: this hotel in my software is this id in ZimmerStack. You get the property id when you add the hotel. You send it in the header with every request. Actions: List your hotels, Add a hotel. - 4
A room map
A table that says: this room in my software is thisroomTypeId, and this price is thisratePlanId. Every update names these ids, or your own refs. Every booking names these ids. Never guess an id: read it. This table is your . Actions: Get room types and rate plans, Create or change room types, Create or change rate plans. - 5
A check after sending
The 202 means ZimmerStack saved your update. It does not yet mean the OTAs have it. One update is called a . Save itsbatchIdand ask later. Ask at most once every 15 seconds. Actions: Check an update, Get sync status. More: After you send an update. - 6
A daily catch-up for missed bookings
A webhook can be missed, for example when your server was down for a long time. So once a day, read what you may have missed. Ask for the events after the last you saved. Or ask for the OTA bookings that changed since your last read. Actions: List events, List OTA bookings, List website bookings. - 7
An error log
Save every request that failed: the time, the hotel, the status code, and thecodeandmessageof the answer. Save theX-Request-Idheader of the answer too. Support asks for it. Action: List your recent requests. More: Errors.
Tables to keep in your database
Five small tables are enough. The names are only a proposal. Use your own names if you like.
hotels
- your_hotel_id
- The id of the hotel in your own software.
- property_id
- The id of the same hotel in ZimmerStack. You send it in the X-ZS-Property header.
- currency
- The hotel's currency. Every rate you send for this hotel is in it.
- timezone
- The hotel's time zone. Every date you send is a date on the hotel's own calendar.
- last_sequence
- The sequence of the last event you handled for this hotel. Your daily catch-up starts after it.
room_map
- property_id
- The hotel this row belongs to.
- kind
- room type or rate plan.
- your_id
- Your own id or name for it.
- zimmerstack_id
- The roomTypeId or the ratePlanId that ZimmerStack gave it.
- ref
- The name you gave it when you created it by API, if you did. See .
- room_type_id
- For a rate plan only: the room type it belongs to.
updates_sent
- batch_id
- The batchId from the answer of the update.
- property_id
- The hotel the update was for.
- resource
- What you sent: availability, rates or restrictions.
- sent_at
- When you sent it.
- status
- pending, landed or failed. You fill it in when you check the update.
- idempotency_key
- The code you sent in the
X-Idempotency-Keyheader. See .
bookings
- property_id
- The hotel of the booking.
- ota_name, ota_reservation_code
- channel.otaName and channel.otaReservationCode of the booking. Together they find a booking you already have.
- status
- CONFIRMED or CANCELLED.
- version
- data.booking.version from the event. A higher number is a newer state of the same booking.
- check_in, check_out
- The day the guest arrives and the day the guest leaves.
- body
- The whole booking as it arrived, as JSON. You can read any field later.
webhook_events
- event_id
- The id of the event. Allow each id one time only. Then a message that comes twice is saved once.
- property_id
- The hotel of the event, from property.id.
- type
- What happened, for example channel.booking.created.
- sequence
- The event's number in the order of this hotel's events.
- received_at
- When your server received it.
- handled
- Yes after your software has used the event.
Rules that save you trouble
- Send the full number, not the change
- available: 2 means 2 rooms are free. It does not mean 2 more, and it does not mean 2 fewer.
- Apply a booking to your own count first
- A booking arrives by webhook. Lower the availability in your own software first. Send availability again only after that. When a booking is cancelled, raise it again. If you send the old number, the sold room is on sale again. That makes an .
- Never send the whole calendar again and again
- Send a night only when its number changed. A full calendar every night repairs nothing. It only uses up your limits.
- Treat a webhook that comes twice as one
- Save the id of each event. If the same id comes again, answer 200 and do nothing more.
- Use one item for many nights
- An item has a first night and a last night. A whole year of one rate can be one item.
- Send again with the same idempotency key
- If no answer came, send the same request again with the same X-Idempotency-Key. Then the update is done one time only.
- On 429, wait
- Read the header. Wait that many seconds. Then send the same request again. For any other error from 400 to 499, fix the request first. More: Rate limits.
One more fact for your daily catch-up: List events keeps each event for 90 days. List OTA bookings goes back as far as you need.
Words on this page
- PMS
- Property management system: the software a hotel uses at its front desk for bookings, guests and bills.
- 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.
- Event
- One thing that happened, like a new booking. Each webhook carries one event.
- Property
- One hotel in ZimmerStack. Each property has its own id, a number.
- X-ZS-Property
- The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
- 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.
- 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
- Batch
- One update you sent. It gets an id (batchId), so you can ask later if it reached the OTAs.
- Sequence
- A number that counts a hotel's events in order: 1, 2, 3 and so on.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- Ref
- Your own name or id for a room type or a rate plan. You choose it, and ZimmerStack remembers it.
- 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.
- Overbooking
- Selling the same room to two guests for the same night.
- Retry-After
- A header in an answer. It says how many seconds to wait before you send again.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
Routes, samples, limits and codes on this page come from the API's public contract, read live, Sat, 05 Dec 2026 01:08:02 UTC.