Skip to content

API action

List website bookings(bookings from the hotel's own website)

Read the bookings that guests made on the hotel's own website.

About this action

What it does
Lists the of a hotel, oldest change first. These are the guests made on the hotel's own website, through the ZimmerStack . No sent them.
When to use it
When the hotel keeps your and also sells on its own website with ZimmerStack. Read this list before you send for many nights. Also read it on a schedule: once an hour is enough.
Who can use it
A or a . A company key names the hotel with the . The key needs the direct-bookings:read.
Address
GET https://api.zimmerstack.com/api/v1/connect-api/v1/direct-bookings
Before this
On a , first make a website booking with Make a test booking: send otaName as Website.

What you send

At the end of the address, after a question mark:

since
Text, a date and time like 2026-12-01T00:00:00Z. Optional. Only bookings that changed at or after this time. Without it: the last 7 days.
status
Text. Optional. CONFIRMED for bookings that stand, or CANCELLED for cancelled ones. Without it: both.
limit
Whole number, 1 to 100. Optional. How many bookings in one answer. Without it: 50.
cursor
Text. Optional. The nextCursor of your last answer. With it the list goes on exactly where it stopped, and since is not used.

Things to know

  1. Use each website booking before you send availability. A website booking takes one room off sale on every OTA at once. If your software does not know the booking and sends its old number, the room is on sale again. An OTA can then sell it a second time: an .
  2. ZimmerStack does not stop a number that is too high. It takes the availability you send, also when a website booking has sold that room. So your software must subtract the booking first.
  3. Some changes come without a webhook. Other dates, one room of several cancelled, or a payment at the send no . The booking is listed here again, so read this list on a schedule.
  4. A deleted booking stays in the list. A booking that the hotel deleted in ZimmerStack is listed as CANCELLED.

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/direct-bookings?limit=20" -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/direct-bookings?limit=20" -H "Authorization: Bearer zsk_test_YOUR_KEY"

What comes back

The is 200. The bookings are in items. A website booking has the same shape as an OTA booking, so one piece of code reads both.

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "since": "2026-12-03T12:30:00.000Z",
    "items": [
      {
        "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"
      }
    ],
    "more": false,
    "nextCursor": "WyIyMDI2LTEyLTEwVDEyOjAwOjAwLjAwMFoiLDEwMDAwMV0"
  }
}
id
ZimmerStack's id of the booking.
channel.otaName
Always Website for these bookings. And channel.source is always DIRECT_WEB.
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. With NOSHOW the guest did not arrive (), and the nights are on sale again.
amounts.paid
What the guest paid online.
amounts.balanceDue
What the guest still pays at the hotel.
finance
Always null here: no OTA sold the room, so there is no .
more
With true, more bookings are waiting. Ask again with cursor.
nextCursor
Your place in the list, a . Send it as cursor next time.

Then change your own calendar

For each booking, take its rooms off your own calendar on its nights. For a booking that is CANCELLED, or whose stayStatus is NOSHOW, give the nights back. Only then send your availability.

Common mistakes

400 VALIDATION
A value in the address is wrong, and the message names it. A common mistake: cursor is not a nextCursor this API gave you.
409 CHANNEL_MANAGER_DISABLED
The hotel's is not switched on. For a new hotel, send its room types and rate plans first.
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 direct-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 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: list website bookings

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

Go deeper

Words on this page

Website booking
A booking a guest made on the hotel's own website, through the ZimmerStack booking engine.
Booking
A guest has reserved a room for some nights. Also called a reservation.
Booking engine
The part of a hotel's own website where a guest books a room.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
PMS
Property management system: the software a hotel uses at its front desk for bookings, guests and bills.
Availability
How many rooms of one room type are free to sell on one night. Learn more
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
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.
Overbooking
Selling the same room to two guests for the same night.
Front desk
The reception of a hotel, where guests arrive and leave.
Webhook
A message ZimmerStack sends to your server when something happens, like a new booking.
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.
Commission
The money an OTA keeps for each booking it sells.
Cursor
A marker that says where a long list stopped. Send it back to get the next part of the list.
Channel manager
Software that keeps a hotel's rooms and prices the same on every OTA. Learn more
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 20:24:58 UTC.