Skip to content

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.

  1. An OTA, or the hotel's own website

    A guest books, changes a booking or cancels it.

    the booking
  2. ZimmerStack

    It signs a message, so you can check that it is real.

    a webhook, within seconds
  3. Your 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

  1. Take a POST request at a public https address.
  2. Check the , on the exact text that arrived. See Check the signature.
  3. Answer with a from 200 to 299, within 10 seconds. Do the work after you answer.
  4. 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.
  5. 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 .

  • Typechannel.booking.created
    When it is sentA new OTA booking arrived.
  • Typechannel.booking.modified
    When it is sentThe OTA changed a booking: its dates, its rooms, its amounts or its guest.
  • Typechannel.booking.cancelled
    When it is sentThe OTA cancelled a booking. For a booking ZimmerStack never received, it comes with no created event before it.
  • Typedirect.booking.created
    When 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.modified
    When 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.cancelled
    When 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.alert
    When it is sentA problem with an OTA began. data.sync.event says which kind.
  • Typechannel.sync.recovered
    When it is sentThat problem ended, or the hotel marked it as handled.
  • Typechannel.drift.detected
    When it is sentThe nightly check found a night where our connectivity partner holds another value than the one you sent.
  • Typechannel.drift.healed
    When it is sentA later check found your value there again.
  • Typechannel.connect.completed
    When it is sentThe connection a connect link carries started selling, from the link's page or any other screen.
  • Typechannel.connect.expired
    When it is sentA connect link ran out before its connection started selling.
  • Typeplatform.incident.opened
    When it is sentZimmerStack recorded an incident that touches a hotel this endpoint may hear about.
  • Typeplatform.incident.updated
    When it is sentZimmerStack said how that incident stands now.
  • Typeplatform.incident.resolved
    When it is sentThe incident is over.
  • Typesupport.ticket.replied
    When it is sentZimmerStack answered one of your support tickets. Only a partner's company endpoints get this.
  • Typesupport.ticket.closed
    When it is sentZimmerStack closed the ticket.
  • Typezimmerstack.ping
    When 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:

  1. Have you handled a message with this id before? Then answer 2xx, and do nothing more.
  2. Find your copy of the booking. data.booking.id is the same in every message about one booking.
  3. Is data.booking.version not higher than the version of your copy? Then the message is old. Skip it.
  4. 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 status is CONFIRMED.
  • changes and previous are null. Nothing came before.
  • Each room in rooms takes its nights from checkIn. The day of checkOut is not a night.
