API Usage Metering Tools for Customer Billing

Select a meter by whether it can reproduce the charge, not by the chart it draws. Record the event id, customer id, counted dimension and timestamp before usage leaves the API. Choose what happens when clocks drift or a tenant is reassigned.

Options and acceptance tests

OptionDocumented scopeProve before buying
MoesifUsage-based billing and API metering documentationCheck whether your full customer identity survives association between the observed request and billing customer.
OpenMeterEvent ingestion and usage meteringReplay duplicates with the same event identity and inspect aggregation across the correct subject.
LagoMetered billing with usage events and chargesPreview a charge containing a late correction and verify how it appears in invoice evidence.

Run this buying test

Send original, duplicate and late events for one tenant across a billing boundary. Compare raw event exports with meter totals and produce an invoice preview before and after a credit.

Get written terms on ingest volume, replay window and outbound data exports. Define which system decides if a failed API call qualifies for a billable event.

Turn metering into an invoice reconciliation test

Start with two tenants on the same plan, one of which upgrades in the middle of the period. Write down the event ids and quantities you expect to appear in each part of the invoice. Include one successful call whose client timed out and retried. The fact that the server did the work and the fact that the customer should pay for it are separate decisions. Agree on the latter with billing before configuring the meter.

For each candidate, pin the source export to the same time range and compare units by customer and event dimension. Run a second pass after refreshing the dashboard. If it cannot reproduce the first total, identify whether a late event, a rule change or a customer mapping changed. Require an audit route for reversing an invalid charge while preserving the original. A control sample of known zero-usage tenants makes misattribution easier to spot.

Choose Moesif when API observability is also part of the job, OpenMeter when emitting a dedicated usage event is the architecture you want, and assess Lago when the meter and billing workflow need to be evaluated together. Estimate operational labor for data-quality exceptions as well as ingestion cost. Ask how your team can reproduce the last invoice after the contract ends.

Research basis

This is a desk-researched guide based on the linked primary sources, reviewed on 20 November 2026. The acceptance tests are exercises to run with your own equipment or sample data.