Skip to main content

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.

Tier walk · STAIRCASESample data
Tier Rate Used Amount
0–10,000 included 10,000 / 10,000 €0.00
10,001–100,000 €0.004 8,402 / 90,000 €33.61
100,001+ €0.002 0 €0.00
Net€33.61
VAT · Germany · 19%€6.39
Gross€40.00
  1. The first tier costs €0: 10,000 calls are free in every period.

  2. 8,402 × €0.004 = €33.608, rounded to €33.61 on the line.

  3. 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.

Request logSample data
  1. 14:02:11.204 POST /v1/usage-events idempotency_key req-2026-10-14-8f3a1b quantity "860" 201 recorded Client sees: timeout
  2. 14:02:13.391 POST /v1/usage-events idempotency_key req-2026-10-14-8f3a1b quantity "860" 409 key already used Retry, not counted
api_calls · period total18,402
Without deduplication
Counted
2 × 18,402 = 36,804
Billed net
€107.22
Then
Credit note, re-issued invoice
With Kontier
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.

  1. Flat fee and seats: the quantity is declared, not metered.

  2. Usage lines read a meter and are billed in arrears, at the end of the period.

Invoice RE-2026-0419 Oct 2026Sample data
Item Model Qty Amount
Platform fee Flat fee 1 × €299.00 €299.00
Seats Per seat 12 × €19.00 €228.00
API calls SUM · STAIRCASE 18,402, 10,000 incl. €33.61
Storage LAST 40 GB × €0.10 €4.00
Net€564.61
VAT · 19%€107.28
Gross€671.89

Metered line

  1. 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
MeterSample data
{  "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

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

Book a demo

A technical demo: 15 minutes with an engineer on your pricing model and tax setup.

How we handle your details: privacy policy.

Prefer email? contact@frontieralgorithmics.com

Message Kontier

Write to us right here. We reply by email, usually within one business day.

How we handle your details: privacy policy.

Step 1 of 3

What do you bill with today?

Prefer email? contact@frontieralgorithmics.com