Guide
Webhooks(how bookings reach your server)
A is a message that ZimmerStack sends to your . A guest books on an . Seconds later, your server has the booking. You do not have to ask for it.
Where webhooks fit
One small example. A guest books a Deluxe Room at The Lantern House on Booking.com. ZimmerStack gets the booking. It sends one message to the address you gave. The message says channel.booking.created, and the whole booking is inside it.
An OTA, or the hotel's own website
A guest books, changes a booking or cancels it.
the bookingZimmerStack
It signs a message, so you can check that it is real.
a webhook, within secondsYour server
It checks the signature, answers, and saves the booking.
ZimmerStack sends a webhook for each of these:
- Every OTA booking, every change of one, and every cancellation.
- Every booking a guest makes or cancels on the hotel's own website, through the ZimmerStack .
Each message is signed. It is sent to the address you add. That address is your . Is the word webhook new for you? Read What is a webhook? first. A partner's first webhook is a step of its own: Receive a booking.
What your server must do
- Take a POST request at a public https address.
- Check the , on the exact text that arrived. See Check the signature.
- Answer with a from 200 to 299, within 10 seconds. Do the work after you answer.
- Remember the id of each event you handled. Skip an id you have already seen, because the same webhook can arrive twice. For a booking, there is one more rule: One booking's life.
- After your server was down, read what you missed in the event log.
The events
Each webhook carries one . Its type says what happened. This is the .
| Type | When it is sent |
|---|---|
| channel.booking.created | A new OTA booking arrived. |
| channel.booking.modified | The OTA changed a booking: its dates, its rooms, its amounts or its guest. |
| channel.booking.cancelled | The OTA cancelled a booking. For a booking ZimmerStack never received, it comes with no created event before it. |
| direct.booking.created | A guest booked on the hotel's own website, through the ZimmerStack booking engine. The booking is for nights or for hours. |
| direct.booking.modified | The hotel recorded that the guest did not arrive (a no-show), or took that back. The booking is not cancelled. |
| direct.booking.cancelled | The guest cancelled on the booking page. Or the hotel cancelled or deleted the booking, in ZimmerStack or from its own PMS. |
| channel.sync.alert | A problem with an OTA began. data.sync.event says which kind. |
| channel.sync.recovered | That problem ended, or the hotel marked it as handled. |
| channel.drift.detected | The nightly check found a night where our connectivity partner holds another value than the one you sent. |
| channel.drift.healed | A later check found your value there again. |
| channel.connect.completed | The connection a connect link carries started selling, from the link's page or any other screen. |
| channel.connect.expired | A connect link ran out before its connection started selling. |
| platform.incident.opened | ZimmerStack recorded an incident that touches a hotel this endpoint may hear about. |
| platform.incident.updated | ZimmerStack said how that incident stands now. |
| platform.incident.resolved | The incident is over. |
| support.ticket.replied | ZimmerStack answered one of your support tickets. Only a partner's company endpoints get this. |
| support.ticket.closed | ZimmerStack closed the ticket. |
| zimmerstack.ping | Only ever a test. It is sent from a screen, from the API, or when an endpoint is added. |
- Typechannel.booking.createdWhen it is sentA new OTA booking arrived.
- Typechannel.booking.modifiedWhen it is sentThe OTA changed a booking: its dates, its rooms, its amounts or its guest.
- Typechannel.booking.cancelledWhen it is sentThe OTA cancelled a booking. For a booking ZimmerStack never received, it comes with no created event before it.
- Typedirect.booking.createdWhen it is sentA guest booked on the hotel's own website, through the ZimmerStack booking engine. The booking is for nights or for hours.
- Typedirect.booking.modifiedWhen it is sentThe hotel recorded that the guest did not arrive (a no-show), or took that back. The booking is not cancelled.
- Typedirect.booking.cancelledWhen it is sentThe guest cancelled on the booking page. Or the hotel cancelled or deleted the booking, in ZimmerStack or from its own PMS.
- Typechannel.sync.alertWhen it is sentA problem with an OTA began. data.sync.event says which kind.
- Typechannel.sync.recoveredWhen it is sentThat problem ended, or the hotel marked it as handled.
- Typechannel.drift.detectedWhen it is sentThe nightly check found a night where our connectivity partner holds another value than the one you sent.
- Typechannel.drift.healedWhen it is sentA later check found your value there again.
- Typechannel.connect.completedWhen it is sentThe connection a connect link carries started selling, from the link's page or any other screen.
- Typechannel.connect.expiredWhen it is sentA connect link ran out before its connection started selling.
- Typeplatform.incident.openedWhen it is sentZimmerStack recorded an incident that touches a hotel this endpoint may hear about.
- Typeplatform.incident.updatedWhen it is sentZimmerStack said how that incident stands now.
- Typeplatform.incident.resolvedWhen it is sentThe incident is over.
- Typesupport.ticket.repliedWhen it is sentZimmerStack answered one of your support tickets. Only a partner's company endpoints get this.
- Typesupport.ticket.closedWhen it is sentZimmerStack closed the ticket.
- Typezimmerstack.pingWhen it is sentOnly ever a test. It is sent from a screen, from the API, or when an endpoint is added.
The first part of a type is its family:
- channel.booking.*
- A booking from an OTA.
- direct.booking.*
- A : a guest made it on the hotel's own website. See below, and its own guide, Bookings from the hotel's own website.
- channel.sync.* and channel.drift.*
- A problem with an OTA, and a difference found by the nightly check. See below.
- channel.connect.*
- How a ended. See below.
- platform.incident.* and support.ticket.*
- Something is wrong on our side, or we answered your ticket. These two are about your account, not about one hotel. So they carry no
property. See below.
New, changed and cancelled: one booking's life
One OTA can reach your server many times. First it is new. Later the guest may change it, more than once. In the end the guest may cancel it. Each time, ZimmerStack sends one message. This part shows the three messages in full. It also says what your software must do with each one.
One rule first: every message carries the whole booking
A message never carries only the part that changed. data.booking is always the whole booking, as it is now. So your software does not add a change to an old copy. It keeps the newest copy.
Two fields tell you if a message is news:
- data.booking.version
- Our counter of the events of this one booking. The first event has 1, and each later event has one more. A higher version is the later state, in whatever order the messages arrive.
- id
- The id of this event. The same message can be delivered twice. Both times it has the same id.
So do this with every booking message:
- Have you handled a message with this
idbefore? Then answer 2xx, and do nothing more. - Find your copy of the booking.
data.booking.idis the same in every message about one booking. - Is
data.booking.versionnot higher than the version of your copy? Then the message is old. Skip it. - Is it higher, or do you have no copy yet? Then replace your whole copy with
data.booking, and save its version.
With this rule, the order of the messages does not matter. Say the created message is sent again, and arrives after the modified one. Its version is lower, so you skip it.
The three messages, in full
These are the messages that Send test sends, one for each of the three types. They are copied from the API's own code. Nothing in them is typed by hand.
All three are about one booking. Asha Verma books one Deluxe Sea View at The Lantern House, on MakeMyTrip. The stay is 2 nights, from 2026-12-24.
- The booking is new. Its
statusisCONFIRMED. changesandpreviousarenull. Nothing came before.- Each room in
roomstakes its nights fromcheckIn. The day ofcheckOutis not a night.
{
"id": "evt_3f6b2a10-9c4e-4d27-8a51-0b7e6c1d2f93",
"type": "channel.booking.created",
"apiVersion": "2026-09-01",
"occurredAt": "2026-12-10T12:00:00.000Z",
"mode": "test",
"property": {
"id": 61,
"name": "The Lantern House",
"currency": "INR",
"timezone": "Asia/Kolkata"
},
"data": {
"booking": {
"id": 100001,
"reference": "TEST-ZS-8K3Q2M",
"version": 1,
"status": "CONFIRMED",
"stayStatus": "UPCOMING",
"channel": {
"otaName": "MakeMyTrip",
"otaReservationCode": "TEST-ZS-8K3Q2M",
"source": "CHANNEL_MANAGER",
"sourceGroup": "INDIRECT"
},
"stay": {
"checkIn": "2026-12-24",
"checkOut": "2026-12-26",
"nights": 2,
"dayUse": false
},
"guest": {
"fullName": "Asha Verma",
"firstName": "Asha",
"lastName": "Verma",
"country": "IN",
"language": "en"
},
"guestNotes": "Late arrival around 22:00. Non-smoking room please. (test event)",
"occupancy": {
"adults": 2,
"children": 0
},
"rooms": [
{
"roomTypeId": 412,
"ratePlanId": 901,
"roomTypeName": "Deluxe Sea View",
"mealPlan": "CP",
"mealPlanSource": "ota",
"mealPlanText": "CP · Breakfast included",
"mealPrice": null,
"adults": 2,
"children": 0,
"checkIn": "2026-12-24",
"checkOut": "2026-12-26",
"nights": 2,
"dayUse": false,
"ratePerNight": 2700,
"amount": 5400,
"nightlyRates": [
{
"date": "2026-12-24",
"amount": 2600
},
{
"date": "2026-12-25",
"amount": 2800
}
],
"commission": 1350,
"status": "UPCOMING"
}
],
"amounts": {
"currency": "INR",
"total": 5400,
"paid": 0,
"balanceDue": 5400,
"paymentCollect": "property"
},
"finance": {
"otaName": "MakeMyTrip",
"amountBasis": "GROSS_TOTAL",
"currency": "INR",
"grossAmount": 5400,
"commissionAmount": 1350,
"taxAmount": 648,
"netPayoutAmount": 4050,
"taxIncludedInAmount": false
},
"cancellation": null,
"createdAt": "2026-12-10T12:00:00.000Z",
"updatedAt": "2026-12-10T12:00:00.000Z"
}
},
"changes": null,
"previous": null
}You can send each one to your own server. In the partner portal, the list beside Send test has a line for each: A new OTA booking, An OTA booking changed and An OTA booking cancelled. By API, it is Send a test webhook. Your own test message has a new id. Its stay starts 14 days after the day you send it.
These three are test messages. Four facts about them:
- mode
- It is test in a test message, and in every event of a sandbox. It is live in an event of a real hotel.
- sequence
- Not in a test message. A real event has it: its place in the log of its hotel. See The event log.
- data.booking.version
- In these three it is 1, 2 and 3, as in the life of one booking. In a real event it is the count of the events of that booking.
- guest.phone and guest.email
- Not in these messages, because this endpoint has guest contact off. See Guest contact.
To see the version rise for a booking of your own, make real events on a . Make a test booking, then change it, then cancel it. The three messages carry version 1, 2 and 3.
What to do with each message
Two words first. To hold a room is to take its nights off your own room count. To give a night back is to add it to that count again.
| Message | What to do |
|---|---|
channel.booking.created | Save data.booking. Hold its rooms: for each room in rooms, hold every night of that room. |
channel.booking.modified | Replace your copy with data.booking. Give back the nights that your old copy held. Then hold the nights of the new copy. Do not hold a room whose status is CANCELLED. changes and previous show what moved. |
channel.booking.cancelled | Mark your copy as cancelled. Give back every night that it held. |
channel.booking.cancelled, for a booking you have no copy of | Look for the booking by the OTA's own code: data.booking.channel.otaReservationCode, together with data.booking.channel.otaName. Found: mark it cancelled, and give back its nights. Not found: save it as cancelled, and give back nothing. |
- Message
channel.booking.createdWhat to doSavedata.booking. Hold its rooms: for each room inrooms, hold every night of that room. - Message
channel.booking.modifiedWhat to doReplace your copy withdata.booking. Give back the nights that your old copy held. Then hold the nights of the new copy. Do not hold a room whosestatusisCANCELLED.changesandpreviousshow what moved. - Message
channel.booking.cancelledWhat to doMark your copy as cancelled. Give back every night that it held. - Message
channel.booking.cancelled, for a booking you have no copy ofWhat to doLook for the booking by the OTA's own code:data.booking.channel.otaReservationCode, together withdata.booking.channel.otaName. Found: mark it cancelled, and give back its nights. Not found: save it as cancelled, and give back nothing.
The last row happens with real hotels. A guest booked before the hotel moved to ZimmerStack, and cancels after the move. ZimmerStack never received that booking. So no created message came first. Your system may still know the booking, under the OTA's . To test this case on a sandbox, make a test booking with "arrivesCancelled": true.
One room cancelled, not the whole booking
A guest books two rooms, and later cancels one of them. The booking itself is not cancelled. So this is not a channel.booking.cancelled. It arrives as channel.booking.modified. This example shows only the parts that matter.
{
"type": "channel.booking.modified",
"data": {
"booking": {
"status": "CONFIRMED",
"occupancy": {
"adults": 2,
"children": 0
},
"rooms": [
{
"roomTypeId": 412,
"status": "UPCOMING",
"…": "the other fields of this room"
},
{
"roomTypeId": 412,
"status": "CANCELLED",
"…": "the other fields of this room"
}
],
"amounts": {
"total": 5400,
"…": "the other amounts"
},
"…": "the other fields of the booking"
}
},
"changes": [
"occupancy.adults",
"rooms[1].status",
"amounts.total",
"amounts.balanceDue"
],
"previous": {
"occupancy": {
"adults": 4,
"children": 0
},
"rooms": [
{
"roomTypeId": 412,
"status": "UPCOMING",
"…": "the other fields of this room"
},
{
"roomTypeId": 412,
"status": "UPCOMING",
"…": "the other fields of this room"
}
],
"amounts": {
"total": 10800,
"…": "the other amounts"
},
"…": "the status, the stay and the guest's name, as they were before"
}
}- status
- The booking stays CONFIRMED.
- rooms
- The cancelled room stays in the list, with status CANCELLED. Give back its nights.
- stay and occupancy
- They count only the rooms that are still live. Here
occupancy.adultsis 2, not 4. - changes
- It names the room that was cancelled, here rooms[1].status. It also names every count and amount that changed with it.
- On a sandbox
- A sandbox cannot make this message. A sandbox change to fewer rooms shows only the rooms that are left.
Every kind of change, and what your PMS does
A guest can change a booking in many ways. Each way arrives as one of the three messages. This table lists every case we know. Read the column "What arrives" and do what the last column says. The rule above still holds: keep the copy with the highest version.
| What happened | What arrives | What your PMS does |
|---|---|---|
| The guest adds a room | channel.booking.modified. rooms has one more room, with status UPCOMING. changes names rooms. | Add the room to the booking. Hold its nights. Post its nights at their prices. |
| The guest removes a room | channel.booking.modified. The room stays in rooms, with status CANCELLED. The booking stays CONFIRMED. | Cancel that one room. Give back its nights. Keep the other rooms as they are. |
| The guest changes the room type | One channel.booking.modified. The old room is in rooms with status CANCELLED. A new room of the new room type is there too, with status UPCOMING. | Cancel the old room and give back its nights. Add the new room and hold its nights. Do both in one step. |
| The guest changes the dates | channel.booking.modified. stay, each room's checkIn, checkOut, nights and nightlyRates have the new dates. | Give back the nights of your old copy. Hold the nights of the new copy. Post the nights again from nightlyRates. |
| The price changes | channel.booking.modified. changes names the amounts that moved: amounts.total, a room's amount, its nightlyRates, its commission. | Replace the prices of the nights, the total and the commission with the new ones. Keep the payments the desk took. |
| One room of several is cancelled | channel.booking.modified, as in the example above. That room has status CANCELLED. The booking stays CONFIRMED. | Cancel that room only, and give back its nights. Never cancel the whole booking for it. |
| The whole booking is cancelled | channel.booking.cancelled. The booking and every room say CANCELLED. | Cancel the booking. Give back every night it held. |
| A booking arrives already cancelled | One channel.booking.cancelled, with no channel.booking.created before it. | Look for it by otaReservationCode. Found: cancel it and give back its nights. Not found: save it as cancelled, and give back nothing. |
| Messages arrive out of order | Two messages of one booking, the older one last. ZimmerStack also holds a change until its booking has arrived, and then sends both, in order. | Compare data.booking.version with your copy. A lower or equal version is old: skip it. |
| The same message comes twice | Two deliveries with the same id. | Keep the ids you handled. Answer 2xx to a seen id, and do nothing more. |
| A change after the guest arrived, or a change by the hotel's desk | No message. After check-in, ZimmerStack leaves an OTA's change to the hotel's desk. A change the desk makes in ZimmerStack sends no message either. | Read GET /channel-bookings to see the booking as it is now. A changed booking is listed again. |
| MakeMyTrip or Goibibo changes a booking | Usually channel.booking.modified. It may also come as a channel.booking.cancelled, then a new channel.booking.created with another otaReservationCode. We have not proven this. | Handle the two messages as two bookings: cancel the first one, create the second one. Your desk sees the same guest and dates on both. |
| The guest does not arrive (a no-show) | No message. A no-show is never a cancellation. The hotel's desk records it in ZimmerStack. For Booking.com, ZimmerStack also reports it to Booking.com. A read then says stayStatus NOSHOW, while status stays CONFIRMED. | Do not cancel the booking: the OTA may still pay. Read GET /channel-bookings, and mark the booking as a no-show in your PMS. |
- What happenedThe guest adds a roomWhat arrives
channel.booking.modified.roomshas one more room, withstatusUPCOMING.changesnamesrooms.What your PMS doesAdd the room to the booking. Hold its nights. Post its nights at their prices. - What happenedThe guest removes a roomWhat arrives
channel.booking.modified. The room stays inrooms, withstatusCANCELLED. The booking staysCONFIRMED.What your PMS doesCancel that one room. Give back its nights. Keep the other rooms as they are. - What happenedThe guest changes the room typeWhat arrivesOne
channel.booking.modified. The old room is inroomswithstatusCANCELLED. A new room of the new room type is there too, withstatusUPCOMING.What your PMS doesCancel the old room and give back its nights. Add the new room and hold its nights. Do both in one step. - What happenedThe guest changes the datesWhat arrives
channel.booking.modified.stay, each room'scheckIn,checkOut,nightsandnightlyRateshave the new dates.What your PMS doesGive back the nights of your old copy. Hold the nights of the new copy. Post the nights again from nightlyRates. - What happenedThe price changesWhat arrives
channel.booking.modified.changesnames the amounts that moved:amounts.total, a room'samount, itsnightlyRates, itscommission.What your PMS doesReplace the prices of the nights, the total and the commission with the new ones. Keep the payments the desk took. - What happenedOne room of several is cancelledWhat arrives
channel.booking.modified, as in the example above. That room hasstatusCANCELLED. The booking staysCONFIRMED.What your PMS doesCancel that room only, and give back its nights. Never cancel the whole booking for it. - What happenedThe whole booking is cancelledWhat arrives
channel.booking.cancelled. The booking and every room sayCANCELLED.What your PMS doesCancel the booking. Give back every night it held. - What happenedA booking arrives already cancelledWhat arrivesOne
channel.booking.cancelled, with nochannel.booking.createdbefore it.What your PMS doesLook for it by otaReservationCode. Found: cancel it and give back its nights. Not found: save it as cancelled, and give back nothing. - What happenedMessages arrive out of orderWhat arrivesTwo messages of one booking, the older one last. ZimmerStack also holds a change until its booking has arrived, and then sends both, in order.What your PMS doesCompare data.booking.version with your copy. A lower or equal version is old: skip it.
- What happenedThe same message comes twiceWhat arrivesTwo deliveries with the same
id.What your PMS doesKeep the ids you handled. Answer 2xx to a seen id, and do nothing more. - What happenedA change after the guest arrived, or a change by the hotel's deskWhat arrivesNo message. After check-in, ZimmerStack leaves an OTA's change to the hotel's desk. A change the desk makes in ZimmerStack sends no message either.What your PMS doesRead
GET /channel-bookingsto see the booking as it is now. A changed booking is listed again. - What happenedMakeMyTrip or Goibibo changes a bookingWhat arrivesUsually
channel.booking.modified. It may also come as achannel.booking.cancelled, then a newchannel.booking.createdwith anotherotaReservationCode. We have not proven this.What your PMS doesHandle the two messages as two bookings: cancel the first one, create the second one. Your desk sees the same guest and dates on both. - What happenedThe guest does not arrive (a no-show)What arrivesNo message. A no-show is never a cancellation. The hotel's desk records it in ZimmerStack. For Booking.com, ZimmerStack also reports it to Booking.com. A read then says
stayStatusNOSHOW, whilestatusstaysCONFIRMED.What your PMS doesDo not cancel the booking: the OTA may still pay. ReadGET /channel-bookings, and mark the booking as a no-show in your PMS.
Small facts that save you time
- changes and previous
- They are set on a modified message only. On created and on cancelled, both are null.
- What changes follows
- Six parts of the booking:
status,stay,occupancy,rooms,amountsandguest.fullName. When the OTA changed something else, the list is empty.data.bookingstill has the new value. - A room's meal, nights and commission
- They are part of
rooms. So a new meal or a new price for one night is a change too, for examplerooms[0].nightlyRates[1].amount. On a booking that arrived before 25 Nov 2026 they arenull. Their first value is not listed as a change. - When they are missing
- In rare cases, a modified message has
previous: null, orchanges: nulltoo. Then usedata.bookingalone. It is always the whole booking. - The same change, sent twice by the OTA
- ZimmerStack makes one event for it. No second message is sent, and the version does not rise.
- Website bookings
- The
direct.booking.*messages follow the same rule. They carry the whole booking, and the sameversioncounter. See Website bookings. - Every field
- Each field of the booking is explained in The booking, field by field.
Meal plan, commission and money in your PMS
This part is for the moment your saves an OTA booking. The meal and the money are where most mistakes happen. Each OTA says them in its own way. Each room of the booking now carries what its OTA said, beside our own codes.
Here is the room of the test message above, cut to these fields. The guest booked 2 nights of a Deluxe Sea View, with CP.
{
"mealPlan": "CP",
"mealPlanSource": "ota",
"mealPlanText": "CP · Breakfast included",
"mealPrice": null,
"nights": 2,
"ratePerNight": 2700,
"amount": 5400,
"nightlyRates": [
{
"date": "2026-12-24",
"amount": 2600
},
{
"date": "2026-12-25",
"amount": 2800
}
],
"commission": 1350,
"…": "the other fields of this room"
}Save the booking in your PMS, step by step
- 1
Post each night at its own price
rooms[].nightlyRateshas one line for each night, with its date and the OTA's price. Two nights of one stay can have two prices, like 2600 and 2800 here. This is the . Post one line for each night.Is
nightlyRatesnull? Then the OTA sent none, or the booking arrived before 25 Nov 2026. PostratePerNightfor each night. It is the average.A tax the OTA lists apart is not inside these prices. So their sum can be lower than the room's
amount. On Booking.com and MakeMyTrip the difference is the . On Airbnb it is the taxes and the cleaning fee. - 2
Set the meal plan, and know who said it
mealPlanis the code: EP, CP, MAP or AP.mealPlanSourcesays where it came from:"ota": the OTA said it. Trust it."ratePlan": the OTA said nothing. It is the meal of the hotel's own , as the hotel matched it. It is right when the hotel's matching is right."default": nobody said, so the code is EP. Treat the meal as unknown, and let the desk check it.
- 3
Show the OTA's own words to the desk
mealPlanTextis what the OTA wrote about the meal, as it sent it. Show it on the booking in your PMS. A person reads it better than any code. It isnullwhen the OTA sent no words, as Expedia and Airbnb never do. - 4
Offer the meal price as an add-on
mealPriceis a price the OTA's words state for one meal the guest can buy. It is an . It is not inside the room's price, and the guest has not paid it. Add it to the bill only when the guest takes the meal.A Booking.com room-only rate · the meal fields { "mealPlan": "EP", "mealPlanSource": "ota", "mealPlanText": "Breakfast costs Rs. 350 per person per night.", "mealPrice": { "amount": 350, "currency": "INR", "basis": "PER_PERSON_PER_NIGHT" }, "…": "the other fields of this room" }mealPriceisnullwhen the words state no price. It isnulltoo when they price more than one meal. Then the words say every price. - 5
Read the amount basis before any amount
finance.amountBasisis the . WithGROSS_TOTAL,amounts.totalis the guest's price. WithNET_PAYOUT, it is what the OTA pays the hotel, and the guest paid more. Never post a net total as the guest's price. - 6
Post the commission as the OTA's charge
rooms[].commissionis the OTA's on that room, as the OTA sent it, infinance.currency. Post it as what the hotel owes the OTA. It is never a discount for the guest.finance.commissionAmountis the commission of the whole booking. The rooms' commissions usually add up to it. A room withcommissionnull: use the booking's figure. Agoda sends neither. - 7
Do not count the tax twice
finance.taxIncludedInAmountsays wherefinance.taxAmountis. Withtrue, the tax is insideamounts.total: do not add it again. Withfalse, it is on top of the total. Withnull, the OTA does not say: check the OTA's statement. - 8
See who collects the guest's money
amounts.paymentCollect"ota": the OTA took the guest's money. Do not charge the guest for the room. The OTA pays the hotel later."property": the hotel collects at the desk."unknown": the OTA did not say. Withfinance.virtualCardtrue, the OTA pays the hotel by a . The guest owes nothing for the room.
What each OTA sends
Each OTA sends a different part of this. The table says which, read off the OTA bookings of the last 90 days. The first column is the value of channel.otaName.
| OTA (otaName) | Meal words | Commission of each room | Amount basis | Nightly prices |
|---|---|---|---|---|
Booking.com (BookingCom) | Always a sentence. It decides the meal plan. Often it states the price of a meal: that is mealPrice. | Usually. A few bookings send none. | Always GROSS_TOTAL. The tax is always inside the total. | Always. The GST is outside them. |
MakeMyTrip (MakeMyTrip) and Goibibo (Goibibo) | Always the rate's name and what it includes, like CP · Breakfast included. A name like E P decides nothing: then the hotel's rate plan decides. | Always. | The hotel's choice when it connects: Total Amount gives GROSS_TOTAL, Payout Amount gives NET_PAYOUT. | Always. The GST is outside them. |
Agoda (Agoda) | The meals in the rate's benefits, like Breakfast. No meal among them means room only. | Never. Agoda sends only what it pays the hotel. | NET_PAYOUT: what Agoda pays the hotel. | Always. An extra bed is outside them. |
Expedia (Expedia) | Never. The hotel's rate plan decides the meal plan. | Always. | NET_PAYOUT when Expedia collects the guest's money. GROSS_TOTAL when the hotel collects. | Always. They add up to the room's amount. |
Airbnb (AirBNB) | Never. The hotel's rate plan decides. | Never. Only the booking's commission comes. | As Airbnb labels it: GROSS_TOTAL for Total Paid Amount, NET_PAYOUT for Payout Amount. | Always. The taxes and the cleaning fee are outside them. |
Hostelworld (Hostelworld) | A yes or no for breakfast. The words say Breakfast included or Breakfast not included. | Always. Sent since 25 Nov 2026. | UNKNOWN: Hostelworld does not say. The commission is in finance all the same. | Always. They add up to the room's amount. |
Google (GoogleHotelARI) | Never. The hotel's rate plan decides. | Never. Google takes no commission: finance.commissionAmount is 0. | Always GROSS_TOTAL. | Always. |
- OTA (otaName)Booking.com (
BookingCom)Meal wordsAlways a sentence. It decides the meal plan. Often it states the price of a meal: that is mealPrice.Commission of each roomUsually. A few bookings send none.Amount basisAlways GROSS_TOTAL. The tax is always inside the total.Nightly pricesAlways. The GST is outside them. - OTA (otaName)MakeMyTrip (
MakeMyTrip) and Goibibo (Goibibo)Meal wordsAlways the rate's name and what it includes, like CP · Breakfast included. A name like E P decides nothing: then the hotel's rate plan decides.Commission of each roomAlways.Amount basisThe hotel's choice when it connects: Total Amount gives GROSS_TOTAL, Payout Amount gives NET_PAYOUT.Nightly pricesAlways. The GST is outside them. - OTA (otaName)Agoda (
Agoda)Meal wordsThe meals in the rate's benefits, like Breakfast. No meal among them means room only.Commission of each roomNever. Agoda sends only what it pays the hotel.Amount basisNET_PAYOUT: what Agoda pays the hotel.Nightly pricesAlways. An extra bed is outside them. - OTA (otaName)Expedia (
Expedia)Meal wordsNever. The hotel's rate plan decides the meal plan.Commission of each roomAlways.Amount basisNET_PAYOUT when Expedia collects the guest's money. GROSS_TOTAL when the hotel collects.Nightly pricesAlways. They add up to the room's amount. - OTA (otaName)Airbnb (
AirBNB)Meal wordsNever. The hotel's rate plan decides.Commission of each roomNever. Only the booking's commission comes.Amount basisAs Airbnb labels it: GROSS_TOTAL for Total Paid Amount, NET_PAYOUT for Payout Amount.Nightly pricesAlways. The taxes and the cleaning fee are outside them. - OTA (otaName)Hostelworld (
Hostelworld)Meal wordsA yes or no for breakfast. The words say Breakfast included or Breakfast not included.Commission of each roomAlways. Sent since 25 Nov 2026.Amount basisUNKNOWN: Hostelworld does not say. The commission is in finance all the same.Nightly pricesAlways. They add up to the room's amount. - OTA (otaName)Google (
GoogleHotelARI)Meal wordsNever. The hotel's rate plan decides.Commission of each roomNever. Google takes no commission: finance.commissionAmount is 0.Amount basisAlways GROSS_TOTAL.Nightly pricesAlways.
Every value of channel.otaName
channel.otaName is the OTA the guest booked on. Match on these values. Accept a value you do not know: a new OTA adds one.
- BookingCom
- Booking.com.
- MakeMyTrip
- MakeMyTrip, and its site for the Gulf countries. Since 25 Nov 2026. MakeMyTrip and Goibibo share one connection, and before that date a MakeMyTrip booking said Goibibo.
- Goibibo
- Goibibo. A booking that arrived before the site was saved with it still says Goibibo, even when it was made on MakeMyTrip.
- Agoda
- Agoda.
- Expedia
- Expedia, and the sites that sell for it.
- AirBNB
- Airbnb, written as our connectivity partner writes it.
- Hostelworld
- Hostelworld.
- GoogleHotelARI
- Google's free booking links.
- OpenShopping
- A rare channel of our connectivity partner.
- Website
- A website booking: the direct.booking.* family.
- unknown
- No name came with the booking. It is rare.
- On a sandbox
- The name you sent: Booking.com, Expedia, Agoda, Airbnb, MakeMyTrip, Goibibo or Website.
Website bookings: direct.booking.*
Some hotels also sell on their own website, through the ZimmerStack booking engine. No OTA sends these bookings. They reach a under their own names: three webhooks, and GET /direct-bookings to read them. The booking inside has the same shape as in channel.booking.*. So one piece of code can read both.
- direct.booking.created
- A guest confirmed a booking on the hotel's website.
- direct.booking.cancelled
- The guest cancelled on the booking page. Or the hotel cancelled or deleted the booking in ZimmerStack. Or its own PMS cancelled it by API. A cancel made by your PMS comes back to your PMS as this event too.
- direct.booking.modified
- Added on 21 Nov 2026. The hotel recorded that the guest did not arrive (a ), or took that back. The booking is not cancelled:
statusstaysCONFIRMED, and the payment is not touched. Nothing else sends this event yet. See A guest who did not arrive. - stayStatus, and the status of each room
- On a modified event. NOSHOW: the nights are on sale again, so free the room. UPCOMING again, after the hotel took the no-show back: hold the room.
- changes and previous
- On a modified event, changes names what changed. previous carries the booking as it was before, with previous.stayStatus. On the other two events both are null.
- How to tell it from an OTA booking
channel.sourceisDIRECT_WEB.channel.sourceGroupisDIRECT.channel.otaNameis"Website".financeisnull: there is no OTA and no commission.amounts.paymentCollectis"property".amounts.paidis what the guest paid online.amounts.balanceDueis what the front desk collects.
{
"id": "evt_9b1d7c52-3e0a-4f6b-8a14-6c2e5d0f7a31",
"type": "direct.booking.created",
"apiVersion": "2026-09-01",
"occurredAt": "2026-12-10T12:00:00.000Z",
"mode": "live",
"property": {
"id": 61,
"name": "The Lantern House",
"currency": "INR",
"timezone": "Asia/Kolkata"
},
"data": {
"booking": {
"id": 100001,
"reference": "TEST-WEB-4H7P9D",
"version": 1,
"status": "CONFIRMED",
"stayStatus": "UPCOMING",
"channel": {
"otaName": "Website",
"otaReservationCode": "TEST-WEB-4H7P9D",
"source": "DIRECT_WEB",
"sourceGroup": "DIRECT"
},
"stay": {
"checkIn": "2026-12-24",
"checkOut": "2026-12-26",
"nights": 2,
"dayUse": false
},
"guest": {
"fullName": "Asha Verma",
"firstName": "Asha",
"lastName": "Verma",
"phone": "+919876500000",
"email": "asha.verma@example.com",
"country": "IN",
"language": "en"
},
"guestNotes": null,
"occupancy": {
"adults": 2,
"children": 0
},
"rooms": [
{
"roomTypeId": 412,
"ratePlanId": 901,
"roomTypeName": "Deluxe Garden Room",
"mealPlan": "CP",
"mealPlanSource": null,
"mealPlanText": null,
"mealPrice": null,
"adults": 2,
"children": 0,
"checkIn": "2026-12-24",
"checkOut": "2026-12-26",
"nights": 2,
"dayUse": false,
"ratePerNight": 2700,
"amount": 5400,
"nightlyRates": null,
"commission": null,
"status": "UPCOMING"
}
],
"amounts": {
"currency": "INR",
"total": 5400,
"paid": 1080,
"balanceDue": 4320,
"paymentCollect": "property"
},
"finance": null,
"cancellation": null,
"createdAt": "2026-12-10T12:00:00.000Z",
"updatedAt": "2026-12-10T12:00:00.000Z"
}
},
"changes": null,
"previous": null
}Problems with an OTA: channel.sync.*
Two events tell you when something is wrong. So your software never has to ask. channel.sync.alert is a . It is sent once, when a problem with an OTA begins. channel.sync.recovered is sent when that same problem ends, whatever kind it was. It is also sent when the hotel marks the problem as handled.
Both carry data.sync, not data.booking. Its fields are event, channelId, channelKind, message, raisedAt and resolvedAt. You can read the same facts with GET /channels: List the connected OTAs.
data.sync.event says which kind of problem it is:
- rate_error · sync_error
- Our reported that an OTA did not take a price, a restriction or a room count.
- value_refused
- Our connectivity partner answered OK, but refused some values. At most one such event an hour is sent for one hotel. The has the count. See When some values are refused.
- rates_out_of_sync
- Rates and failed to go out five times in a row, for a reason that is not a .
- inventory_out_of_sync
- Room counts are not reaching the OTAs. This problem belongs to the hotel, not to one OTA. So channelId is null.
- disconnect_channel
- An OTA was disconnected.
- settings_changed
- A setting of the connection was changed on our connectivity partner's side.
Drift: channel.drift.detected and channel.drift.healed
These two are a family of their own. Every night ZimmerStack reads what our connectivity partner holds. It compares that with what your software sent. A night where the two differ is called .
- channel.drift.detected
- It names the nights that differ, in data.drift.cells. For each night: your value, their value, and whether ZimmerStack sent yours again.
- channel.drift.healed
- It follows when a later read finds the two the same again.
- To receive them
- An endpoint gets these two only when it lists their types.
After you send an update has the example, and says what to do.
One more fact about the booking events. Since 31 October 2026, each room in them carries ratePlanId. It is the rate plan the OTA sold the room on. It is null when the OTA named none.
A connect link ended: channel.connect.*
A connect link is the last step of connecting an OTA: after the OTA's own step, the hotel's own person finishes on a ZimmerStack page. You are not there when they finish. So an event tells you. channel.connect.completed is sent when the link's connection starts selling. That is when they press Start selling on the page, or when anyone switches the same connection on from another screen, like your partner portal or the hotel's Channels app. If the link runs out and its connection is already selling, you get completed too. channel.connect.expired is sent when the link runs out and its connection is not selling. Both carry data.connect, not data.booking. More on Connect an OTA.
- linkId
- The id of the link, as the request that made it answered. Match on it. The event never carries the address of the link. It never carries the reference you gave the link either, because the hotel's own endpoints get this event too.
- channel · channelName
- The OTA. channel is our short name for it, like bookingcom or airbnb. channelName is its name as a person reads it.
- channelId
- The connection, as
GET /channelslists it. It is always set oncompleted. Onexpiredit is set when the page saved a connection that nobody started. That connection exists, and it is paused. - selling
trueoncompleted: the OTA is being sent the hotel's rates and availability.- futureBookings
- On
completed.pulled: the upcoming bookings of that OTA arrive aschannel.booking.created.failed: reading them did not work, but selling is on all the same.none: that OTA has no way to read them. It is left out when the connection was already selling before the link finished. - opened
- On
expired: whether anybody opened the link. - In the event log
- These events name their hotel. So they carry
propertyand a , and they are in the event log. A key reads them there with thechannel-bookings:read.
About your account, not one hotel: platform.incident.* and support.ticket.*
Every event above is about one hotel. These two families are not. An on our side can touch many of your hotels at once. A support belongs to your company. So each one is sent once for each endpoint, not once for each hotel. And its body has another shape:
| An event of one hotel (bookings, sync, drift, connect) | platform.incident.* and support.ticket.* | |
|---|---|---|
| property | At the top: the hotel it is about. | Not at the top. An incident names the hotels of yours that it touches, in data.incident.properties. A ticket names the hotels you named, in data.ticket.properties. |
| sequence | Yes, on a real event. | No. |
| GET /events | Listed. | Not listed. Read GET /status and GET /support-tickets/{ticketId} instead. |
| Recover since | Sends it again. | Does not send it again. One that failed can still be sent again from the delivery log, while its body is kept. |
| Sent to | The endpoints of the hotel, and a company endpoint that reaches the hotel. | An incident: a hotel's own endpoint when it touches that hotel, and a company endpoint when it touches a hotel that company may act on. A ticket event: the company endpoints of that partner, in the mode of the ticket (live or test). |
- propertyAn event of one hotel (bookings, sync, drift, connect)At the top: the hotel it is about.platform.incident.* and support.ticket.*Not at the top. An incident names the hotels of yours that it touches, in data.incident.properties. A ticket names the hotels you named, in data.ticket.properties.
- sequenceAn event of one hotel (bookings, sync, drift, connect)Yes, on a real event.platform.incident.* and support.ticket.*No.
- GET /eventsAn event of one hotel (bookings, sync, drift, connect)Listed.platform.incident.* and support.ticket.*Not listed. Read GET /status and GET /support-tickets/{ticketId} instead.
- Recover sinceAn event of one hotel (bookings, sync, drift, connect)Sends it again.platform.incident.* and support.ticket.*Does not send it again. One that failed can still be sent again from the delivery log, while its body is kept.
- Sent toAn event of one hotel (bookings, sync, drift, connect)The endpoints of the hotel, and a company endpoint that reaches the hotel.platform.incident.* and support.ticket.*An incident: a hotel's own endpoint when it touches that hotel, and a company endpoint when it touches a hotel that company may act on. A ticket event: the company endpoints of that partner, in the mode of the ticket (live or test).
- platform.incident.opened · .updated · .resolved
- Our staff recorded an incident, said how it stands now, or ended it.
data.incidentcarries its id, the component, the severity, the status and a title.messageis what we said with this change.propertiessays which of your hotels it touches. Status and incidents has a sample. - support.ticket.replied · .closed
- We answered your ticket, or closed it.
data.ticketsays how the ticket stands.data.messageis our reply. A very long reply is cut, andtruncatedsays so. It isnullwhen a ticket is closed with no words. See Tickets by API. - To receive them
- None of these types is in the default set of an endpoint. List the ones you want on the endpoint.
One endpoint for all your hotels
A software company with a adds one . It does this in the partner portal, under Developers. It does not need one endpoint for each hotel. Are you not a partner yet? Sign up. It is free.
- What it gets
- The events of every hotel your company key reaches, from the moment it reaches that hotel. It stops for a hotel whose owner takes the access back.
- Which hotel an event is about
- Read
property.idin each event. It is the same id your key sends in the header. - A sandbox endpoint
- It gets the test bookings of your .
- Signing, retries, the delivery log
- They are the same as for any endpoint.
- Guest contact
- A new company webhook leaves out the guest's phone and email, until you switch on for it. This is . What you receive is yours to protect. See Guest contact.
- Pause, Resume and Recover since
- They are on the same card in the portal. A pause keeps your events, and sends them in order when you resume. Recover since sends again what a suspension dropped.
- What Recover since sends
- A sandbox endpoint gets the events of your sandbox again. A hotels endpoint gets only the events of hotels that allowed you when the event happened, and that still do.
Webhooks by API: manage your endpoints from your own code
Everything on that card is also a request. Your company key can create an endpoint, change it, pause it, test it and read its . So a new environment, or the work after an outage, needs no person and no portal.
Create an endpoint
You send the address of your server. dataAck must be true. With it you confirm that guest booking details will be sent to this address.
{
"url": "https://pms.example/zimmerstack",
"dataAck": true
}Put your company key in place of zsk_test_YOUR_KEY. The request also sends the header X-Idempotency-Key. It is your . Put a code of your own in place of YOUR-OWN-CODE-0001, for example endpoint-prod-2026-12-04. The full page of this request is Add a webhook endpoint.
Save the example above as add-webhook-endpoint.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.
curl -X POST "https://api.zimmerstack.com/api/v1/connect-api/v1/webhook-endpoints" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-Idempotency-Key: YOUR-OWN-CODE-0001" -H "Content-Type: application/json" -d "@add-webhook-endpoint.json"{
"endpoint": {
"id": 7,
"status": "ACTIVE",
"…": "the other fields of the endpoint"
},
"secret": "whsec_…"
}secret is the . It is shown this one time only. Save it now.
With the Node package: create an endpoint, keep its secret, and send a test.
// dataAck: you confirm that guest booking details will be sent to this address.
const made = await zs().webhookEndpoints.create({ url, dataAck: true });
const { endpoint } = made;
// The signing secret is in this answer only. Put it in your server's settings now, never in a log.
// It is null only on a replay of this same request (the first answer was lost): rotate to get a new one.
// shownOnce returns the secret or throws; it never hands you an empty one to store.
await storeSecret(made.secret ?? shownOnce(await zs().webhookEndpoints.rotateSecret(endpoint.id)));
// A signed sample of any event type, to see your receiver answer. It says mode "test".
const { deliveryId } = await zs().webhookEndpoints.test(endpoint.id, { eventType: "channel.booking.created" });
const delivery = await zs().webhookEndpoints.deliveries.get(endpoint.id, deliveryId);
console.log(endpoint.id, endpoint.status, delivery.status, delivery.attempts_log.at(-1)?.responseStatus ?? "not answered yet");
The rules
- Who may do this
- A company key with the scope webhooks:manage. Only a company key can hold this scope, and it is never ticked by default. A hotel's own key gets 403 COMPANY_KEY_REQUIRED. No request here reads the X-ZS-Property header: an endpoint belongs to you, not to a hotel.
- Live and test
- A live key manages your live endpoints. They get the events of every hotel you may act on. A test key manages your test endpoints. They get the events of your sandboxes. An endpoint of the other mode answers 404 WEBHOOK_ENDPOINT_NOT_FOUND. You can have up to three endpoints, both modes together: 409 WEBHOOK_ENDPOINT_LIMIT.
- The signing secret
- It starts with
whsec_. It is in the answer that creates the endpoint, and in the answer that rotates its secret. It is nowhere else: no request reads an existing secret back. To a secret is to replace it. After a rotation both secrets sign for 24 hours. - Guest contact
- An endpoint made by API starts with guest contact off. Send
PATCHwithincludeGuestContactto switch it, at any time. It applies to every delivery made from then on. - Which events
- With no eventTypes, a new endpoint gets the OTA booking events and both channel.sync events. The website booking events (direct.booking.*) must be chosen one by one.
- Pause and resume
- The events of a paused endpoint are kept. They go out oldest first when you resume, and data.heldEvents says how many. An endpoint that ZimmerStack's support team suspended can only be resumed by ZimmerStack: 403 WEBHOOK_ENDPOINT_SUSPENDED. A suspended endpoint drops its events. Recover puts them in the queue again.
- A test event
POST /webhook-endpoints/{endpointId}/testwitheventType. It can be any type an endpoint can receive, orzimmerstack.ping(a ), which is the default. The sample saysmode: testand has no sequence. On a sandbox, the real events are made with thePOST /sandbox/…requests: Sandbox in depth.- Recover
POST /webhook-endpoints/{endpointId}/recoverwithsince. It puts in the queue again every chosen event since that time that failed, or that never had a . It reaches 90 days back at most, and takes 10,000 events in one run at most.truncated: truemeans: run it again. A live endpoint gets only the events of hotels you could act on then, and still can.GET /eventsis the other way to catch up. It needs no endpoint at all.- Sending a request again
- Send
X-Idempotency-Keyon these requests, as on every update. A second try with the same key gets the first answer back. A 4xx answer is kept under its key for 7 days. So when you have changed what the request asked for, send it with a new key. Two examples: you resumed a paused endpoint, or you removed one of three. A 429 or a 503 is never kept. - What stays in the portal
- Reading an existing signing secret. And everything about company keys, prices and team members. A person does these in the partner portal.
The refusals
- 404 WEBHOOK_ENDPOINT_NOT_FOUND
- Your key has no endpoint with this id in its own mode.
- 404 WEBHOOK_DELIVERY_NOT_FOUND
- This endpoint has no delivery with this id.
- 409 WEBHOOK_ENDPOINT_LIMIT
- You already have three endpoints.
- 409 WEBHOOK_ENDPOINT_NOT_ACTIVE
- Test, recover and redeliver need an active endpoint.
- 403 WEBHOOK_ENDPOINT_SUSPENDED
- ZimmerStack's support team suspended this endpoint, and only ZimmerStack can resume it.
- 403 WEBHOOK_ACCESS_ENDED
- The hotel ended your access before the event was sent.
- 410 WEBHOOK_PAYLOAD_EXPIRED
- The event is older than 90 days.
- 400 VALIDATION
- An address, an event type, an email or a date that is not accepted. data.details.reason says why.
- 429 RATE_LIMITED
- data.scope is webhook-endpoint: too many tests, rotations, recovers or redeliveries in one hour.
- 503 WEBHOOKS_UNAVAILABLE
- The webhook service is not available right now.
Every request
| Request | What it does | With the Node package | Its page |
|---|---|---|---|
| GET /webhook-endpoints | Your endpoints of the key's mode, each with its health. | zs.webhookEndpoints.list() | List your webhook endpoints |
| POST /webhook-endpoints | Create one. The answer carries the signing secret, once. A repeat of the same request, with the same idempotency key, answers secret: null. So rotate the secret if the first answer was lost. | zs.webhookEndpoints.create(body) | Add a webhook endpoint |
| GET /webhook-endpoints/{endpointId} | One endpoint. | zs.webhookEndpoints.get(id) | Get a webhook endpoint |
| PATCH /webhook-endpoints/{endpointId} | Change its address, its event types, its notify email or the guest contact switch. | zs.webhookEndpoints.update(id, body) | Change a webhook endpoint |
| POST …/pause · …/resume | Keep its events for now. Then send what was kept, oldest first. | zs.webhookEndpoints.pause(id) · .resume(id) | Pause · Resume |
| POST …/rotate-secret | A new secret, shown once. It is null on a repeat of the same request. Both secrets sign for 24 hours. | zs.webhookEndpoints.rotateSecret(id) | Change the signing secret |
| POST …/test | Send a signed sample of any event type, or a ping. | zs.webhookEndpoints.test(id, { eventType }) | Send a test webhook |
| POST …/recover | Put in the queue again what failed or was never delivered, since a time you choose. | zs.webhookEndpoints.recover(id, since) | Send missed webhooks again |
| GET …/deliveries · …/{deliveryId} | The delivery log. And one delivery, with its body and every try. | zs.webhookEndpoints.deliveries.list(id) · .get(id, deliveryId) | List · Get one |
| POST …/deliveries/{deliveryId}/redeliver | Send one delivery again. | zs.webhookEndpoints.deliveries.redeliver(id, deliveryId) | Send one webhook again |
| DELETE /webhook-endpoints/{endpointId} | Delete it, with its delivery log. This cannot be undone. | zs.webhookEndpoints.delete(id) | Delete a webhook endpoint |
- RequestGET /webhook-endpointsWhat it doesYour endpoints of the key's mode, each with its health.With the Node packagezs.webhookEndpoints.list()Its pageList your webhook endpoints
- RequestPOST /webhook-endpointsWhat it doesCreate one. The answer carries the signing secret, once. A repeat of the same request, with the same idempotency key, answers secret: null. So rotate the secret if the first answer was lost.With the Node packagezs.webhookEndpoints.create(body)Its pageAdd a webhook endpoint
- RequestGET /webhook-endpoints/{endpointId}What it doesOne endpoint.With the Node packagezs.webhookEndpoints.get(id)Its pageGet a webhook endpoint
- RequestPATCH /webhook-endpoints/{endpointId}What it doesChange its address, its event types, its notify email or the guest contact switch.With the Node packagezs.webhookEndpoints.update(id, body)Its pageChange a webhook endpoint
- RequestPOST …/pause · …/resumeWhat it doesKeep its events for now. Then send what was kept, oldest first.With the Node packagezs.webhookEndpoints.pause(id) · .resume(id)
- RequestPOST …/rotate-secretWhat it doesA new secret, shown once. It is null on a repeat of the same request. Both secrets sign for 24 hours.With the Node packagezs.webhookEndpoints.rotateSecret(id)Its pageChange the signing secret
- RequestPOST …/testWhat it doesSend a signed sample of any event type, or a ping.With the Node packagezs.webhookEndpoints.test(id, { eventType })Its pageSend a test webhook
- RequestPOST …/recoverWhat it doesPut in the queue again what failed or was never delivered, since a time you choose.With the Node packagezs.webhookEndpoints.recover(id, since)Its pageSend missed webhooks again
- RequestGET …/deliveries · …/{deliveryId}What it doesThe delivery log. And one delivery, with its body and every try.With the Node packagezs.webhookEndpoints.deliveries.list(id) · .get(id, deliveryId)
- RequestPOST …/deliveries/{deliveryId}/redeliverWhat it doesSend one delivery again.With the Node packagezs.webhookEndpoints.deliveries.redeliver(id, deliveryId)Its pageSend one webhook again
- RequestDELETE /webhook-endpoints/{endpointId}What it doesDelete it, with its delivery log. This cannot be undone.With the Node packagezs.webhookEndpoints.delete(id)Its pageDelete a webhook endpoint
Pause before planned work
Before planned downtime, pause the endpoint. After it, resume the endpoint. Nothing is dropped. What the pause kept goes out oldest first, and heldEvents in the answer says how many.
await zs().webhookEndpoints.pause(endpointId); // events are held from now
await work();
const resumed = await zs().webhookEndpoints.resume(endpointId);
console.log(resumed.heldEvents, "held events are going out, oldest first");
One delivery, step by step
- 1
Something happens
An OTA booking is created, changed or cancelled. Or one of the other events on this page happens. - 2
ZimmerStack signs the message
It uses the signing secret of your endpoint. - 3
ZimmerStack sends a POST to your https address
The request has three headers:webhook-id,webhook-timestampandwebhook-signature. - 4
Your server answers 2xx within 10 seconds
Any other answer is tried again, for about a day.
Deliveries are . So the same event can arrive twice. Each event has an id. Keep the last ids you handled, and skip an id you have already seen.
The envelope
Every webhook has the same outer part. It is called the .
{
"id": "evt_5d3f0c4a-6b1e-4a7e-9c1b-2f0e8d1a9b77",
"type": "channel.booking.created",
"apiVersion": "2026-09-01",
"occurredAt": "2026-12-12T08:14:03.201Z",
"mode": "live",
"sequence": 41,
"property": {
"id": 61,
"name": "The Lantern House",
"currency": "INR",
"timezone": "Asia/Kolkata"
},
"data": {
"booking": {
"id": 100001,
"reference": "TEST-ZS-8K3Q2M",
"version": 1,
"status": "CONFIRMED",
"stayStatus": "UPCOMING",
"channel": {
"otaName": "MakeMyTrip",
"otaReservationCode": "TEST-ZS-8K3Q2M",
"source": "CHANNEL_MANAGER",
"sourceGroup": "INDIRECT"
},
"stay": {
"checkIn": "2026-12-24",
"checkOut": "2026-12-26",
"nights": 2,
"dayUse": false
},
"guest": {
"fullName": "Asha Verma",
"firstName": "Asha",
"lastName": "Verma",
"country": "IN",
"language": "en"
},
"guestNotes": "Late arrival around 22:00. Non-smoking room please. (test event)",
"occupancy": {
"adults": 2,
"children": 0
},
"rooms": [
{
"roomTypeId": 412,
"ratePlanId": 901,
"roomTypeName": "Deluxe Sea View",
"mealPlan": "CP",
"mealPlanSource": "ota",
"mealPlanText": "CP · Breakfast included",
"mealPrice": null,
"adults": 2,
"children": 0,
"checkIn": "2026-12-24",
"checkOut": "2026-12-26",
"nights": 2,
"dayUse": false,
"ratePerNight": 2700,
"amount": 5400,
"nightlyRates": [
{
"date": "2026-12-24",
"amount": 2600
},
{
"date": "2026-12-25",
"amount": 2800
}
],
"commission": 1350,
"status": "UPCOMING"
}
],
"amounts": {
"currency": "INR",
"total": 5400,
"paid": 0,
"balanceDue": 5400,
"paymentCollect": "property"
},
"finance": {
"otaName": "MakeMyTrip",
"amountBasis": "GROSS_TOTAL",
"currency": "INR",
"grossAmount": 5400,
"commissionAmount": 1350,
"taxAmount": 648,
"netPayoutAmount": 4050,
"taxIncludedInAmount": false
},
"cancellation": null,
"createdAt": "2026-12-10T12:00:00.000Z",
"updatedAt": "2026-12-10T12:00:00.000Z"
}
},
"changes": null,
"previous": null
}- id
- The id of this event. A second delivery of the same event has the same id.
- type
- What happened. The list of types is at the top of this page.
- apiVersion
- The version of the webhook format.
- occurredAt
- When it happened, as an .
- mode
- live for a real hotel. test for a sandbox, and for a test sample.
- sequence
- The place of this event in the ordered log of its hotel. It is one higher than the hotel's last event. Is it not the one after the last you used? Then read what you missed in the event log. A test sample has none.
- property
- The hotel: its id, its name, its currency and its time zone.
- data.booking
- The , always in the same shape. It uses the hotel's room type ids, the same numbers
GET /cataloggives. It never carries an id of our connectivity partner, and never a password or a key. - data.booking.version
- Our counter of the events of that booking. It is 1 on the first event, and one more on each later one. A higher version is a later state, whatever order the deliveries arrived in.
- changes and previous
- Set on a modified event. The list changes names the paths that changed, like stay.checkOut, amounts.total or rooms[0].status. The part previous says what they were before: the stay, the rooms, the amounts, the occupancy, the guest's name and the status. The booking itself is always the whole new state.
- A cancelled room
- It stays in
rooms, withstatus: "CANCELLED".stayandoccupancycount only the rooms that are still live. - Payment facts
finance.paymentType: how the guest pays, in the OTA's own word.finance.virtualCard:truemeans the OTA pays the hotel with a , so the guest owes the front desk nothing for the room.finance.feeAmount: a fee the OTA keeps. No card number is ever sent.- Guest contact
- The guest's phone and email are there only while the endpoint has guest contact switched on: Guest contact.
The booking, field by field
data.booking is the same object that GET /channel-bookings returns. So one piece of code reads both. The fields and their types below are read from the API's contract. So the table changes when the API changes.
| Field | Type | Meaning |
|---|---|---|
id | integer | ZimmerStack's id for the booking. Quote it when you write to us about one. |
reference | string | ZimmerStack's booking reference; for an OTA booking, the OTA's own reservation code. |
version | integer | Our own counter of this booking's events: 1 on its first event, one more on each later one. A higher version is a later state whatever order deliveries arrived in. On a read it is the booking's current version (0: no event since versions began) |
status | "CONFIRMED" · "CANCELLED" | Whether the booking stands: CONFIRMED or CANCELLED. |
stayStatus | string | Where the stay is at the hotel's desk: UPCOMING, INHOUSE, COMPLETED, CANCELLED or NOSHOW. |
channel | object | Which OTA sent it. |
channel. | string | The OTA the guest booked on: "BookingCom", "MakeMyTrip", "Goibibo", "Agoda", "Expedia", "AirBNB", "Hostelworld", "GoogleHotelARI", "OpenShopping", or "unknown". A MakeMyTrip booking says "MakeMyTrip" since 25 Nov 2026 (before: "Goibibo"). "Website" on a booking made on the hotel's own website. A sandbox booking keeps the name it was made with. Accept a name you do not know |
channel. | string | The reservation code the guest and the OTA's extranet both show. |
channel. | string | How the booking reached ZimmerStack: CHANNEL_MANAGER for an OTA booking. |
channel. | string | DIRECT or INDIRECT; an OTA booking is INDIRECT. |
stay | object | The whole booking: the earliest arrival and the latest departure of its rooms. |
stay. | string | Arrival day, a calendar date on the hotel's own clock (YYYY-MM-DD). |
stay. | string | Departure day. It is not a night. |
stay. | integer | Nights between arrival and departure. |
stay. | boolean | true when the guest arrives and leaves on the same day. |
guest | object | Who booked, as the OTA sent it. |
guest. | string | The guest's name. |
guest. | string or null | The first name, when the OTA sent the name in two parts; null otherwise. |
guest. | string or null | The last name, when the OTA sent the name in two parts; null otherwise. |
guest. | string or null | The guest's phone; null when the OTA sent none. Left out of a webhook whose endpoint has guest contact switched off. |
guest. | string or null | The guest's email; null when the OTA sent none. Left out of a webhook whose endpoint has guest contact switched off. |
guest. | string or null | The guest's country as the OTA sent it, usually a two-letter code such as PT; null when it sent none. |
guest. | string or null | The guest's language as the OTA sent it, such as en; null when it sent none. |
guest. | "retention" · "unavailable" | Present when phone and email are null because of a rule, not because the booking has none: "retention" = the stay checked out more than 30 days ago (API reads and webhooks alike, a recovered or redelivered event included); "unavailable" = an API read that could not be logged just now, ask again. Absent otherwise |
guestNotes | string or null | The guest's own request, as the OTA sent it. Never the hotel staff's notes. |
occupancy | object | Guests in all the rooms together. |
occupancy. | integer | Adults in all the rooms together. |
occupancy. | integer | Children in all the rooms together. |
rooms | array of objects | One entry per room booked. |
rooms[]. | integer | The room type's id, the one GET /catalog gives. |
rooms[]. | string | The room type's name at the hotel. |
rooms[]. | integer or null | The rate plan the OTA sold this room on (GET /catalog's id); null when it named none. |
rooms[]. | "EP" · "CP" · "MAP" · "AP" | What the guest's rate includes: EP room only, CP breakfast, MAP half board, AP full board. |
rooms[]. | "ota" · "ratePlan" · "default" or any or null | Where mealPlan came from. "ota": the OTA said it. "ratePlan": the OTA said nothing, so it is the meal of the hotel's own rate plan. "default": nobody said, so EP. Null on bookings from before 25 Nov 2026 |
rooms[]. | string or null | The OTA's own words about the meal, as it sent them (at most 500 characters). Show them to the desk. Null when the OTA sent none |
rooms[]. | object or any or null | A price the OTA's words state for one meal the guest can add, for example breakfast on a room-only rate. It is not inside the room's price. Null when the words state none, or more than one |
rooms[]. | integer | Adults in this room. |
rooms[]. | integer | Children in this room. |
rooms[]. | string | This room's arrival day; usually the stay's. |
rooms[]. | string | This room's departure day; usually the stay's. |
rooms[]. | integer | This room's nights. |
rooms[]. | boolean | true when this room is used for part of one day. |
rooms[]. | number | This room's price per night, in amounts.currency. |
rooms[]. | number | ratePerNight times nights, for this room. |
rooms[]. | array of objects or any or null | The OTA's price for each night of this room, in date order. A tax the OTA lists apart is not inside them. Null when the OTA sent none, and on bookings from before 25 Nov 2026 |
rooms[]. | number or null | The OTA's commission on this room as the OTA sent it, in finance.currency. Null when the OTA sent none for the room |
rooms[]. | string | This room's state at the desk: UPCOMING, CHECKEDIN, CHECKEDOUT, CANCELLED or NOSHOW. |
amounts | object | The money the hotel's books hold for this booking. |
amounts. | string | The hotel's currency (ISO 4217, such as EUR). Every amount in the booking is in it. |
amounts. | number | The booking's total. finance.amountBasis says whether it is what the guest paid or what the OTA owes the hotel. |
amounts. | number | What is recorded as paid so far. |
amounts. | number | total minus paid, never below 0. |
amounts. | "ota" · "property" · "unknown" | Who collects the guest's money: ota, property, or unknown. |
amounts. | string | ISO 4217. Present only when the OTA sent the booking in another currency than the property's: the amounts in this booking (total, paid, balanceDue, each room's ratePerNight and amount) are then in THIS currency as the OTA sent them, not converted. Absent otherwise |
finance | object or any or null | Where the money comes from and what the OTA keeps; null when the OTA sent nothing to work it out from. Its fields are under The money on an OTA booking, below. |
taxes | object | The hotel's own tax lines on this booking. Present only where the hotel has confirmed its taxes (outside India) and the booking has been assessed; absent on every other booking |
taxes. | array of objects | — |
taxes. | string | — |
taxes. | string | — |
taxes. | "TAX" · "FEE" · "PASS_THROUGH" | — |
taxes. | boolean | — |
taxes. | number | — |
taxes. | number | — |
taxes. | number | — |
cancellation | object or any or null | Set when the booking is cancelled: at (when, ISO time in UTC) and reason (the OTA's, or null). null otherwise. |
createdAt | string | When ZimmerStack first received the booking (ISO time, UTC). |
updatedAt | string | When the booking last changed (ISO time, UTC). GET /channel-bookings' since reads this. |
idintegerZimmerStack's id for the booking. Quote it when you write to us about one.
referencestringZimmerStack's booking reference; for an OTA booking, the OTA's own reservation code.
versionintegerOur own counter of this booking's events: 1 on its first event, one more on each later one. A higher version is a later state whatever order deliveries arrived in. On a read it is the booking's current version (0: no event since versions began)
status"CONFIRMED" · "CANCELLED"Whether the booking stands: CONFIRMED or CANCELLED.
stayStatusstringWhere the stay is at the hotel's desk: UPCOMING, INHOUSE, COMPLETED, CANCELLED or NOSHOW.
channelobjectWhich OTA sent it.
channel.stringotaName The OTA the guest booked on: "BookingCom", "MakeMyTrip", "Goibibo", "Agoda", "Expedia", "AirBNB", "Hostelworld", "GoogleHotelARI", "OpenShopping", or "unknown". A MakeMyTrip booking says "MakeMyTrip" since 25 Nov 2026 (before: "Goibibo"). "Website" on a booking made on the hotel's own website. A sandbox booking keeps the name it was made with. Accept a name you do not know
channel.stringotaReservationCode The reservation code the guest and the OTA's extranet both show.
channel.stringsource How the booking reached ZimmerStack: CHANNEL_MANAGER for an OTA booking.
channel.stringsourceGroup DIRECT or INDIRECT; an OTA booking is INDIRECT.
stayobjectThe whole booking: the earliest arrival and the latest departure of its rooms.
stay.stringcheckIn Arrival day, a calendar date on the hotel's own clock (YYYY-MM-DD).
stay.stringcheckOut Departure day. It is not a night.
stay.integernights Nights between arrival and departure.
stay.booleandayUse true when the guest arrives and leaves on the same day.
guestobjectWho booked, as the OTA sent it.
guest.stringfullName The guest's name.
guest.string or nullfirstName The first name, when the OTA sent the name in two parts; null otherwise.
guest.string or nulllastName The last name, when the OTA sent the name in two parts; null otherwise.
guest.string or nullphone The guest's phone; null when the OTA sent none. Left out of a webhook whose endpoint has guest contact switched off.
guest.string or nullemail The guest's email; null when the OTA sent none. Left out of a webhook whose endpoint has guest contact switched off.
guest.string or nullcountry The guest's country as the OTA sent it, usually a two-letter code such as PT; null when it sent none.
guest.string or nulllanguage The guest's language as the OTA sent it, such as en; null when it sent none.
guest."retention" · "unavailable"contactWithheld Present when phone and email are null because of a rule, not because the booking has none: "retention" = the stay checked out more than 30 days ago (API reads and webhooks alike, a recovered or redelivered event included); "unavailable" = an API read that could not be logged just now, ask again. Absent otherwise
guestNotesstring or nullThe guest's own request, as the OTA sent it. Never the hotel staff's notes.
occupancyobjectGuests in all the rooms together.
occupancy.integeradults Adults in all the rooms together.
occupancy.integerchildren Children in all the rooms together.
roomsarray of objectsOne entry per room booked.
rooms[].integerroomTypeId The room type's id, the one GET /catalog gives.
rooms[].stringroomTypeName The room type's name at the hotel.
rooms[].integer or nullratePlanId The rate plan the OTA sold this room on (GET /catalog's id); null when it named none.
rooms[]."EP" · "CP" · "MAP" · "AP"mealPlan What the guest's rate includes: EP room only, CP breakfast, MAP half board, AP full board.
rooms[]."ota" · "ratePlan" · "default" or any or nullmealPlanSource Where mealPlan came from. "ota": the OTA said it. "ratePlan": the OTA said nothing, so it is the meal of the hotel's own rate plan. "default": nobody said, so EP. Null on bookings from before 25 Nov 2026
rooms[].string or nullmealPlanText The OTA's own words about the meal, as it sent them (at most 500 characters). Show them to the desk. Null when the OTA sent none
rooms[].object or any or nullmealPrice A price the OTA's words state for one meal the guest can add, for example breakfast on a room-only rate. It is not inside the room's price. Null when the words state none, or more than one
rooms[].integeradults Adults in this room.
rooms[].integerchildren Children in this room.
rooms[].stringcheckIn This room's arrival day; usually the stay's.
rooms[].stringcheckOut This room's departure day; usually the stay's.
rooms[].integernights This room's nights.
rooms[].booleandayUse true when this room is used for part of one day.
rooms[].numberratePerNight This room's price per night, in amounts.currency.
rooms[].numberamount ratePerNight times nights, for this room.
rooms[].array of objects or any or nullnightlyRates The OTA's price for each night of this room, in date order. A tax the OTA lists apart is not inside them. Null when the OTA sent none, and on bookings from before 25 Nov 2026
rooms[].number or nullcommission The OTA's commission on this room as the OTA sent it, in finance.currency. Null when the OTA sent none for the room
rooms[].stringstatus This room's state at the desk: UPCOMING, CHECKEDIN, CHECKEDOUT, CANCELLED or NOSHOW.
amountsobjectThe money the hotel's books hold for this booking.
amounts.stringcurrency The hotel's currency (ISO 4217, such as EUR). Every amount in the booking is in it.
amounts.numbertotal The booking's total. finance.amountBasis says whether it is what the guest paid or what the OTA owes the hotel.
amounts.numberpaid What is recorded as paid so far.
amounts.numberbalanceDue total minus paid, never below 0.
amounts."ota" · "property" · "unknown"paymentCollect Who collects the guest's money: ota, property, or unknown.
amounts.stringreceivedCurrency ISO 4217. Present only when the OTA sent the booking in another currency than the property's: the amounts in this booking (total, paid, balanceDue, each room's ratePerNight and amount) are then in THIS currency as the OTA sent them, not converted. Absent otherwise
financeobject or any or nullWhere the money comes from and what the OTA keeps; null when the OTA sent nothing to work it out from. Its fields are under The money on an OTA booking, below.
taxesobjectThe hotel's own tax lines on this booking. Present only where the hotel has confirmed its taxes (outside India) and the booking has been assessed; absent on every other booking
taxes.array of objectslines taxes.stringlines[]. code taxes.stringlines[]. name taxes."TAX" · "FEE" · "PASS_THROUGH"lines[]. kind taxes.booleanlines[]. includedInRate taxes.numberlines[]. amount taxes.numberincludedInRates taxes.numberaddedToTotal cancellationobject or any or nullSet when the booking is cancelled: at (when, ISO time in UTC) and reason (the OTA's, or null). null otherwise.
createdAtstringWhen ZimmerStack first received the booking (ISO time, UTC).
updatedAtstringWhen the booking last changed (ISO time, UTC). GET /channel-bookings' since reads this.
Check the signature
Anybody on the internet can send a POST to your address. The signature proves that a message is from ZimmerStack. Deliveries follow an open standard named .
- webhook-id
- A header. The id of the message.
- webhook-timestamp
- A header. When the message was sent, as : the seconds since 1 January 1970.
- webhook-signature
- A header. The signature of this message.
- The signing secret
- The secret of your endpoint. It is shown once, when you add the endpoint. You can rotate it.
The steps, in any language
- Read the three headers, and the .
- Check the timestamp. If it is more than five minutes away from now, refuse the message.
- Make one text: the id, then a dot, then the timestamp, then a dot, then the raw body.
- Take your signing secret. Remove
whsec_from its start. Decode the rest from . The result is your key. - Make an of the text with the key. Write the result in Base64.
- Read the header
webhook-signature. It can hold more than one signature, with a space between them. Each one has two parts, with a comma between. The second part is the signature. - Compare your result with each signature, with a . If one is the same, the message is real.
- If none is the same, refuse the message.
import {
ZimmerStackWebhookError,
isConnectEvent,
isIncidentEvent,
isOtaBookingEvent,
isSupportTicketEvent,
isWebsiteBookingEvent,
verifyWebhook,
type ConnectEvent,
type IncidentEvent,
type OtaBookingEvent,
type SupportTicketEvent,
type WebhookEvent,
type WebsiteBookingEvent,
} from "@zimmerstack/connect";
/**
* POST /api/webhooks/zimmerstack: a booking arrived, changed, was a no-show or was cancelled, from an OTA or
* from the hotel's own website; a connect link ended; ZimmerStack opened or ended an incident, or answered
* a support ticket. An endpoint receives each family only when it lists its types.
*/
export async function POST(request: Request): Promise<Response> {
let event: WebhookEvent;
try {
// The body exactly as it arrived: read it as text, before any JSON parsing.
event = await verifyWebhook(await request.text(), request.headers, process.env.ZIMMERSTACK_WEBHOOK_SECRET ?? "");
} catch (err) {
if (err instanceof ZimmerStackWebhookError) return new Response(null, { status: 400 });
throw err;
}
// Deliveries are at-least-once: remember event.id and skip one you have already handled.
// Two families are about your account, not one hotel: they carry no event.property and no sequence.
// Tell them apart FIRST, before any code that reads the hotel.
if (isIncidentEvent(event)) {
// platform.incident.opened · .updated · .resolved: something is wrong on ZimmerStack's side.
await showIncident(event);
} else if (isSupportTicketEvent(event)) {
// support.ticket.replied · .closed: ZimmerStack answered your ticket.
await showTicketReply(event);
} else if (isConnectEvent(event)) {
// channel.connect.completed · .expired: how a one-time connect link ended. This one names its hotel.
await connectLinkEnded(event);
} else if (isOtaBookingEvent(event)) {
// channel.booking.created · .modified · .cancelled: a booking an OTA sent.
await saveBooking(event);
} else if (isWebsiteBookingEvent(event)) {
// direct.booking.created · .modified · .cancelled: a guest booked on the hotel's own website, the hotel
// recorded that the guest did not arrive (or undid that), or the booking was cancelled. The endpoint
// receives each only when it lists that type.
await applyWebsiteBooking(event);
}
// Answer fast (within a few seconds) and do slow work afterwards: a slow answer is retried.
return new Response(null, { status: 204 });
}
/** Yours to write: store event.data.booking under its reference, in your own database. */
async function saveBooking(event: OtaBookingEvent): Promise<void> {
void event;
}
/**
* Yours to write: put the booking in your own calendar. A website booking takes one room off the count the
* channels hold at once; apply it BEFORE your next push of room counts, or that push puts the sold room back
* on sale. A room gives its nights back when its `status` reads CANCELLED or NOSHOW: a cancelled booking
* frees every room, and a no-show (direct.booking.modified, `stayStatus` NOSHOW) frees them too although the
* booking's `status` stays CONFIRMED and the hotel keeps the payment. A no-show the hotel undid reads
* UPCOMING again: hold the room.
*/
async function applyWebsiteBooking(event: WebsiteBookingEvent): Promise<void> {
void event;
}
/**
* Yours to write: show a banner to the hotels in event.data.incident.properties (all of them when
* `all` is true), with the title and what ZimmerStack said. Keep what people change meanwhile and send
* it when `status` reads resolved; do not resend everything.
*/
async function showIncident(event: IncidentEvent): Promise<void> {
void event;
}
/** Yours to write: show event.data.message to whoever opened ticket event.data.ticket.id. */
async function showTicketReply(event: SupportTicketEvent): Promise<void> {
void event;
}
/**
* Yours to write: find your link by event.data.connect.linkId. `completed`: the booking site is selling,
* and its upcoming bookings follow as channel.booking.created when futureBookings is "pulled".
* `expired`: nobody finished; make a new link.
*/
async function connectLinkEnded(event: ConnectEvent): Promise<void> {
void event;
}
- With the Node package
verifyWebhook(rawBody, headers, secret)from@zimmerstack/connectdoes all these steps for you.- Use the raw body
- The body must be the exact text that arrived, before your code reads it as . In a Next.js route handler that is
await request.text(). In Express it isexpress.raw({ type: "application/json" }), on that one route. - First the secret, then the test
- The secret is shown after you add the endpoint. Put it into your server. Then press Send test.
- The first ping
- In the partner portal, the first test ping goes out only when you press the button. An endpoint that a hotel's owner adds in Admin gets a ping at once, when it is added. You cannot have its secret yet. A correct endpoint refuses that one ping, and that does no harm.
Receive webhooks on your own computer
ZimmerStack sends only to a public https address. A server on localhost has none. So you need a while you build. Each of these two commands prints a public https:// address that forwards to your computer.
# Cloudflare (no account needed)
npx cloudflared tunnel --url http://localhost:3000
# or ngrok (free account)
ngrok http 3000- Add that address, with the path of your route, as a sandbox webhook.
- Press Send test.
- The address changes each time a free tunnel starts. Then change the address of the endpoint, or put your app on a real server.
The money on an OTA booking
Every OTA booking carries two parts about money. amounts is the total that the hotel's books hold. finance says where that money comes from, and what the OTA keeps. Read finance.amountBasis first. It says if amounts.total is what the guest paid, or what the OTA owes the hotel. finance is null when the OTA sent nothing to work it out from.
Three words first. The is what the OTA keeps. The is what the OTA pays the hotel. Gross is before the commission, and net is after it ().
The fields of finance
- amountBasis
- GROSS_TOTAL: amounts.total is what the guest paid. NET_PAYOUT: amounts.total is what the OTA owes the hotel after its commission. GROSS_EXCL_TAX and NET_EXCL_TAX are the same two, before taxes. UNKNOWN: the OTA sent nothing to tell.
- grossAmount
- What the guest paid for the whole booking, with the hotel's taxes. null when the OTA does not send it.
- commissionAmount
- The OTA's commission for the whole booking. It does not include a tax the OTA charges on its commission. null when the OTA does not send it.
- taxAmount
- The taxes the OTA listed on the booking. null when it listed none.
- netPayoutAmount
- grossAmount minus commissionAmount. It is what the OTA owes the hotel before the OTA's own deductions: a tax on its commission, and . It is not the amount that reaches the bank. The OTA's statement shows that amount.
- feeAmount
- A fee the OTA keeps on top of its commission, when it sent one: a visibility charge or a payment charge. It is null when the OTA named none. The field netPayoutAmount does not subtract it.
- paymentType
- How the guest pays, in the OTA's own word, for example credit_card. null when the OTA sent none. It is a label only.
- virtualCard
- true when the OTA pays the hotel with a virtual card that it makes. The guest then owes the front desk nothing for the room. It is true or false only. No card number, expiry date or security code is ever sent.
- taxIncludedInAmount
- true: taxAmount is inside amounts.total, so do not add it again. false: it is on top of the total. null: the OTA does not say. Sent since 25 Nov 2026.
Each room also carries its own commission and its nightlyRates. How to post them is in Meal plan, commission and money in your PMS.
By OTA
- MakeMyTrip and Goibibo
- When the OTA is connected, the hotel chooses what the booking total is: Total Amount (our default) or Payout Amount. The choice changes
amounts.totalonly. With Total Amount it is what the guest paid (amountBasisGROSS_TOTAL). With Payout Amount it is the payout (NET_PAYOUT). Thefinancepart means the same with both,grossAmountandcommissionAmounttoo. The commission is worked out on the price before . When MakeMyTrip sends no GST line for the hotel,grossAmountis the price before GST andtaxAmountisnull. Before it pays, MakeMyTrip takes off 18% GST on its commission, and TCS and TDS. On the bookings we checked, these two were 0.5% and 0.1% of the price before GST. - Agoda
- The booking carries only Agoda's net amount: what Agoda pays the hotel. Taxes are in it, under Agoda's usual tax setting (Inclusive). amounts.total and netPayoutAmount are that amount, and amountBasis is NET_PAYOUT. grossAmount and commissionAmount are null. The guest's price and Agoda's commission are on Agoda's own statement.
- Booking.com
- Always what the guest paid, with taxes. amounts.total and grossAmount are the same. commissionAmount is Booking.com's commission. netPayoutAmount is the difference.
- Any other OTA
- Read amountBasis. Each OTA states its basis in its own way, and finance says which one this booking used.
An example: a MakeMyTrip booking
The room costs 4,000 rupees. GST is 5%. The commission is 20%.
- grossAmount
- 4,200.00 (4,000 + 200 GST)
- commissionAmount
- 800.00 (20% of 4,000)
- taxAmount
- 200.00
- netPayoutAmount
- 3,400.00 (4,200 − 800)
- amounts.total
- 4,200.00 with Total Amount. 3,400.00 with Payout Amount.
- Reaches the bank
- About 3,232.00. That is 3,400 − 144 (18% GST on the commission) − 20 (TCS) − 4 (TDS).
When your server is down
Events are sent within seconds of the booking. If your server does not answer, nothing is lost.
- Answer fast
- Answer with 2xx within 10 seconds, and do the work after you answer. Your endpoint must be https, on a public host. A redirect is not followed.
- Retries
- Any answer that is not 2xx, a timeout or a connection error gets a . The waits are 30 seconds, 2 minutes, 10 minutes, 30 minutes, 1 hour, 3 hours, 6 hours and 12 hours. That is about a day in all. Each wait can be up to 20% shorter or longer. After the last one, the delivery is marked failed.
- 429, 503 and 410
- A 429 or a 503 with a header is tried again no sooner than the header says, and after one hour at most. A 410 Gone pauses the endpoint.
- Who is told
- ZimmerStack emails the person who added the endpoint, after one hour of failures and after one day. After 72 hours with no delivery that worked, the endpoint is suspended: ZimmerStack stops sending to it.
- Planned downtime
- Pause the endpoint first. A pause keeps every event, for up to 90 days, and sends them oldest first when you resume. A suspension keeps nothing. Resume the endpoint, then use Recover since: it sends again what you missed, up to 90 days back. One delivery can be sent again from the delivery log. A company key can do all of this by API too, as well as in the portal.
- Order
- Deliveries are at least once, and usually in order. But a retry can arrive after a newer event. Skip an event id you have already handled. For one booking, the higher data.booking.version is the later state. Better: do not depend on the order at all. Every event carries the sequence of its hotel, and GET /events lists them in that order.
- Nothing is lost for good
GET /eventslists every event of a hotel after the sequence you last used, in order, for 90 days. Read it after any outage. For older changes,GET /channel-bookingslists every OTA booking changed since a time you choose, however far back. The bookings have the webhook's own shape, and cancellations are in the list.GET /direct-bookingsdoes the same for website bookings. These two give the latest state of a booking. They do not give the history of a change (changesandprevious).
Where you manage an endpoint
You add an endpoint, pause it, test it, recover and rotate its secret in these places:
- A company endpoint
- In the partner portal, under Developers. Or by API.
- A hotel's own endpoint
- In Admin → Developers → Webhooks, or in Channels → Integrations.
Match a booking you already hold
Use data.booking.channel.otaName together with data.booking.channel.otaReservationCode. That is the of the OTA. On a website booking the code is ZimmerStack's own booking reference, and otaName is "Website". Match MakeMyTrip and Goibibo as one name: see Every value of channel.otaName.
The contract
There is also a contract that a program can read. It has the full shape of the booking, and a sample of every event. It is public: https://api.zimmerstack.com/api/v1/public/webhooks/contract.
Words on this page
- Webhook
- A message ZimmerStack sends to your server when something happens, like a new booking.
- Server
- A computer that runs your software all the time and can be reached over the internet.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Booking engine
- The part of a hotel's own website where a guest books a room.
- HTTPS
- The safe way to send data over the internet. An address that uses it starts with https://. Learn more
- Webhook endpoint
- The address of your server where ZimmerStack sends webhooks.
- Signature
- A code sent with each webhook. Your server checks it with the signing secret.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- Event
- One thing that happened, like a new booking. Each webhook carries one event.
- Event type
- The name of one kind of event, like channel.booking.created for a new OTA booking.
- Website booking
- A booking a guest made on the hotel's own website, through the ZimmerStack booking engine.
- 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.
- PMS
- Property management system: the software a hotel uses at its front desk for bookings, guests and bills.
- No-show
- A guest who booked but did not arrive.
- Meal plan
- Which meals the price includes: none (EP), breakfast (CP), breakfast and one meal (MAP), or all meals (AP).
- Nightly price
- The price of one room for one night of a stay. Two nights of one stay can have two different prices.
- Rate plan
- One way to sell a room type, with its own price. For example Room only, or With breakfast.
- Add-on
- Something a guest can buy on top of the room, like a breakfast. Its price is not inside the price of the room.
- Amount basis
- What the total of an OTA booking stands for: the price the guest paid, or the money the OTA pays the hotel after it keeps its part.
- Sync alert
- A webhook that says an OTA has a problem with a hotel, like a price it refused.
- 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
- Batch
- One update you sent. It gets an id (batchId), so you can ask later if it reached the OTAs.
- Restrictions
- Stay rules for a night, like a minimum stay of 2 nights, or no arrival on that day. Learn more
- Rate limit
- How many requests you may send in a minute, an hour or a day.
- Drift
- A night where our connectivity partner holds a different value than the one your software sent.
- Sequence
- A number that counts a hotel's events in order: 1, 2, 3 and so on.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Incident
- A problem on ZimmerStack's side that our team has written down and is fixing.
- 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.
- Company webhook
- One address of your server that receives the webhooks of all your hotels.
- X-ZS-Property
- The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- Guest contact
- A guest's phone number and email address.
- Personal data
- Information about a person, like a name, a phone number or an email address. Laws protect it.
- Delivery log
- The list of webhooks sent to one webhook endpoint, with the answer your server gave to each.
- Delivery
- One webhook sent to one of your webhook endpoints, with every try to send 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.
- Signing secret
- A secret code ZimmerStack shares with you once. With it your server can check that a webhook is really from ZimmerStack.
- Rotate
- To replace a key or a secret with a new one. The old one keeps working for a short time.
- Ping
- A small test webhook with no booking in it. It only checks that your server answers.
- At least once
- Every webhook reaches you one time or more. So the same webhook can arrive twice.
- Envelope
- The outer part of every webhook. It says what happened, when, and at which hotel. The details are inside it.
- ISO time
- A date and time written like 2026-12-24T08:14:03.201Z. The Z at the end means UTC, the world's standard clock.
- Booking
- A guest has reserved a room for some nights. Also called a reservation.
- Virtual card
- A card number an OTA makes to pay the hotel for one booking. The guest then pays the hotel nothing for the room.
- Standard Webhooks
- An open standard for signing webhooks. Many companies use it, so ready-made code exists in most languages.
- Unix time
- A moment written as one number: the seconds since 1 January 1970.
- Raw body
- The exact text of a request as it arrived, before your code turns it into an object.
- Base64
- A way to write any data as plain letters and digits.
- HMAC-SHA256
- A standard way to make a signature from a text and a secret. Every programming language has it.
- Constant-time compare
- A safe way to compare two secret codes. It always takes the same time, so an attacker learns nothing from it.
- JSON
- A simple text format for data, made of names and values inside { }.
- Tunnel
- A tool that gives your own computer a public https address for a short time, so you can test webhooks on it. Learn more
- Commission
- The money an OTA keeps for each booking it sells.
- Payout
- The money an OTA pays the hotel for a booking, after it keeps its commission.
- Gross and net
- Gross is the full price the guest paid. Net is what is left for the hotel after the OTA keeps its part.
- GST
- Goods and Services Tax: the sales tax of India.
- TCS and TDS
- Two small Indian taxes. An OTA takes them out of the money it pays a hotel.
- Retry
- One more try to send the same message, after a try that failed. Learn more
- Retry-After
- A header in an answer. It says how many seconds to wait before you send again.
- Reservation code
- An OTA's own number for a booking. The guest and the hotel both see it.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Sat, 05 Dec 2026 01:08:28 UTC.