One-hotel path
Read bookings for reports
This page is for software that only reads: a dashboard, a sheet, or accounting software. It reads the hotel's from ZimmerStack. It changes nothing.
Three lists you can read
A hotel gets bookings in more than one way. Each way has its own list, and its own .
| List | What is in it | Scope |
|---|---|---|
| List OTA bookings | The bookings the OTAs sent, like Booking.com or MakeMyTrip. | channel-bookings:read |
| List website bookings | The bookings guests made on the hotel's own website, through the ZimmerStack booking engine. | direct-bookings:read |
| List your bookings | The bookings your own key created. Only a key that creates bookings has any. | bookings:read |
- What is in itThe bookings the OTAs sent, like Booking.com or MakeMyTrip.Scope
channel-bookings:read - What is in itThe bookings guests made on the hotel's own website, through the ZimmerStack booking engine.Scope
direct-bookings:read - What is in itThe bookings your own key created. Only a key that creates bookings has any.Scope
bookings:read
An is a website that sells hotel rooms. The is the part of the hotel's own website where a guest books.
The owner ticks each scope on its own. A key that reads one list does not read the others. Step 1 says how to ask.
What the API does not give
Know this before you plan a report. No request gives these:
- Bookings made by the hotel's staff. A guest who phones the hotel, or walks in, is booked at the , in the . No list has these bookings.
- Bookings another key created. Your key reads only its own.
- A list of payments, bills or receipts. A booking shows its total, what is paid, and what is still due. It does not list each payment.
- Ready-made totals. No request gives the sales of a day or a month. Your software adds up the bookings itself.
So a report from the API covers three kinds of booking: OTA bookings, website bookings, and the ones your own key made. It does not cover every booking of the hotel.
Read a list
This example reads the OTA bookings that changed since 1 December 2026. The time goes in the , after the question mark.
Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/channel-bookings?since=2026-12-01T00:00:00Z" -H "Authorization: Bearer zsk_test_YOUR_KEY"{
"statuscode": 200,
"message": "OK",
"data": {
"since": "2026-12-03T12:30:00.000Z",
"items": [
{
"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"
}
],
"more": false,
"nextCursor": "WyIyMDI2LTEyLTEwVDEyOjAwOjAwLjAwMFoiLDEwMDAwMV0"
}
}- since
- The time the list starts from. It is the time you sent. If you send none, it is 7 days ago.
- items
- The bookings. Each one is a whole booking: the guest, the dates, the rooms and the money.
- more
- true means there are more bookings than this answer holds. Ask again.
- nextCursor
- A : a marker for where this answer stopped. Send it back to get what comes next.
Read all of it, page by page
One answer holds 50 bookings. You can ask for up to 100 with limit. To read more, ask again and again:
- 1
Start with since
Sendsincewith the oldest time your report needs. It can be as far back as you like. - 2
Save the items
Each booking has anid. If you already hold that id, replace your copy with the new one. - 3
While more is true, ask again
Sendcursorwith thenextCursoryou just got. You do not needsinceany more. - 4
When more is false, keep the nextCursor
Save it. Next time, for example in one hour, start with it ascursor. You then get only what changed since.
- A changed booking comes again
- The list is ordered by each booking's last change, oldest first. A booking that was changed or cancelled is listed again, as it is now.
- Only cancelled, or only confirmed
- Send
status=CANCELLEDorstatus=CONFIRMED. Without it you get both. - List website bookings
- It works in the same way: since, cursor, more and nextCursor.
- List your bookings
- It is different. since is the time a booking was created. The newest comes first. One answer holds at most 100 bookings, and there is no cursor.
The money of an OTA booking
Each OTA booking has two parts about money. amounts is what the hotel's books hold. finance says where the money comes from, and what the OTA keeps.
{
"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
}
}Every amount is in the hotel's own , in whole units. 5400 means 5,400 rupees.
- amounts → total
- The total of the booking. Read finance → amountBasis to know what this total means.
- amounts → paid
- What is recorded as paid so far.
- amounts → balanceDue
- The total minus what is paid.
- amounts → paymentCollect
- Who takes the guest's money: ota, property (the hotel), or unknown.
- finance → amountBasis
- What the total is. GROSS_TOTAL: what the guest paid. NET_PAYOUT: what the OTA pays the hotel, after its . GROSS_EXCL_TAX and NET_EXCL_TAX: the same two, before taxes. UNKNOWN: the OTA did not say.
- finance → grossAmount
- What the guest paid for the whole booking, with the hotel's taxes.
- finance → commissionAmount
- The OTA's commission for the whole booking.
- finance → taxAmount
- The taxes the OTA listed on the booking.
- finance → netPayoutAmount
- The : grossAmount minus commissionAmount. Here: 5,400 minus 1,350 is 4,050.
Three more fields can be in finance, when the OTA sends them:
- feeAmount
- A fee the OTA keeps on top of its commission. netPayoutAmount does not take it off.
- paymentType
- How the guest pays, in the OTA's own word, like credit_card.
- virtualCard
- true means the OTA pays the hotel with a . The guest then owes the hotel nothing for the room. No card number is ever sent.
When a number is missing
- A field of finance is null
- The OTA did not send that number. Do not count it as 0.
- finance is null
- The OTA sent nothing about the money. A website booking always has finance null: no OTA sold it, so there is no commission.
- Booking.com
- The total is always what the guest paid, with taxes.
- Agoda
- The booking carries only what Agoda pays the hotel. grossAmount and commissionAmount are null.
- MakeMyTrip and Goibibo
- The hotel chooses what the total is, when it connects the OTA: what the guest paid, or the payout.
So read amountBasis on every booking. Never add up totals of two kinds as if they were the same.
A booking your own key created has other names for its money: totalAmount, totalPaid and balanceDue.
Dates and times
- stay → checkIn, checkOut
- The day and the day. They are dates on the hotel's own calendar, like 2026-12-20.
- createdAt, updatedAt
- When ZimmerStack first got the booking, and when it last changed. These are times in UTC, not on the hotel's clock.
For a report by day, use the hotel's dates. Do not use the clock of your own server.
The guest's phone and email
A booking in a list carries the guest's phone and email until 30 days after check-out. After that both are null, and guest.contactWithheld says retention. The name, the dates and the money stay.
Each time your key reads a phone or an email, ZimmerStack writes it down. The hotel's owner sees that list in Admin. Guest contact has the full rules.
Test on the sandbox
A can hold channel-bookings:read and direct-bookings:read. It reads the . A new sandbox has no bookings.
Ask the owner to make some. In Admin, the card Sandbox has a button Simulate a booking. With one more scope, ari:write, your key can make them too: Make a test booking.
Words on this page
- Booking
- A guest has reserved a room for some nights. Also called a reservation.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- 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.
- Front desk
- The reception of a hotel, where guests arrive and leave.
- PMS
- Property management system: the software a hotel uses at its front desk for bookings, guests and bills.
- Query
- Extra values at the end of an address, after a question mark, like ?from=2026-12-24.
- Cursor
- A marker that says where a long list stopped. Send it back to get the next part of the list.
- Currency
- The money a hotel sells in, like INR for rupees or USD for dollars.
- 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.
- 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.
- Check-in
- The day a guest arrives.
- Check-out
- The day a guest leaves. It is not a night of the stay.
- Test key
- A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
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.