Guide for partners
Your bills by API
Your software can read what the Billing page of the partner portal shows: what you owe, your , what the next one is made of, and how many hotels you may still add. It only reads. Paying and changing anything stay with a person.
The idea
Three requests read your bills. None of them pays, and none of them changes anything.
Example: before your screen offers "Add a hotel", your software asks how many hotels you may still add. The answer says: 10 allowed, 4 used, 6 free. This number of hotels is called your .
| Request | What it answers | Its own page |
|---|---|---|
| GET /billing | What you owe. The one-time onboarding fee. Your hotel quota, and what opens the next level. What is left of money paid ahead. The days of an unpaid invoice. What was passed on at cost. | Get what you owe |
| GET /billing/invoices | Your issued invoices, newest first. Each one before and after tax, with its lines. Then your recent payments. | List your invoices |
| GET /billing/next-invoice | What your next monthly invoice is made of, hotel by hotel, as read today. | Get your next invoice |
- RequestGET /billingWhat it answersWhat you owe. The one-time onboarding fee. Your hotel quota, and what opens the next level. What is left of money paid ahead. The days of an unpaid invoice. What was passed on at cost.Its own pageGet what you owe
- RequestGET /billing/invoicesWhat it answersYour issued invoices, newest first. Each one before and after tax, with its lines. Then your recent payments.Its own pageList your invoices
- RequestGET /billing/next-invoiceWhat it answersWhat your next monthly invoice is made of, hotel by hotel, as read today.Its own pageGet your next invoice
The list of invoices has your 24 newest issued invoices. An invoice that is still a draft, or that was cancelled, is never listed.
Before you start
- The key
- A with the
billing:read. Only a company key can have it, and it is never ticked by itself. In the partner portal, tick Also read invoices and quota when you make the key. A gets403 COMPANY_KEY_REQUIRED. - Who may make this key
- Someone who may open the portal's Billing page: the account's owner, or an Admin. A Developer cannot make a key that reads your bills.
- It only reads
- No request here pays, accepts a price or changes billing details. A person does those in the partner portal. No answer has a payment link.
- No hotel in the header
- These requests never read X-ZS-Property. A bill belongs to your company, not to one hotel.
- Live key or test key
- The answer is the same for both. Your company has one bill.
- Money
- An amount is a text with decimals, in the full unit of the invoice's :
"3765.38". Beside it, a field that ends inMinorhas the same amount in hundredths:376538. Three things are always in US dollars: the pay-ahead amount of the quota, the onboarding fee and the at-cost lines. Money explains the units.
An example: is there room for one more hotel?
Before your own screen offers "add a hotel", it checks that the quota has room. It also shows a finance person what you owe. Put your own 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" -H "Authorization: Bearer zsk_test_YOUR_KEY"With the Node package it looks like this.
const bill = await zs().billing.get();
// Amounts are decimal strings in major units, in the invoice's currency. Never add two currencies.
console.log("owed:", bill.outstanding.amount, bill.currency, "on", bill.outstanding.openInvoices, "invoices");
console.log("hotels:", bill.quota.properties.used, "of", bill.quota.properties.allowed, "·", bill.quota.properties.free, "free");
// What the channel manager charged above the room types and rate plans a hotel includes, at cost.
// RECORDED means it is on no invoice yet: show it as recorded, never as billed.
for (const item of bill.atCost.items) console.log(item.month, item.property.name, item.what, item.amount, bill.atCost.currency, item.status);
// What the next monthly invoice is made of, hotel by hotel, read today.
const next = await zs().billing.nextInvoice();
for (const line of next.lines) console.log(line.hotel, line.rooms, "rooms", line.band, line.unitPrice, "→", line.amount, next.currency);
The is 200. This is one part of the answer's data: the quota.
{
"applies": true,
"why": "ACTIVE",
"startsOn": "2027-01-01",
"properties": {
"allowed": 10,
"used": 4,
"free": 6
},
"next": {
"properties": 20,
"payAhead": "54.00",
"payAheadMinor": 5400,
"currency": "USD"
},
"setByZimmerStack": false,
"rule": "Your quota is how many hotels you may have live at once. It rises by itself as your paid invoices add up, in levels; paying ahead opens the next level the same day; past the top level ZimmerStack sets it by hand: ask with a support ticket (POST /support-tickets). A hotel past the quota is refused when you add it (409 BILLING_SETUP_REQUIRED, details.reason QUOTA_FULL)."
}This partner may have 10 hotels live. It has 4. It may add 6 more. The next level is 20 hotels. Paying about 54.00 USD ahead opens it today. You pay ahead in the partner portal.
The other parts of the answer
- billed
- true: ZimmerStack bills you for your hotels. false: it bills each hotel itself, and the rest of the answer is empty.
- currency
- The currency your invoices are in.
- outstanding
- What you owe on issued invoices. openInvoices says how many invoices are open. oldestDueAt is the due date of the oldest one.
- onboardingFee
- The one-time onboarding fee: a fee you pay once, before your first .
statesays where it stands.NOT_ASKEDandWAIVED: you do not pay it.LIVE_BEFORE: you were live before the fee began.DUE: pay it in the portal before a live key or a hotel.BILLING: its invoice is being made.PAID: it is paid. - paidAhead
- What is left of the money you , before tax.
- quota, unpaidInvoiceDays, atCost
- The next sections explain these three.
The quota, and the days of an unpaid invoice
- Your hotel quota
quota.propertieshas three numbers.allowed: how many hotels you may have live.used: how many you have.free: how many you may still add. When the quota is full, Add a hotel answers409 BILLING_SETUP_REQUIREDwithdetails.reason QUOTA_FULL.- The next level
quota.nextsays the next level, and about how much paying ahead opens it today. You pay ahead in the partner portal. It isnullat the top level. There, ZimmerStack sets your quota by hand: ask with a support ticket.- How it grows, in the answer's own words
- Your quota is how many hotels you may have live at once. It rises by itself as your paid invoices add up, in levels; paying ahead opens the next level the same day; past the top level ZimmerStack sets it by hand: ask with a support ticket (POST /support-tickets). A hotel past the quota is refused when you add it (409 BILLING_SETUP_REQUIRED, details.reason QUOTA_FULL).
- An unpaid invoice
unpaidInvoiceDaysgives three numbers. In this example: a monthly invoice is due by the end of day 10 of its month. If it is still unpaid on day 25, your hotels' connections are paused. 5 days after that, the hotels' service is ended.- The same rule, in the answer's own words
- A monthly invoice is due by the end of day 10 of its month. Still unpaid on day 25, your hotels' booking-site connections are paused (nothing is deleted, and they are switched back on the day it is paid). 5 days after that the hotels' service is ended.
- Each unpaid invoice
unpaidInvoiceDays.unpaidlists your unpaid monthly invoices, oldest first. Each has its own three moments:dueAt,pauseAtandendAt.automatic: falsemeans the invoice was issued too late in the month for the pause to happen by itself. ZimmerStack then decides it by hand.- Not in force yet
applies: falsemeans the rule is not in force for you yet.quota.startsOnsays from which day it is.- Which hotels are on a month's invoice
- A hotel that is live on the 1st, with an OTA connected or not. It is billed in full for the month that starts. A hotel you add after the 1st is first billed on the next 1st. Nothing is given back for a hotel you remove in the middle of a month.
The next invoice, hotel by hotel
Get your next invoice has one line for each hotel you pay for. Each line says how its price was reached.
[
{
"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"
}
}
]- hotel, propertyId
- The hotel this line is for.
- rooms
- The rooms counted for the price. It is what the hotel declared. Or it is the most rooms it has on sale on one night, when that is more.
- declaredRooms
- Only there when the hotel has more rooms on sale than it declared.
- band
- The the hotel is in, as the price list names it.
- hotelsInBand
- How many of your hotels are in the same room band. This number chooses a volume price.
- priced
- PRICE_LIST: read from a price list on the day of the bill. AGREED_PRICE: a fixed price agreed with you. FIXED: this line keeps its own price.
- priceList
- The price list the price was read from.
- unit, quantity
- ROOM: one price for each room. HOTEL: one price for the hotel. quantity is how many units.
- unitPrice, amount
- The price of one unit, and the amount of the line, in the invoice's currency.
- conversion
- Only there when the price list is in another currency. It has the list's own price, the and the day of that rate.
The charge above the limits, passed on at cost
A hotel includes a number of and . Above that number, our charges for each one. The API's answers call it the channel manager.
Our own limits are lower than that number. So nothing is charged, unless ZimmerStack raises a hotel's limit. When it does, what the hotel has above the included number is recorded for you. The price is our connectivity partner's own price, with nothing added. This is called . Each line is listed under atCost, with its month, its hotel and whether it is on an invoice yet.
Example: Hill View Retreat needed more room types than a hotel includes. So we raised its limit to 26. For 2027-01 it had 3 room types above the 20 included, at 1.00 USD each.
{
"currency": "USD",
"what": "The channel manager includes a number of room types and rate plans with a hotel and charges for each one above it. When ZimmerStack raises a hotel's limit past that number, what the hotel then holds above it is recorded here at the channel manager's own price.",
"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.",
"recorded": "3.00",
"recordedMinor": 300,
"items": [
{
"month": "2027-01",
"property": {
"id": 62,
"name": "Hill View Retreat"
},
"kind": "room_types",
"what": "3 room types above the 20 included",
"held": 23,
"included": 20,
"quantity": 3,
"allowedLimit": 26,
"unitPrice": "1.00",
"amount": "3.00",
"amountMinor": 300,
"status": "RECORDED",
"standing": "ADDED_BY_ZIMMERSTACK",
"invoiceNumber": null
}
]
}| status | Means |
|---|---|
| RECORDED | Counted and shown here. It is on no invoice yet. |
| INVOICED | On one of your invoices. |
| WAIVED | Not charged. |
- statusRECORDEDMeansCounted and shown here. It is on no invoice yet.
- statusINVOICEDMeansOn one of your invoices.
- statusWAIVEDMeansNot charged.
The answer itself says how a recorded line reaches an invoice. Read these two fields:
- atCost.invoicing
BY_ZIMMERSTACK: our team adds the line to one of your invoices.AUTOMATIC: your next monthly invoice has the line by itself. In this example it readsBY_ZIMMERSTACK.- atCost.rule, in the answer's own words
- 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.
- standing, on each line
- Where the line stands for you.
ON_INVOICE: on the issued invoice named ininvoiceNumber.ON_NEXT_INVOICE: on your next monthly invoice.ADDED_BY_ZIMMERSTACK: recorded, and our team adds it to an invoice.NOT_CHARGED: not charged. - On the next invoice
- Get your next invoice lists the lines that are on no invoice yet, under its own
atCost.
Words on this page
- Invoice
- A bill.
- Quota
- How many live hotels you may have right now.
- 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.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Currency
- The money a hotel sells in, like INR for rupees or USD for dollars.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- Live key
- A key that starts with zsk_live_. It works on real hotels.
- Pay ahead
- To pay money before an invoice asks for it. Later invoices use it, and it can raise your quota.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Room band
- One group in a price list, by the kind and the size of a hotel. Each room band has its own price.
- Exchange rate
- How much of one currency you get for one unit of another currency.
- Room type
- A kind of room the hotel sells, like Deluxe Room or Family Suite. A hotel can have 12 rooms of one room type.
- Rate plan
- One way to sell a room type, with its own price. For example Room only, or With breakfast.
- 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
- At cost
- Passed on at the same price ZimmerStack itself was charged, with nothing added.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 23:28:35 UTC.