METERING ENGINE

Every Billable Moment.
Captured. Validated. Ready to Invoice.

Revenue leakage starts where metering stops. Missed events, duplicate charges, and unvalidated timestamps cost enterprise billing teams millions annually in write-offs and customer disputes.

Aforo captures every billable event from every source — gateways, SDKs, webhooks, REST, batch uploads — validates it against financial-grade rules, and delivers it to billing with full audit provenance. 100% accurate usage-based billing at enterprise scale.

LIVE EVENT AUDIT
INGESTING
TIMESTAMPSOURCEEVENTSTATUS
EVENTS TODAY
847,293
DUPLICATES CAUGHT
142
LEAKAGE PREVENTED
$4,208

Metering is the revenue foundation.
Get it wrong, and every invoice downstream is suspect.

Most metering systems count events. Aforo validates, enriches, and certifies them — giving your finance team the confidence to close the books without manual reconciliation.

Revenue Assurance

Every event passes through idempotency checks, timestamp validation, and schema enforcement before it reaches billing. Duplicate detection via configurable idempotency keys. Late arrivals flagged for reconciliation — never silently dropped, never double-counted. Your finance team can certify that every invoice traces back to a validated source event.

Financial Auditability

Full provenance chain from ingest to invoice. Every event carries its source, ingestion timestamp, validation result, enrichment context, and routing decision. Replay any billing period from raw events. SOC 2 and SOX-ready audit trails without building custom logging infrastructure.

Real-Time Cost vs. Revenue Mapping

Events are enriched with customer, subscription, and pricing context at ingest time — not at billing time. Know your cost-to-serve per customer, per product, per API endpoint in real time. Finance sees margin by cohort before the billing cycle closes. No more month-end surprises.

HOW IT WORKS

From source event to certified invoice in four stages

Every event carries full provenance. Every stage is auditable. No black boxes between your API traffic and your revenue.

Capture Usage Automatically

Five ingestion tiers — zero-code to full control

Gateway plugins intercept every API call at the network layer. SDK decorators instrument application code. REST endpoints accept custom payloads. Plugs receivers normalize third-party events. Batch uploads reconcile historical data. Pick the tier that fits your architecture — the pipeline treats every source identically.

Validate for Financial Integrity

Every event passes 4 validation gates

Timestamp validation rejects future events beyond 5-minute clock skew and events older than 90 days. Idempotency keys detect and reject duplicates. Schema validation ensures required fields exist. Late arrivals (>24 hours) are flagged for manual reconciliation — never silently dropped, never silently accepted.

Enrich and Map to Contracts

Billing context resolved at ingest time

Every validated event is enriched with the customer, subscription, rate plan, and pricing model it belongs to. Redis-cached entitlements (10-minute TTL) ensure sub-millisecond resolution. Events arrive at billing fully contextualized — no lookups required at invoice generation time.

Settle and Invoice

Deterministic handoff to billing pipeline

At period end, the billing engine consumes metered events already tagged with pricing context. Aggregation, rating, discounts, tax, and settlement happen in the 10-stage billing pipeline. Your team never touches the data between metering and invoice.

The metering infrastructure, in detail

Five ingestion methods. Four validation gates. One certified, auditable pipeline.

Five Ingestion Tiers

From zero-code gateway plugins to full REST API control. Choose based on your architecture, not our constraints.

Gateway
0 lines
Network-level
Middleware
1 line
App-level filter
SDK
5 lines
Decorator pattern
REST
~10 lines
Full control
Batch
Upload
Historical data

Financial Validation

Every event passes timestamp, idempotency, schema, and latency checks before reaching billing.

Timestamp within 5-min skewPASS
Idempotency key uniquePASS
Schema valid (7 required fields)PASS
Arrival >24h lateFLAGGED

Full Audit Provenance

Trace any invoice line item back to the raw source event. Every stage logged with timestamps.

Ingest<5msKong gateway → event captured
Validate+2msTimestamp OK, dedup OK, schema OK
Enrich+4msCustomer: Acme, Plan: Enterprise
Route+5ms→ billing.usage.events (Kafka)

Cost vs. Revenue in Real Time

See margin by customer and product before the billing cycle closes. Spot negative-margin accounts immediately.

CUSTOMEREVENTSREVCOSTMARGIN
Acme Corp124K$4,820$1,24074%
GlobalBank89K$12,600$2,14083%
DataSync312K$2,100$3,800-44%

Five Gateway Plugins

Kong, AWS, Apigee, Azure APIM, MuleSoft. Same validated pipeline regardless of gateway.

Kong
AWS API GW
Apigee
Azure APIM
MuleSoft

Built for teams that own revenue accuracy

Different roles, same outcome: every billable event accounted for.

VP of Finance

Revenue assurance and audit readiness

We write off 3-5% of usage revenue every quarter because metering gaps make it impossible to defend charges during customer disputes.

WHAT THEY GET

Full audit trail from source event to invoice line item

Idempotency guarantees eliminate double-billing disputes

Late-arrival reconciliation catches usage that would otherwise be written off

VP of Engineering

Instrument once, meter everything

Every new product launch requires a custom metering integration. Our billing team files 20+ engineering tickets per quarter for metering changes.

WHAT THEY GET

Gateway plugins require zero application code changes

SDK decorators instrument Python, Node.js, Java, Go in under 5 lines

New products inherit the same validated pipeline automatically

Head of Revenue Operations

Real-time visibility into cost-to-serve

We discover negative-margin customers 45 days after the fact, when the invoice has already been sent and the contract renewal is locked.

WHAT THEY GET

Cost vs. revenue mapping computed at ingest time, not month-end

Per-customer, per-product margin visible in real time

Alert when a customer crosses the negative-margin threshold

$0

Revenue leakage from metering gaps

<5msms

Ingest-to-validated latency

0%

Event-to-invoice traceability

Zero

Engineering tickets for new product metering

Your revenue deserves
financial-grade metering.

Stop writing off disputed charges. Stop building custom metering for every new product. Start with a pipeline that validates every billable event and traces it to the invoice.