For SaaS and API companies
Usage-based billing you don't have to build.
Send events over the API. Kontier counts each one once, even when your client retries, applies tiers and included allowances, and issues the invoice with VAT, XRechnung and the DATEV export.
14 days free · from €199/month · card required to start
Example: usage events stream into the api_calls meter. One event is a retry with an idempotency key that was already used; Kontier answers 409 and does not count it. The meter reaches 18,402 calls, 10,000 of them included. The invoice line reads €33.61 net, €6.39 VAT at 19 percent, €40.00 gross, and is booked. Sample data.
The arithmetic
Every cent on the invoice, traceable.
Tiers are configuration, not code in your app. Here is the walk for 18,402 API calls: the first 10,000 are included, the next 8,402 cost €0.004 each. When a customer asks why, GET /v1/usage-events/aggregate returns the same quantity the invoice used.
The first tier costs €0: 10,000 calls are free in every period.
8,402 × €0.004 = €33.608, rounded to €33.61 on the line.
VAT is decided per line: 19% for a customer in Germany, reverse charge for a business in another EU country.
Same 18,402 calls, three models Sample data
Net, before VAT. The model sits on the product, so two prices on one product are always read the same way.
- VOLUME
The total lands in one tier, and every unit pays that tier's rate.
18,402 × €0.004 €73.61 - STAIRCASE This example
Each band is billed at its own rate. Early units keep their price.
10,000 × €0 + 8,402 × €0.004 €33.61 - PACKAGE
Rounds up to whole packs. Here packs of 1,000 at €4.00 for the 8,402 calls above the free tier.
⌈8,402 ÷ 1,000⌉ = 9 × €4.00 €36.00
Idempotency
A retry is never billed twice.
A timeout doesn't tell your client whether the event arrived, so it sends it again. A webhook is delivered twice, a queue replays a batch after a crash. Every event carries an idempotency_key: Kontier records the first and answers the repeat with 409. The meter stays at 18,402.
- 14:02:11.204 POST /v1/usage-events idempotency_key req-2026-10-14-8f3a1b quantity "860" 201 recorded Client sees: timeout
- 14:02:13.391 POST /v1/usage-events idempotency_key req-2026-10-14-8f3a1b quantity "860" 409 key already used Retry, not counted
- Counted
- 2 × 18,402 = 36,804
- Billed net
- €107.22
- Then
- Credit note, re-issued invoice
- Counted
- 18,402
- Billed net
- €33.61
- Repeat
- 409, nothing to correct
Make the key deterministic from what you record, for example {subscription}-{metric}-{window}. A random key per attempt defeats the check.
Hybrid pricing
Base fee, seats and usage on one invoice.
Most usage businesses sell a platform fee plus consumption. Kontier prices each product with its own model and writes one invoice. The API line is the same €33.61 as above.
Flat fee and seats: the quantity is declared, not metered.
Usage lines read a meter and are billed in arrears, at the end of the period.
Metered line
Storage uses LAST: 40 GB held all month is 40 GB, not 1,240 GB-days.
Metering
A meter is four fields, not a cron job.
Name the events, choose how they combine, decide what happens to late arrivals. Bind the meter to a product and it bills. Until then events are recorded and bill nothing.
Read the metering docs{ "key": "api-calls", "name": "API calls", "metric_key": "api_calls", "function": "SUM", "late_event_policy": "DROP"}
Aggregation
- SUM
- API calls, GB transferred
- COUNT
- Events, ignoring quantity
- UNIQUE_COUNT
- Active users, distinct devices
- LAST
- Gauges: seats in use, storage held
- MAX · MIN
- Largest or smallest single value
- AVG
- Mean across events
- P95
- Bandwidth billed on burst
Late events
- DROP
- Ignored. The conservative default
- CLAMP_TO_PERIOD
- Counted in the open period
- REBILL_PRIOR
- Reopens and re-bills the earlier period
Ingest responses
- 201
- Recorded
- 202
- Queued: settles a wallet hold
- 409
- idempotency_key already used
- 413
- Batch over 1,000 events
- 429
- Rate limited, retry later
Up to 1,000 events per call. quantity is a string, never negative.
After the meter
From the quantity to the books.
A meter alone gives you a number. The €40.00 still has to become an invoice, an e-invoice your customer's software accepts, a collected payment and a booking your tax advisor can import. Kontier runs all four on the same record.
The same €40.00 moves through four steps: invoice RE-2026-0418 is issued, the XRechnung carries BT-109 33.61, BT-110 6.39 and BT-112 40.00 and is validated, the SEPA debit enters the collection run, and the DATEV batch row books 40.00 debit on account 1400 against 8400. Sample data.
Guides
Articles on this topic
- Volume vs. Graduated Tiers: SaaS Tiered Pricing, Worked ThroughOne price table, two invoice totals: volume and graduated tiers worked through, with the boundary cliff, the counting scope and the rounding rule.
- Overage Billing: Included Quotas, Excess Usage and Plan ChangesA plan with 5,000 included documents, worked through: what happens to the allowance on a mid-month upgrade and when the overage gets invoiced.
- Seat-Based Billing: Proration, True-ups and Seat Removals in Numbers20 seats added on 16 April, 10 removed in May, 30 more on an annual contract: three seat cases worked through, with the rules your contract should state.
- Product catalogue versioning: plan versions, snapshots, grandfatheringWhy a plan shouldn't just have a price: plan versions, sales and contract periods, pricing snapshots on the invoice line, and meter versions.
- SaaS Price Changes Without a Deploy: Versions, Grandfathering, DatesFrom €99 to €119 per seat: what a new price means for monthly customers, annual contracts, grandfathered accounts and open quotes, and what breaks on the day.
- Idempotent usage events: keys, dedupe windows and late arrivalsWhat a usage event's idempotency key should be made of, how long to keep it, and what to do with events that arrive after the billing period has closed.
- Evaluating usage-based billing software: a seven-test scorecardA scorecard for usage-based billing: idempotency, late events, pricing models, traceability and EU tax, tested on your own data rather than vendor slides.
Send the first event. Kontier does the arithmetic.
Meter, tiers, VAT, XRechnung, collection and the DATEV export run in one system, not six.
from €199/monthStarter, net plus VAT
- From €199/month net
- 14 days free
- Card required to start
- No setup fee
- Cancel monthly