API action
Get what you owe(billing)
Read what your company owes, how many hotels you may still add, and the money you paid ahead.
About this action
- What it does
- Reads the main numbers of your billing: your unpaid , your , the and the money you . It only reads. It never pays.
- When to use it
- Before you add a hotel, to check that your quota has room. Also to show a finance person what is unpaid, and by which day.
- Who can use it
- A only. The key needs the
billing:read. - Address
GEThttps://api.zimmerstack.com/api/v1/connect-api/v1/billing- Before this
- A key with this scope is made in the by the account owner or an Admin.
Things to know
- It only reads. Nothing here pays an invoice, accepts a price or changes your billing details. A person does those in the partner portal.
- A test key and a live key get the same answer. A bill belongs to your company, not to one hotel or one .
- Each amount comes in two forms. The field
amountis text with decimals, like"3765.38". The fieldamountMinoris the same amount in hundredths, as a whole number:376538. - Some amounts are in US dollars. The onboarding fee, the pay-ahead amount in
quota.nextand the lines inatCostare in USD. The other amounts are in the of your invoices.
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" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. The answer is one object. The table below explains its parts.
{
"statuscode": 200,
"message": "OK",
"data": {
"billed": true,
"currency": "INR",
"outstanding": {
"amount": "3765.38",
"amountMinor": 376538,
"openInvoices": 1,
"oldestDueAt": "2027-01-10T18:29:59.999Z"
},
"onboardingFee": {
"state": "PAID",
"amount": "50.00",
"currency": "USD",
"invoiceNumber": "ZS/26-27/0398"
},
"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)."
},
"paidAhead": {
"amount": "0.00",
"amountMinor": 0,
"currency": "INR"
},
"unpaidInvoiceDays": {
"applies": true,
"dueDay": 10,
"pauseDay": 25,
"endAfterDays": 5,
"rule": "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.",
"unpaid": [
{
"invoiceNumber": "ZS/26-27/0441",
"dueAt": "2027-01-10T18:29:59.999Z",
"pauseAt": "2027-01-24T18:30:00.000Z",
"endAt": "2027-01-29T18:30:00.000Z",
"automatic": true
}
]
},
"atCost": {
"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
}
]
}
}
}- billed
- The value
truemeans: ZimmerStack bills your company for your hotels. Withfalseit bills each hotel directly, and the rest of this answer is empty. - outstanding
- What is unpaid on your invoices: the
amount, how many invoices are open, and the earliest time one is due. - onboardingFee.state
- With
PAID, you paid the fee. WithDUE, pay it in the partner portal before your first live key or hotel. WithBILLING, its invoice is being made. WithWAIVED,NOT_ASKEDorLIVE_BEFORE, the fee is not asked of you. - quota.properties
- Your quota. The field
allowedis how many hotels you may have live. The fieldusedis how many you have. The fieldfreeis how many you may still add. - quota.applies
- With
false, the quota is not in force for you today. The numbers then show what would apply, andwhygives the reason. - quota.next
- The next level of the quota: how many hotels it allows, and about how much you pay ahead to open it today. Empty (
null) at the top level. - paidAhead
- What is left of the money you paid ahead, before tax.
- unpaidInvoiceDays
- The days that matter for an unpaid monthly invoice. The field
dueDayis the day of the month it is due. Still unpaid onpauseDay, the connections of your hotels are paused. AfterendAfterDaysmore days, the service of your hotels ends. - unpaidInvoiceDays.unpaid
- Your unpaid monthly invoices, oldest first. Each one has its own times:
dueAt,pauseAtandendAt. - atCost
- Extra charges for a hotel that has more room types or rate plans than a hotel includes. This happens only when ZimmerStack raised that hotel's limit. The charge of is passed on . The list
itemshas one line for each. - atCost.items: standing
- Where one line stands. With
ON_INVOICE, it is on the invoice named ininvoiceNumber. WithON_NEXT_INVOICE, it will be on your next monthly invoice. WithADDED_BY_ZIMMERSTACK, our team adds it to an invoice. WithNOT_CHARGED, you do not pay it.
Then read the invoices
For each invoice with its lines, use List your invoices. For what the next invoice will hold, use Get your next invoice. To pay, a person opens the Billing page of the partner portal.
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 what you owe
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.
- Quota
- How many live hotels you may have right now.
- Onboarding fee
- A fee you pay one time only, before your first live key.
- Pay ahead
- To pay money before an invoice asks for it. Later invoices use it, and it can raise your quota.
- 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.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- 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.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- 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.
- 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:29 UTC.