Skip to content

API action

Get an OTA booking

Read one OTA booking by its id.

About this action

What it does
Gives you one that an sent, in its latest state. The shape is the same as in a .
When to use it
When you have the id of a booking and want to see it again. For example after a webhook, or when a person asks about one booking.
Who can use it
A or a . A company key names the hotel with the . The key needs the channel-bookings:read.
Address
GET https://api.zimmerstack.com/api/v1/connect-api/v1/channel-bookings/{bookingId}
Before this
You need the bookingId. It is id in List OTA bookings and in every booking webhook.

What you send

In the address:

bookingId
Number. ZimmerStack's id of the booking.

Things to know

  1. It reads OTA bookings only. A booking from the hotel's own website is read with Get a website booking.
  2. You cannot cancel or change the booking with this API. The guest cancels or changes it on the OTA. You then get the new state.

The request, in your language

Show the examples for

A sandbox's own key works for one hotel: choose "A hotel key" for it.

Put your key in place of zsk_test_YOUR_KEY, and your hotel's property id in place of YOUR_PROPERTY_ID.

Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.

terminal
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/channel-bookings/100001" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID"

Put your key in place of zsk_test_YOUR_KEY. A hotel key works for one hotel, so the request does not name the hotel.

Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.

terminal
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/channel-bookings/100001" -H "Authorization: Bearer zsk_test_YOUR_KEY"

What comes back

The is 200. The answer is one booking. This example is a booking from MakeMyTrip: one room for two nights.

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "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",
      "phone": "+919876500000",
      "email": "asha.verma@example.com",
      "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 Garden Room",
        "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"
  }
}
status
With CONFIRMED the booking stands. With CANCELLED it was cancelled.
stayStatus
Where the stay is at the hotel: UPCOMING, INHOUSE, COMPLETED, CANCELLED or NOSHOW. The last one is a .
channel
Which OTA sent the booking, and the code of the booking on that OTA.
stay
The day of arrival (checkIn), the day of leaving (checkOut) and the number of nights.
guest
Who booked: name, phone, email, country and language, as the OTA sent them.
guestNotes
What the guest asked for, as the OTA sent it.
rooms
One item for each room. The ids are the ones from Get room types and rate plans. The price of one night is ratePerNight, and mealPlan is the .
rooms[].nightlyRates, rooms[].commission
The OTA's price for each night, and its on the room. mealPlanSource, mealPlanText and mealPrice say where the meal plan came from, in the OTA's words.
finance.taxIncludedInAmount
With true, finance.taxAmount is inside amounts.total. With false, it is on top of it.
amounts
The money of the booking: the total, what is paid, and what is still to pay (balanceDue).
amounts.paymentCollect
Who takes the guest's money: ota, property (the hotel) or unknown.
finance.amountBasis
Says what amounts.total is. With GROSS_TOTAL it is what the guest paid. With NET_PAYOUT it is what the OTA pays the hotel after its .
finance.commissionAmount
The commission the OTA keeps for this booking.
finance.netPayoutAmount
The : what the guest paid minus the commission.
cancellation
It is null while the booking stands. After a cancellation it says when (at) and why (reason).
updatedAt
When the booking last changed.

Common mistakes

404 BOOKING_NOT_FOUND
This hotel has no OTA booking with this id. The id may be of another hotel, or of a booking that did not come from an OTA.
Other errors this request can give
401 API_KEY_INVALID
The key is not right. Copy it again, all of it, with no space before or after.
400 PROPERTY_REQUIRED
You hold a company key and did not name the hotel. Add the X-ZS-Property header.
404 PROPERTY_NOT_FOUND
The property id is not one of your hotels. Use an id from List your hotels.
403 SCOPE_MISSING
The key is not allowed to do this. It needs the scope channel-bookings:read.
403 IP_NOT_ALLOWED
The key only works from the addresses its owner allowed.
429 RATE_LIMITED
Too many requests in a short time. Wait the number of seconds in the Retry-After header, then send again.
401 API_KEY_REVOKED
The key was switched off, or it was replaced and its extra 24 hours are over. Ask the key's owner for the new key. Nothing else makes this key work.
409 ARI_NOT_AUTHORITATIVE
The hotel is not live yet: your software is not its source of truth, so nothing was saved. GET /readiness says what is missing, and POST /go-live makes the switch. To send rates before that, add the header X-ZS-Before-Go-Live: true. It is the same for a company key and for a hotel's own key: a hotel key with ari:read or ari:write can be made before its hotel is live.
409 CHANNEL_MANAGER_DISABLED
The hotel's channel manager is off, so nothing would be sent to an OTA. details.reason says why. not_on_channel_manager: the hotel was never put on it. With a company key, send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there. switched_off: the hotel's owner switched it off. Only the owner can switch it back on.
409 PROPERTY_UNAVAILABLE
The hotel is deleted or is a demo. Or a test key was used on a real hotel, or a live key on a sandbox. Check which key you send. If the key is right, contact the hotel's owner.

Try it now

No code and no install. This box sends a real request to your . It works with a only, so it can never change a real hotel.

Try it here: get an OTA booking

It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.

Go deeper

  • Webhooks: Receive every booking, check that it is real, and never lose one.
  • Guest contact: When you get a guest's phone and email, and for how long.
  • Money: How to send a price, in any currency.

Words on this page

Booking
A guest has reserved a room for some nights. Also called a reservation.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
Webhook
A message ZimmerStack sends to your server when something happens, like a new booking.
Company key
The key of a software company. One key works for all the hotels of that company.
Hotel key
A key that works for one hotel only. The hotel's owner makes it, or a partner makes it for a hotel it added.
X-ZS-Property
The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
Header
A small piece of extra information sent with a request, like your key.
Scope
One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
Check-out
The day a guest leaves. It is not a night of the stay.
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
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).
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.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Test key
A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.

New here? Start with the partner path or the one-hotel path.

Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 16:20:30 UTC.