channel.booking.created · a new booking
{
  "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.

  • Messagechannel.booking.created
    What to doSave data.booking. Hold its rooms: for each room in rooms, hold every night of that room.
  • Messagechannel.booking.modified
    What to doReplace 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.
  • Messagechannel.booking.cancelled
    What to doMark your copy as cancelled. Give back every night that it held.
  • Messagechannel.booking.cancelled, for a booking you have no copy of
    What to doLook 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.

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.

channel.booking.modified · one room of two cancelled
{
  "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.adults is 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 happenedThe guest adds a room
    What arriveschannel.booking.modified. rooms has one more room, with status UPCOMING. changes names rooms.
    What your PMS doesAdd the room to the booking. Hold its nights. Post its nights at their prices.
  • What happenedThe guest removes a room
    What arriveschannel.booking.modified. The room stays in rooms, with status CANCELLED. The booking stays CONFIRMED.
    What your PMS doesCancel that one room. Give back its nights. Keep the other rooms as they are.
  • What happenedThe guest changes the room type
    What arrivesOne 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.
    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 dates
    What arriveschannel.booking.modified. stay, each room's checkIn, checkOut, nights and nightlyRates have 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 changes
    What arriveschannel.booking.modified. changes names the amounts that moved: amounts.total, a room's amount, its nightlyRates, its commission.
    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 cancelled
    What arriveschannel.booking.modified, as in the example above. That room has status CANCELLED. The booking stays CONFIRMED.
    What your PMS doesCancel that room only, and give back its nights. Never cancel the whole booking for it.
  • What happenedThe whole booking is cancelled
    What arriveschannel.booking.cancelled. The booking and every room say CANCELLED.
    What your PMS doesCancel the booking. Give back every night it held.
  • What happenedA booking arrives already cancelled
    What arrivesOne channel.booking.cancelled, with no channel.booking.created before 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 order
    What 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 twice
    What 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 desk
    What 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-bookings to see the booking as it is now. A changed booking is listed again.
  • What happenedMakeMyTrip or Goibibo changes a booking
    What arrivesUsually 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.
    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 stayStatus NOSHOW, while status stays CONFIRMED.
    What your PMS doesDo not cancel the booking: the OTA may still pay. Read GET /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, amounts and guest.fullName. When the OTA changed something else, the list is empty. data.booking still 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 example rooms[0].nightlyRates[1].amount. On a booking that arrived before 25 Nov 2026 they are null. Their first value is not listed as a change.
When they are missing
In rare cases, a modified message has previous: null, or changes: null too. Then use data.booking alone. 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 same version counter. 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.

data.booking.rooms[0] · the meal and the money of one room
{
  "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. 1

    Post each night at its own price

    rooms[].nightlyRates has 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 nightlyRates null? Then the OTA sent none, or the booking arrived before 25 Nov 2026. Post ratePerNight for 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. 2

    Set the meal plan, and know who said it

    mealPlan is the code: EP, CP, MAP or AP. mealPlanSource says 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. 3

    Show the OTA's own words to the desk

    mealPlanText is 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 is null when the OTA sent no words, as Expedia and Airbnb never do.
  4. 4

    Offer the meal price as an add-on

    mealPrice is 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"
    }

    mealPrice is null when the words state no price. It is null too when they price more than one meal. Then the words say every price.

  5. 5

    Read the amount basis before any amount

    finance.amountBasis is the . With GROSS_TOTAL, amounts.total is the guest's price. With NET_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. 6

    Post the commission as the OTA's charge

    rooms[].commission is the OTA's on that room, as the OTA sent it, in finance.currency. Post it as what the hotel owes the OTA. It is never a discount for the guest.

    finance.commissionAmount is the commission of the whole booking. The rooms' commissions usually add up to it. A room with commission null: use the booking's figure. Agoda sends neither.

  7. 7

    Do not count the tax twice

    finance.taxIncludedInAmount says where finance.taxAmount is. With true, the tax is inside amounts.total: do not add it again. With false, it is on top of the total. With null, the OTA does not say: check the OTA's statement.
  8. 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. With finance.virtualCard true, 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)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: status stays CONFIRMED, 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.source is DIRECT_WEB. channel.sourceGroup is DIRECT. channel.otaName is "Website". finance is null: there is no OTA and no commission. amounts.paymentCollect is "property". amounts.paid is what the guest paid online. amounts.balanceDue is what the front desk collects.
direct.booking.created
{
  "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 /channels lists it. It is always set on completed. On expired it is set when the page saved a connection that nobody started. That connection exists, and it is paused.
selling
true on completed: the OTA is being sent the hotel's rates and availability.
futureBookings
On completed. pulled: the upcoming bookings of that OTA arrive as channel.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 property and a , and they are in the event log. A key reads them there with the channel-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:

  • property
    An 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.
  • sequence
    An event of one hotel (bookings, sync, drift, connect)Yes, on a real event.
    platform.incident.* and support.ticket.*No.
  • GET /events
    An 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 since
    An 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 to
    An 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.incident carries its id, the component, the severity, the status and a title. message is what we said with this change. properties says which of your hotels it touches. Status and incidents has a sample.
support.ticket.replied · .closed
We answered your ticket, or closed it. data.ticket says how the ticket stands. data.message is our reply. A very long reply is cut, and truncated says so. It is null when 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.id in 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.

POST /webhook-endpoints · what you send
{
  "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.

terminal
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"
201 · the data part of the answer
{
  "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.

scripts/webhook-endpoints.ts · create an endpoint, keep its secret, 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 PATCH with includeGuestContact to 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}/test with eventType. It can be any type an endpoint can receive, or zimmerstack.ping (a ), which is the default. The sample says mode: test and has no sequence. On a sandbox, the real events are made with the POST /sandbox/… requests: Sandbox in depth.
Recover
POST /webhook-endpoints/{endpointId}/recover with since. 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: true means: run it again. A live endpoint gets only the events of hotels you could act on then, and still can. GET /events is the other way to catch up. It needs no endpoint at all.
Sending a request again
Send X-Idempotency-Key on 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

  • RequestGET /webhook-endpoints
    What it doesYour endpoints of the key's mode, each with its health.
    With the Node packagezs.webhookEndpoints.list()
  • RequestPOST /webhook-endpoints
    What 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)
  • RequestGET /webhook-endpoints/{endpointId}
    What it doesOne endpoint.
    With the Node packagezs.webhookEndpoints.get(id)
  • 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)
  • RequestPOST …/pause · …/resume
    What it doesKeep its events for now. Then send what was kept, oldest first.
    With the Node packagezs.webhookEndpoints.pause(id) · .resume(id)
    Its pagePause · Resume
  • RequestPOST …/rotate-secret
    What 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)
  • RequestPOST …/test
    What it doesSend a signed sample of any event type, or a ping.
    With the Node packagezs.webhookEndpoints.test(id, { eventType })
  • RequestPOST …/recover
    What 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)
  • 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)
    Its pageList · Get one
  • RequestPOST …/deliveries/{deliveryId}/redeliver
    What it doesSend one delivery again.
    With the Node packagezs.webhookEndpoints.deliveries.redeliver(id, deliveryId)
  • RequestDELETE /webhook-endpoints/{endpointId}
    What it doesDelete it, with its delivery log. This cannot be undone.
    With the Node packagezs.webhookEndpoints.delete(id)

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.

