API action
Get your next invoice
See what your next monthly invoice will be made of, hotel by hotel.
About this action
- What it does
- Reads what your next monthly would hold if it were made today. There is one line for each hotel you pay for, and each line says how its price was reached.
- When to use it
- To show a finance person what the next invoice will be. Also to check the price of one hotel before the invoice comes.
- Who can use it
- A only. The key needs the
billing:read. - Address
GEThttps://api.zimmerstack.com/api/v1/connect-api/v1/billing/next-invoice- Before this
- A key with this scope is made in the by the account owner or an Admin.
Things to know
- It is a reading of today, not the bill. The invoice reads the rooms, the prices and the exchange rate again on the day it is made. That invoice is the bill.
- A hotel that is missing is named. The list
notesnames each hotel or line that is not in this answer today, and says why. - Tax is not in these amounts. The field
beforeTaxis the sum before tax. WithtaxAddedOnTop: true, tax is added on top: this is so for a partner in India. Withfalse, nothing is added. - It only reads. Nothing here pays or changes anything. A person does that in the partner portal.
The request, in your language
Put your key in place of zsk_test_YOUR_KEY.
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/billing/next-invoice" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. The list lines has one line for each hotel. The field beforeTax is the sum of all lines, before tax.
{
"statuscode": 200,
"message": "OK",
"data": {
"billed": true,
"asOf": "2027-01-12T06:00:00.000Z",
"month": "2027-02",
"counting": "LIVE_ON_FIRST",
"currency": "INR",
"lines": [
{
"hotel": "The Lantern House",
"propertyId": 61,
"module": "CM",
"priced": "PRICE_LIST",
"priceList": {
"id": 1,
"name": "Channel manager API",
"currency": "USD"
},
"band": "Hotel",
"rooms": 24,
"declaredRooms": null,
"hotelsInBand": 3,
"unit": "HOTEL",
"quantity": 1,
"unitPrice": "797.71",
"unitPriceMinor": 79771,
"amount": "797.71",
"amountMinor": 79771,
"conversion": {
"fromCurrency": "USD",
"listUnitPrice": "9.00",
"rate": "88.6344",
"rateDate": "2027-01-08"
}
},
{
"hotel": "Ganga Guest House",
"propertyId": 63,
"module": "CM",
"priced": "PRICE_LIST",
"priceList": {
"id": 1,
"name": "Channel manager API",
"currency": "USD"
},
"band": "Homestay & VR",
"rooms": 8,
"declaredRooms": 6,
"hotelsInBand": 1,
"unit": "ROOM",
"quantity": 8,
"unitPrice": "88.63",
"unitPriceMinor": 8863,
"amount": "709.04",
"amountMinor": 70904,
"conversion": {
"fromCurrency": "USD",
"listUnitPrice": "1.00",
"rate": "88.6344",
"rateDate": "2027-01-08"
}
}
],
"beforeTax": "1506.75",
"beforeTaxMinor": 150675,
"taxAddedOnTop": true,
"paidAhead": {
"amount": "0.00",
"amountMinor": 0
},
"notes": [],
"conversionMissing": null,
"atCost": {
"invoicing": "BY_ZIMMERSTACK",
"rule": "A recorded line is added to one of your invoices by our team, at cost. It then reads INVOICED, with the invoice's number once that invoice is issued.",
"lines": [
{
"month": "2027-01",
"property": {
"id": 62,
"name": "Hill View Retreat"
},
"kind": "room_types",
"what": "3 room types above the 20 included",
"usdAmount": "3.00",
"usdAmountMinor": 300,
"amount": null,
"amountMinor": null
}
],
"conversion": null,
"conversionMissing": null,
"beforeTax": "0.00",
"beforeTaxMinor": 0
}
}
}- asOf
- The time this answer was read.
- month
- The month the invoice is for, like
2027-02. - counting
- How hotels are counted.
LIVE_ON_FIRST: every hotel that is live on the 1st is counted for the full month.DAYS_LIVE: each hotel is counted for the days it was live. - lines: hotel, propertyId
- The hotel this line is for: its name and its property id.
- lines: priced
- Where the price comes from. With
PRICE_LIST, it comes from a , read on the day of the invoice. WithAGREED_PRICE, it is a fixed price agreed with you. WithFIXED, the line keeps its own price. - lines: band
- The of the hotel, by its name in the price list.
- lines: rooms
- The rooms counted for the price. It is the number the hotel declared, or the most rooms it has on sale on one night, when that is more.
- lines: declaredRooms
- Filled only when the hotel has more rooms on sale than it declared. It is then the declared number.
- lines: hotelsInBand
- How many of your hotels are in the same room band. The price list can have another price for more hotels.
- lines: unit, quantity
- With
HOTEL, the price is for the whole hotel. WithROOM, the price is for each room, andquantityis the number of rooms. - lines: unitPrice, amount
- The price of one unit, and the total of the line. The total is
unitPricetimesquantity. - lines: conversion
- Filled when the price list is in another : the price in the list, the exchange rate and the date of that rate.
- paidAhead
- Money you that an invoice can still use.
- atCost
- Extra charges passed on that are on no invoice yet. Get what you owe explains them.
- conversionMissing
- Filled when ZimmerStack has no exchange rate for the two currencies it names. Then nothing is priced by a guess. Empty (
null) in the normal case.
Common mistakes
- 403 COMPANY_KEY_REQUIRED
- You used a hotel key. This request works with a company key only.
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.
- 403 SCOPE_MISSING
- The key is not allowed to do this. It needs the scope
billing: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-Afterheader, 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.
- 404 PROPERTY_NOT_FOUND
- The property id is not a hotel this key may use. Read GET /properties again. The hotel's owner may have ended your access.
- 404 PROPERTY_REQUIRED
- You hold a company key, and the request did not say which hotel. Add the header X-ZS-Property with the id of one of your hotels. The answer already lists the first 20 in details.properties (id and name), with details.total for how many there are. GET /properties lists them all.
- 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 your next invoice
It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.
Go deeper
- Your bills by API: Read what you owe and your invoices from your own software.
Words on this page
- Invoice
- A bill.
- Company key
- The key of a software company. One key works for all the hotels of that company.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Partner portal
- The website where your company signs in to make keys, add hotels and pay invoices.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- Price list
- The list of what ZimmerStack charges a partner for one hotel a month. The price depends on the kind and the size of the hotel.
- Room band
- One group in a price list, by the kind and the size of a hotel. Each room band has its own price.
- Currency
- The money a hotel sells in, like INR for rupees or USD for dollars.
- Pay ahead
- To pay money before an invoice asks for it. Later invoices use it, and it can raise your quota.
- At cost
- Passed on at the same price ZimmerStack itself was charged, with nothing added.
- 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 18:57:45 UTC.