Guide
Money(currency and decimals)
You send a price in the hotel's own . You read it back in the same shape. You never multiply or divide by 100. When ZimmerStack has to round a price, the answer tells you.
The idea
Three hotels, three currencies, one rule: what you send is what you read.
- A hotel in Jaipur (rupees)
- You send
4500.50. You read"4500.50". - A hotel in Lisbon (euros)
- You send
"89.50". You read"89.50". - A hotel in Tokyo (yen)
- You send
15000. You read"15000".
Every answer that has a price also has currency and decimals. So you do not need a table of currencies of your own.
- You send
- A number, or text with a number in it:
4500.5,4500.50or"4500.50". It is in : rupees, not paise. No comma between thousands. No currency sign. - You read
rate: the price as text, with exactly the currency's own . Beside it arecurrency(a code of , like INR) anddecimals.- Where decimals comes from
GET /property,GET /catalogandGET /rateseach carrydecimalsfor the hotel's currency. Read it there.
Major units, minor units, and what rateMinor is
ISO 4217 gives every currency a major unit and a . The rupee is a major unit. The paisa is its minor unit. A currency has 0, 2 or 3 decimals between the two. Every amount in this API is in major units.
Some fields have a name that ends in Minor, like rateMinor. Such a field is always one hundredth of the major unit, in every currency. That is the same as the minor unit only when the currency has two decimals. So for these fields, always divide by 100. Or read rate beside it, which needs no arithmetic.
| Currency | Decimals | You send | You read: rate | rateMinor | Note |
|---|---|---|---|---|---|
| Indian rupee (INR) | 2 | "4500.50" | "4500.50" | 450050 | rateMinor is the ISO minor unit here |
| Euro (EUR) | 2 | "89.50" | "89.50" | 8950 | rateMinor is the ISO minor unit here |
| US dollar (USD) | 2 | 129.99 | "129.99" | 12999 | rateMinor is the ISO minor unit here |
| Indonesian rupiah (IDR) | 2 | 1850000 | "1850000.00" | 185000000 | rateMinor is the ISO minor unit here |
| Japanese yen (JPY) | 0 | 15000 | "15000" | 1500000 | rateMinor is hundredths, not the ISO minor unit: read rate |
| Kuwaiti dinar (KWD) | 3 | 45.75 | "46.000" | 4600 | KWD prices cannot be kept to three decimal places yet, so the price is kept as a whole amount. |
- CurrencyIndian rupee (INR)Decimals2You send"4500.50"You read: rate"4500.50"rateMinor450050NoterateMinor is the ISO minor unit here
- CurrencyEuro (EUR)Decimals2You send"89.50"You read: rate"89.50"rateMinor8950NoterateMinor is the ISO minor unit here
- CurrencyUS dollar (USD)Decimals2You send129.99You read: rate"129.99"rateMinor12999NoterateMinor is the ISO minor unit here
- CurrencyIndonesian rupiah (IDR)Decimals2You send1850000You read: rate"1850000.00"rateMinor185000000NoterateMinor is the ISO minor unit here
- CurrencyJapanese yen (JPY)Decimals0You send15000You read: rate"15000"rateMinor1500000NoterateMinor is hundredths, not the ISO minor unit: read rate
- CurrencyKuwaiti dinar (KWD)Decimals3You send45.75You read: rate"46.000"rateMinor4600NoteKWD prices cannot be kept to three decimal places yet, so the price is kept as a whole amount.
In the notes, "the ISO minor unit" is the minor unit that ISO 4217 names for that currency.
What is rounded, and how the answer tells you
ZimmerStack keeps what you send exactly, with the currency's own decimals. 4500.50 rupees is saved and returned as 4500.50. 89.50 euros is saved and returned as 89.50. Nothing is rounded without a word to you.
Here a price is sent with three decimals. The rupee has only two.
{
"updates": [
{
"ratePlanId": 901,
"dateFrom": "2026-12-24",
"dateTo": "2026-12-26",
"rate": 4500.505,
"currency": "INR"
}
]
}{
"batchId": "7f1d2c4e-5a6b-4c8d-9e0f-112233445566",
"acceptedCells": 3,
"rounded": [
{
"field": "updates[0].rate",
"sent": "4500.505",
"kept": "4500.51",
"reason": "INR prices carry 2 decimal places, so the price is rounded to them."
}
],
"roundedCount": 1
}- Kept exactly
- A price with no more decimals than the currency has. 4500.50 rupees stays 4500.50. It is not rounded to the whole rupee.
- Rounded, and you are told
- A number with more decimals than the currency has. A price worked out without tax often looks like that. Also a price with a fraction, in a currency that has no decimals, like yen or dong. This is true for a number and for text. The price is rounded with the usual rule, . The list
roundedin the answer names the field, what you sent, what was kept, and why. - A currency with three decimals
- The Gulf dinars have three decimals. For now such a price is kept as a whole amount, and the answer tells you.
- Refused
- Something that is not an amount:
"4,500.50", a negative number, words. Also text with more than two digits after the point, like"4500.505": send it as a number instead. The answer is400 VALIDATION, and nothing is saved. - Where rounded appears
- In the answer of
PUT /rates, ofPUT /catalog/rate-plansand of a channel modifier. OnPUT /ratesa long list is cut short, androundedCountsays how many there were in all.roundedis not in the answer when every price was kept as sent. - Show it
- Show the rounded list to the person who saved. A price that is one cent wrong, with no word about it, is found by the hotel a month later.
A rate can be from 1 to 21,474,836, in any currency. Two other amounts have a limit: the of a rate plan, and a fixed step of a . For a hotel that sells in rupees, their limit is 1,000,000. For every other currency it is 21,474,836.
Money on a booking
A has amounts too: amounts.total, amounts.paid, and ratePerNight on each room. They are numbers in major units of amounts.currency.
- An can send a booking in another currency than the hotel's. ZimmerStack converts nothing. Then
amounts.receivedCurrencynames the currency the amounts are in. This field is not there on any other booking. - A booking can also have a part named
taxes. It carries the hotel's own tax lines, after the taxes of that booking are worked out. - What the money on an OTA booking means is on the Webhooks page: who collected it, the commission, and what reaches the hotel. See The money on an OTA booking.
Taxes on a booking you create
This part is for a hotel that runs the ZimmerStack and creates bookings with POST /bookings: Create a booking.
- Who gets tax lines
- A hotel outside India that has confirmed its own tax lines. A tax line is one tax, shown on its own line of the bill.
- The field
POST /bookingsreadsnightlyRateIncludesTaxes. It istrueif you leave it out.- true
- The rate is what the guest paid online. ZimmerStack splits it into the tax lines, and totalAmount does not change. One exception: a tax the hotel collects at the hotel itself, like a city tax for each person and night. That tax is added, and the guest pays it at the hotel.
- false
- The rate is the price the hotel sells at its front desk. Taxes the hotel adds on top are added. Taxes the hotel keeps inside its prices stay inside.
- In the answer
- The answer of a booking carries taxes. Always read totalAmount from the answer.
- A hotel in India, or with no confirmed tax lines
- The answer has no taxes part. Sending false is refused with TAXES_NOT_CONFIGURED.
- A hotel whose taxes are all inside its prices
- Sending false is refused with TAXES_INSIDE_RATES.
With the Node package: no arithmetic on fractions
The Node package has small helper functions for money. They work on the same price texts, with whole numbers underneath, so nothing is lost in a fraction. They take decimals from the API's answer.
import { addAmounts, amountFromHundredths, amountFromMinorUnits, amountToMinorUnits, formatAmount, multiplyAmount, toAmount } from "@zimmerstack/connect";
const { currency, decimals } = await zs.property.get(); // "EUR", 2 · "JPY", 0
toAmount(89.5, decimals); // "89.50" the shape the API reads and writes
multiplyAmount("89.50", 3, decimals); // "268.50" three nights, exact
addAmounts("0.10", "0.20", decimals); // "0.30" not 0.30000000000000004
// Your own books store whole cents (or whole yen)? Convert at the edge, never by hand.
amountFromMinorUnits(8950, decimals); // "89.50"
amountToMinorUnits("89.50", decimals); // 8950
// An API field whose name ends in Minor is hundredths in EVERY currency.
amountFromHundredths(1500000, 0); // "15000" 15,000 yen, not 1,500,000
formatAmount("89.50", { currency, decimals, locale: "pt-PT" }); // "89,50 €" for a person to readWhat the hotel's own screens do
A hotel can choose that prices typed by its own staff, on ZimmerStack's screens, are kept as whole amounts. That choice is only about what people type there. It never changes a price your software sends. So a hotel whose staff see whole rupees can still hold 4,500.50 on a night your software priced.
Words on this page
- Currency
- The money a hotel sells in, like INR for rupees or USD for dollars.
- Major unit
- The main unit of a currency: the rupee, the euro, the yen.
- Minor unit
- The small unit of a currency: the paisa, the cent.
- Decimals
- How many digits a price has after the point. Rupees and euros have 2. Yen have 0.
- ISO 4217
- The world's standard list of currencies. Each one has a three-letter code, like INR or EUR.
- Round half up
- The usual way to round a number. 4500.505 becomes 4500.51, and 4500.504 becomes 4500.50.
- Standing price
- The normal price of a rate plan: its defaultRate. Every date starts with it. A rate plan the hotel made in ZimmerStack can use the base rate of its room type instead.
- Channel modifier
- A rule on one OTA. It raises or lowers every price that goes to that OTA, like 10% higher. You still send one price.
- Booking
- A guest has reserved a room for some nights. Also called a reservation.
- 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.
- Front desk
- The reception of a hotel, where guests arrive and leave.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Sat, 05 Dec 2026 01:08:31 UTC.