scripts/webhook-endpoints.ts · pause, do the work, resume
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. 1

    Something happens

    An OTA booking is created, changed or cancelled. Or one of the other events on this page happens.
  2. 2

    ZimmerStack signs the message

    It uses the signing secret of your endpoint.
  3. 3

    ZimmerStack sends a POST to your https address

    The request has three headers: webhook-id, webhook-timestamp and webhook-signature.
  4. 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 .

POST to your endpoint
{
  "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 /catalog gives. 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, with status: "CANCELLED". stay and occupancy count only the rooms that are still live.
Payment facts
finance.paymentType: how the guest pays, in the OTA's own word. finance.virtualCard: true means 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.

  • idinteger

    ZimmerStack's id for the booking. Quote it when you write to us about one.

  • referencestring

    ZimmerStack's booking reference; for an OTA booking, the OTA's own reservation code.

  • versioninteger

    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.

  • stayStatusstring

    Where the stay is at the hotel's desk: UPCOMING, INHOUSE, COMPLETED, CANCELLED or NOSHOW.

  • channelobject

    Which OTA sent it.

  • channel.otaNamestring

    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.otaReservationCodestring

    The reservation code the guest and the OTA's extranet both show.

  • channel.sourcestring

    How the booking reached ZimmerStack: CHANNEL_MANAGER for an OTA booking.

  • channel.sourceGroupstring

    DIRECT or INDIRECT; an OTA booking is INDIRECT.

  • stayobject

    The whole booking: the earliest arrival and the latest departure of its rooms.

  • stay.checkInstring

    Arrival day, a calendar date on the hotel's own clock (YYYY-MM-DD).

  • stay.checkOutstring

    Departure day. It is not a night.

  • stay.nightsinteger

    Nights between arrival and departure.

  • stay.dayUseboolean

    true when the guest arrives and leaves on the same day.

  • guestobject

    Who booked, as the OTA sent it.

  • guest.fullNamestring

    The guest's name.

  • guest.firstNamestring or null

    The first name, when the OTA sent the name in two parts; null otherwise.

  • guest.lastNamestring or null

    The last name, when the OTA sent the name in two parts; null otherwise.

  • guest.phonestring 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.emailstring 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.countrystring 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.languagestring or null

    The guest's language as the OTA sent it, such as en; null when it sent none.

  • guest.contactWithheld"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

  • guestNotesstring or null

    The guest's own request, as the OTA sent it. Never the hotel staff's notes.

  • occupancyobject

    Guests in all the rooms together.

  • occupancy.adultsinteger

    Adults in all the rooms together.

  • occupancy.childreninteger

    Children in all the rooms together.

  • roomsarray of objects

    One entry per room booked.

  • rooms[].roomTypeIdinteger

    The room type's id, the one GET /catalog gives.

  • rooms[].roomTypeNamestring

    The room type's name at the hotel.

  • rooms[].ratePlanIdinteger or null

    The rate plan the OTA sold this room on (GET /catalog's id); null when it named none.

  • rooms[].mealPlan"EP" · "CP" · "MAP" · "AP"

    What the guest's rate includes: EP room only, CP breakfast, MAP half board, AP full board.

  • rooms[].mealPlanSource"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[].mealPlanTextstring 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[].mealPriceobject 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[].adultsinteger

    Adults in this room.

  • rooms[].childreninteger

    Children in this room.

  • rooms[].checkInstring

    This room's arrival day; usually the stay's.

  • rooms[].checkOutstring

    This room's departure day; usually the stay's.

  • rooms[].nightsinteger

    This room's nights.

  • rooms[].dayUseboolean

    true when this room is used for part of one day.

  • rooms[].ratePerNightnumber

    This room's price per night, in amounts.currency.

  • rooms[].amountnumber

    ratePerNight times nights, for this room.

  • rooms[].nightlyRatesarray 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[].commissionnumber 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[].statusstring

    This room's state at the desk: UPCOMING, CHECKEDIN, CHECKEDOUT, CANCELLED or NOSHOW.

  • amountsobject

    The money the hotel's books hold for this booking.

  • amounts.currencystring

    The hotel's currency (ISO 4217, such as EUR). Every amount in the booking is in it.

  • amounts.totalnumber

    The booking's total. finance.amountBasis says whether it is what the guest paid or what the OTA owes the hotel.

  • amounts.paidnumber

    What is recorded as paid so far.

  • amounts.balanceDuenumber

    total minus paid, never below 0.

  • amounts.paymentCollect"ota" · "property" · "unknown"

    Who collects the guest's money: ota, property, or unknown.

  • amounts.receivedCurrencystring

    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 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.

  • taxesobject

    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.linesarray of objects
  • taxes.lines[].codestring
  • taxes.lines[].namestring
  • taxes.lines[].kind"TAX" · "FEE" · "PASS_THROUGH"
  • taxes.lines[].includedInRateboolean
  • taxes.lines[].amountnumber
  • taxes.includedInRatesnumber
  • taxes.addedToTotalnumber
  • cancellationobject 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.

  • createdAtstring

    When ZimmerStack first received the booking (ISO time, UTC).

  • updatedAtstring

    When 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

  1. Read the three headers, and the .
  2. Check the timestamp. If it is more than five minutes away from now, refuse the message.
  3. Make one text: the id, then a dot, then the timestamp, then a dot, then the raw body.
  4. Take your signing secret. Remove whsec_ from its start. Decode the rest from . The result is your key.
  5. Make an of the text with the key. Write the result in Base64.
  6. 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.
  7. Compare your result with each signature, with a . If one is the same, the message is real.
  8. If none is the same, refuse the message.
app/api/webhooks/zimmerstack/route.ts · the whole receiver
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/connect does 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 is express.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.

terminal
# Cloudflare (no account needed)
npx cloudflared tunnel --url http://localhost:3000

# or ngrok (free account)
ngrok http 3000
  1. Add that address, with the path of your route, as a sandbox webhook.
  2. Press Send test.
  3. 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.total only. With Total Amount it is what the guest paid (amountBasis GROSS_TOTAL). With Payout Amount it is the payout (NET_PAYOUT). The finance part means the same with both, grossAmount and commissionAmount too. The commission is worked out on the price before . When MakeMyTrip sends no GST line for the hotel, grossAmount is the price before GST and taxAmount is null. 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 /events lists 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-bookings lists 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-bookings does the same for website bookings. These two give the latest state of a booking. They do not give the history of a change (changes and previous).

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.