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.
€0/month + 2.6% pay-as-you-go · fixed plans from €199/month · cancel monthly
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.
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
€73.61
The total lands in one tier, and every unit pays that tier's rate.
18,402 × €0.004
- STAIRCASE This example
€33.61
Each band is billed at its own rate. Early units keep their price.
10,000 × €0 + 8,402 × €0.004
- PACKAGE
€36.00
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
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.
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.
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"}
- 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.
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.
-
Invoice
Net, VAT and gross from the tier walk, never retyped.
Invoice RE-2026-0418: Net €33.61, VAT 19% €6.39, Gross €40.00. Issued. -
XRechnung
Validated against the EN 16931 Schematron before it is sent.
XRechnung UBL: BT-109 33.61, BT-110 6.39, BT-112 40.00. Valid. -
SEPA debit
Via GoCardless, Mollie or a pain.008 file for your own bank. Cards run through Stripe.
SEPA debit CORE: Mandate KTR-00217, Amount €40.00, File pain.008. In collection run. -
DATEV
SKR03 or SKR04 with BU keys, for your tax advisor.
DATEV Buchungsstapel: Amount 40.00 S, Account 1400 / 8400, Doc RE-2026-0418. Exported.
Sample data
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.
€0/month + 2.6%Pay-as-you-go, net plus VAT
- €0 base fee (+ 2.6% on revenue)
- Fixed plans from €199/month
- No setup fee
- Cancel monthly