What Are Metering and Rating?
These two terms get used interchangeably. They shouldn’t be. They describe distinct operations in a billing pipeline, and conflating them leads to gaps that cost you money.
Metering
Metering is the capture, normalization and aggregation of raw usage events. A usage event is any discrete, measurable action that is billable: an API call, a token processed, a GB stored, a device ping. The metering layer collects these events, validates them (removing duplicates, flagging anomalies) and aggregates them into countable units before pricing rules are applied. No rating can happen without it.
Rating
Rating is the application of pricing rules to aggregated usage to produce billable line items. The rating engine takes metered quantities and runs them through the configured rate plan (flat per-unit, tiered, volume, staircase, overage, formula-based) to produce the charge for each customer. The rating engine doesn’t care where the data came from. It cares whether the data is accurate and complete.
Mediation
Mediation is the intermediate layer between raw event sources and the rating engine. It collects events from disparate sources: REST APIs, event streams, webhooks, SFTP, CDR files. It normalizes them into a consistent format, deduplicates, validates and routes them to the rating engine. In telecom, mediation is a mature, well-understood function. In SaaS, most companies either skip it, underinvest or add later when things break.
A few terms you’ll see used interchangeably across the industry: metered billing, consumption-based pricing, pay-as-you-go, pay-per-use and usage-based billing all refer to pricing models built on metering and rating. “Metered billing” is the dominant term in telecom; “consumption-based pricing” is common in enterprise SaaS; “pay-as-you-go” is the AWS popularization of the same idea.
See also: What Is Billing Mediation? | Usage-Based Billing: The Definitive Guide
Why This Is Harder Than It Looks
Most metering problems aren’t discovered when they happen. They’re discovered three months later when a customer disputes an invoice and you can’t show your work. By then, you’ve either undercharged someone for a quarter or you’re about to lose a customer over a billing fight you can’t win.
The silent failure problem: metering errors don’t announce themselves. A 2–3% event loss rate at scale is invisible until a customer disputes an invoice or an audit surfaces the discrepancy. By then you’re explaining quarters of under-billed revenue or defending overcharges you can’t reconstruct.
The compounding math is humbling. At 10 million events per day, a 2% deduplication error rate is 200,000 wrong events. At $0.002 per event, that’s $400 of daily revenue leakage, or $146,000 per year, from a single error type in a single pipeline. And that’s a small operation.
There’s also a financial reporting dimension most teams overlook. Under ASC 606, you need to recognize variable usage revenue accurately and defend it to auditors. If your metering data can’t be traced from raw event to invoice line, that’s not just an operational problem. It’s a financial reporting risk. See how metering connects to revenue recognition.
Most metering systems work fine at low volume. The failure modes emerge at scale: high-frequency events, concurrent ingestion from multiple sources, burst traffic that exceeds aggregation window capacity. The time to find out your metering system has a ceiling isn’t when you’re crossing it.
How Metering Works
Metering is a data pipeline. It has distinct stages, and each one is a potential failure point. Here’s what happens between a billable event occurring in your system and a metered quantity arriving at your rating engine.
Event Ingestion
Usage events arrive from multiple sources simultaneously: application of APIs, infrastructure logs, IoT sensors, CDR files from telecom systems. The ingestion layer must handle multiple protocols (REST, webhooks, SFTP, streaming) and receive events that may arrive out of order, late or in bursts. A backpressure event or a short network outage can’t mean dropped events.
Normalization
Raw events arrive in different schemas from different systems. Normalization transforms them into a consistent internal format: customer ID, timestamp, metric type, quantity and any relevant metadata. Bad normalization is one of the most common sources of downstream billing errors. It’s also one of the hardest to detect after the fact, because the data looks valid even when it’s wrong.
Deduplication
Network retries, system restarts and integration bugs produce duplicate events. Any production metering system must identify and suppress duplicates using idempotency keys or event fingerprinting, without discarding legitimate events that happen to look similar. Getting this wrong in either direction costs you: duplicates inflate charges, and over-aggressive deduplication drops real usage.
Aggregation and Windowing
Raw events must be accumulated into billing periods. The aggregation logic (sum, count, peak, average, percentile) must exactly match the terms of each customer contract. An aggregation window misconfiguration is silent and expensive. The rate plan says “monthly peak.” The system calculates “rolling 30-day average.” Those are different numbers, and the discrepancy is contractually wrong.
Real-Time vs. Batch
Real-time metering processes events as they arrive, providing immediate usage visibility. Batch metering processes events on a schedule: hourly, daily or monthly. Most enterprise platforms need both: real-time for customer-facing usage dashboards and batch for high-volume historical processing. Choosing one or the other is usually a sign of a platform that wasn’t built for scale.
See also: What Is Billing Mediation? | Event Deduplication in Billing | Mediation Solution Overview
How Rating Works
Once metered usage reaches the rating engine, the engine applies the rate plan configured for each customer’s contract and produces billable line items. Simple in concept. The complexity is in the pricing model variants your engine must support, and whether it can handle the edge cases in each.
Flat Rate Per Unit
Fixed price per unit regardless of volume. $0.0001 per API call, times however many calls. Easy to explain, easy to invoice. The limitation is structural: your highest-volume customer gets the same unit economics as your smallest one. That eventually becomes a conversation about custom discounts, which your billing system then has to handle as a one-off.
Tiered Pricing
Unit price changes at defined volume thresholds. 0–1M tokens at $0.002; 1M+ at $0.0015. The customer pays the tier-1 rate for the first million events and tier-2 for everything above. Straightforward to explain; more complex to configure without errors.
Volume Pricing
All units billed at the rate of the highest tier reached. Reaching 500GB triggers $0.03/GB for all 500GB — not just the last units. That retroactive pricing is what catches customers off guard at tier boundaries, especially if the contract doesn’t spell it out explicitly before they sign.
Staircase / High-Water Mark
The highest usage in the period sets the rate for the whole period. Hit 51 seats on day 12 and you’re billed at the 51+ rate for the full month, even if you dropped back to 40 by day 20. It’s common in seat-based and capacity-based models, and it generates disputes when customers don’t understand why a brief spike changed their monthly bill. Your metering system needs to correctly identify the actual peak across the full billing window, not just a snapshot at close.
Overage / Burst
Base subscription plus charges above a usage cap. $500/month includes 10M tokens; $0.0002 for each token above that. Hybrid models combining a subscription base with usage overage are now the norm in enterprise SaaS. They require a rating engine that can handle both in a single invoice line without manual reconciliation.
Formula-Based Pricing
Price computed from a custom multi-variable formula: (calls × rate) × (1 − volume_discount) + base_fee. Most rating engines support the first five models through configuration. Formula-based rating (where the price is the output of a custom expression involving multiple variables) requires a more flexible engine and is where many platforms hit a wall.
This is particularly relevant for AI/LLM pricing: (input_tokens × rate_in) + (output_tokens × rate_out). Or telecom: per_minute + connection_fee + jurisdiction_surcharge. Or IoT: device_count × tier + per_event × frequency_factor. If your pricing has ever required a custom engineering sprint, you’re working around a rating engine that can’t do what your contracts require.
See also: How Rating Engines Work: A Technical Guide | Formula-Based Pricing Guide
Where It Goes Wrong: Failure Modes
Every one of these failure modes is real. The common thread is that none of them announce themselves. You find out when a customer complains, or when an auditor asks a question you can’t answer.
Event Loss
Events dropped during ingestion, usually caused by network timeouts, buffer overflow under burst load or integration failures. At scale, even a 0.1% loss rate is material. The problem: dropped events leave no error log. You don’t know they’re missing. You’re just quietly under-billing.
Duplicate Events
Retried API calls and network instability produce duplicate events that inflate usage counts. Without idempotency enforcement, duplicates get rated as legitimate events and generate overcharges. The customer will find them before you do. And when a customer finds a billing error in their favor, they stop trusting every invoice.
Aggregation Window Errors
The rate plan says “monthly peak.” The system calculates “rolling 30-day average.” Those are different numbers, and the discrepancy is contractually wrong. This type of error is invisible until a customer checks their contract against their invoice. At that point you’re having a very difficult conversation with legal on the call.
Late-Arriving Events
Events from distributed systems sometimes arrive hours or days after they occurred. If your rating engine closes the billing period before all events are in, you’re issuing inaccurate invoices. Re-rating and reissuing creates customer-facing confusion and internal rework. The fix is configurable grace periods and retroactive rating — not pretending the problem doesn’t exist.
Contract Amendment Handling
When a customer’s rate plan changes mid-period, the rating engine must apply the old rate to pre-amendment usage and the new rate to post-amendment usage. Many platforms re-rate the entire period at the new rate. That’s both contractually wrong and creates retroactive billing surprises. This tends to surface during enterprise renewals, which is not the moment you want to explain a systematic billing error.
RevRec Exposure
Inaccurate metering data flows directly into revenue recognition. If event timestamps are unreliable or aggregation logic doesn’t match contract terms, your recognized revenue figures are wrong. Your auditors will want to know why. This isn’t a billing team problem anymore. It’s a financial statements problem.
See also: What Causes Revenue Leakage — and How to Stop It | Event Deduplication in Billing
Key Metering and Rating Platform Requirements
If you’re evaluating a metering and rating platform, these ten requirements are your baseline. A platform that can’t demonstrate all ten in a live environment (not a sales slide) has gaps you’ll discover later, in production, at cost.
- High-volume event ingestion. Native mediation supporting REST APIs, webhooks, SFTP, event streams and CDRs — without requiring a third-party mediation vendor.
- Idempotency and deduplication. Built-in event fingerprinting and idempotency key enforcement to prevent duplicate billing at any ingestion volume.
- Flexible aggregation logic. The function that converts raw events into a billable quantity must match each customer’s contract exactly (sum, count, peak, average, percentile) and it must be configurable per customer without opening an engineering ticket.
- All pricing model variants. Flat-rate, tiered, volume, staircase, overage and formula-based pricing, all configurable via point-and-click UI.
- Formula-based rating engine. Most platforms handle flat-rate and tiered pricing. What separates them is whether custom multi-variable pricing formulas are configurable without writing code. If pricing a new contract requires an engineering sprint, the engine isn’t doing its job.
- Real-time usage visibility. Customers should see rated usage within minutes of it occurring, not the next day. That means near-real-time data in the portal, accessible via API, with threshold alerts they can configure themselves.
- Late event handling. Events arrive late. The question is whether the platform handles that gracefully or requires manual intervention. Look for configurable grace periods, retroactive rating for late-arriving events and a full audit trail showing which records were reprocessed and why.
- Mid-period amendment support. Automated proration and split-period rating when contract terms change mid-billing period.
- Automated revenue recognition. Built-in ASC 606 / IFRS 15 — not a separate module. Metering data should flow directly to revenue recognition without manual intervention.
- Enterprise scalability and audit trail. Proven throughput at peak load; get a benchmark, not a marketing claim. SOC 2 Type II. Immutable, timestamped audit logs traceable from raw event to invoice line.
See also: Mediation Solution Overview | How Rating Engines Work | How to Evaluate a Metering & Rating Platform
Industry Use Cases for Metering and Rating
Metering and rating show up in more verticals than most people expect. The patterns differ, but the underlying data integrity requirements are the same.
AI / LLM Companies
Input tokens, output tokens, model version, batch vs. real-time. Millions of micro-transactions per hour with model-specific rate variations and input/output pricing asymmetry. AI companies are dealing with metering problems at a scale and speed that most legacy billing systems weren’t built for.
SaaS / Cloud
API calls, compute hours, active seats, storage GB, often combined on a single invoice. Hybrid seat + usage billing is now the norm. Mid-period plan changes and accurate ASC 606 treatment of variable revenue add complexity that flat-rate systems can’t handle. Mural and Kipu Health both operate on this model.
Telecom / UCaaS
Minutes, messages, data GB, connection events, at carrier-grade volumes with CDR mediation. Jurisdiction-based surcharges and late CDR handling require purpose-built mediation infrastructure. net2phone operates on this model.
Cloud Infrastructure
Compute hours, bandwidth, storage, IOPS across multiple regions. Multi-region usage aggregation, burst metering and real-time capacity tracking are baseline requirements. Otava operates in this space.
IoT / Connected Devices
Device events, sensor reads, data transmissions from thousands of concurrent endpoints, often at micro-transaction frequency. High-volume deduplication and configurable aggregation are non-negotiable at IoT scale.
Transportation / Logistics
Miles, weight, route segments, fuel surcharges. Formula-based multi-variable rate plans are the norm here: per-shipment vs. per-route pricing with variable input costs. Sydney Airport runs on this model.
See also: Metering & Rating for AI Companies | AI Monetization Solution
How Metering & Rating Connect to UBB and RevRec
Metering and rating don’t exist in isolation. They sit in the middle of a four-layer system. Understanding that system is what separates practitioners who build durable billing infrastructure from those who keep patching the same breaks.
System Layer: Enterprise Billing Automation
The end-to-end order-to-cash system, covering contract capture through invoicing, collections and ERP posting. Metering and rating is one of six core components within it. See the Enterprise Billing Automation Guide for the complete system view.
Commercial Layer: Usage-Based Billing
The decision to charge customers based on usage: the pricing model, the commercial structure, the go-to-market motion. It’s the why behind metering. See the Usage-Based Billing Definitive Guide for the commercial model considerations upstream of metering.
Operational Layer: Metering & Rating
The infrastructure that captures what customers actually used, applies pricing rules and produces billable line items. This is what this guide covers.
Accounting Layer: Revenue Recognition
The downstream process that recognizes billed revenue accurately under ASC 606 / IFRS 15, which depends entirely on the accuracy and traceability of the metering layer. See Revenue Recognition Automation for what happens downstream of metering.
A failure in the metering layer does not stay in the metering layer. It propagates into billing disputes, revenue recognition errors and audit exposure. These four layers are not independent. They are a system. Every layer depends on the one below it doing its job correctly.
How to Evaluate a Metering & Rating Solution
This is a long-term infrastructure decision. Switching billing platforms mid-growth is painful in ways that don’t show up in a vendor scorecard. Evaluate hard now.
- Native vs. acquired mediation. Every platform will claim to do mediation. The question is whether it’s built into the core data model or bolted on via an acquisition or third-party integration. That distinction shows up in incident response: a native architecture means one vendor owns the problem. A bolted-on mediation layer means you’ll be on a three-way call when something breaks at 2am.
- Pricing model coverage. Does the platform natively support all major pricing variants, including formula-based pricing, or does complex pricing require custom engineering?
- Idempotency and deduplication specifics. Don’t accept “we handle duplicates” as an answer. Ask what the idempotency mechanism actually is, what the lookback window covers and how the platform distinguishes a true duplicate from a legitimate repeated event. Vague answers here usually mean a shallow implementation.
- Audit trail completeness. Can you trace any invoice line item back to the raw event that generated it? Get a live demo of this — not a slide.
- Late event and amendment handling. How does the platform rate events that arrive after the billing period closes? How does it handle mid-period contract changes?
- Real-time vs. batch trade-offs. Most vendors will say they support real-time usage visibility. Push on what that actually means: at what latency does rated usage appear in the portal? What happens to that latency when event volume spikes? A platform that’s real-time at 100 events per second but falls back to hourly batches at 10,000 isn’t solving the problem for high-volume customers.
- Scalability benchmarks. Get specific rated transaction volume numbers at peak load — not marketing language. Ask for Gartner or analyst benchmark references.
Questions to ask every vendor before you commit
- Show me, live today, how you handle a duplicate event arriving 48 hours after the original.
- How does your system rate usage when a customer’s contract changes on the 15th of the month?
- Walk me through a billing dispute — how do I trace an invoice line back to the raw event?
- What is your rated transaction volume at peak load? Show me a benchmark, not a marketing claim.
- Is mediation native to your platform, or is it a separate product or integration?
- How does your rating engine handle formula-based pricing without custom code?
See also: How to Evaluate a Metering & Rating Platform | How Rating Engines Work
How BillingPlatform Handles Metering & Rating
BillingPlatform is an enterprise revenue lifecycle platform built from the ground up to handle metering and rating at scale, from carrier-grade CDR volumes in telecom to billions of AI token transactions per month. Ranked #1 for the Complex Usage Billing use case in the 2025 Gartner Critical Capabilities for Recurring Billing Applications (score: 4.2 out of 5.0) and recognized as a Leader in the Forrester Wave: SaaS Recurring Billing Solutions Q1 2025, BillingPlatform’s mediation and rating engine has been a native part of the core platform since inception — not an acquired add-on.
Native Mediation Engine
Ingests events via REST APIs, webhooks, SFTP, event streams and CDRs. No third-party mediation vendor required. Mediation Solution
Formula-Based Rating with No-Code Configuration
Custom multi-variable pricing formulas configurable via visual interface — no engineering required. Usage-Based Billing Solution
All Six Pricing Model Variants in a Single Contract
Flat-rate, tiered, volume, staircase, overage and formula-based pricing, all configurable together in a single customer contract. Usage-Based Billing Solution
Real-Time Rated Usage with Customer Portal
Near-real-time usage visibility accessible by customers with configurable threshold alerts. Customer Portal
Built-In ASC 606 / IFRS 15 Revenue Recognition
Not a separate module. Metering data flows directly to revenue recognition without manual intervention. Revenue Recognition Solution
Immutable Audit Trail from Event to Invoice
Every invoice line traceable back to the raw event that generated it. SOC 2 Type II. Enterprise Scalability
Hyperscale Transaction Processing
Rated 1 million events in approximately 8 minutes in live Gartner demonstrations. Built for the volumes that break other systems. Enterprise Scalability
Competitive Landscape
Several platforms address metering and rating at different points of the market, including Zuora, Stripe/Metronome, M3ter and Chargebee. BillingPlatform is purpose-built for enterprises that need to handle metering at hyperscale, support formula-based and hybrid pricing models and connect metering data directly to revenue recognition, without separate modules or additional vendors.
For detailed side-by-side comparisons: Zuora Alternative | Stripe Billing Alternative
Analyst Recognition
BillingPlatform #1 for the Complex Usage Billing use case in the Gartner Critical Capabilities for Recurring Billing Applications, the most granular capability assessment Gartner publishes in this category. The score of 4.2 out of 5.0 was the highest awarded in that use case.
BillingPlatform is named a Leader in the Forrester Wave: SaaS Recurring Billing Solutions, Q1 2025, recognized for its flexibility in handling complex pricing models and its low-code configurability across multiple enterprise verticals.
BillingPlatform received the highest overall rating (#1) in the MGI 360 Ratings Report for Agile Billing, evaluated across product functionality, customer success and company viability.
Frequently Asked Questions
What is metering in billing?
Metering is the capture, normalization and aggregation of raw usage events from every system that generates them: API calls, tokens processed, compute hours, gigabytes stored. It is the step before rating: metering produces the quantity; rating applies the price to produce the charge. Also called metered billing or consumption-based billing.
What is a rating engine?
A rating engine is the component of a billing platform that applies pricing rules to metered usage data to produce billable charges. It takes a metered quantity and applies the configured rate plan (flat, tiered, volume, staircase or formula-based) to produce the dollar amount on the invoice. Formula-based engines are significantly more flexible than simple tier-lookup tables.
What is billing mediation?
Billing mediation is the layer between raw event sources and the rating engine. In practice, it’s the component that makes sense of messy real-world data: events arriving from different systems in different formats, out of order, sometimes twice. It normalizes all of that into a consistent structure, removes duplicates and validates the data before the rating engine ever sees it. The function is well understood in telecom, where CDR mediation has been a defined discipline for decades. In SaaS, it’s typically the layer that gets underbuilt — because it seems optional until you’re at a scale where 1% event loss is material.
What causes revenue leakage in metered billing?
The primary causes are event loss during ingestion (dropped events leave no error log), duplicate events that inflate usage counts without idempotency enforcement, aggregation window misconfiguration (the system calculates a different metric than the contract specifies) and late-arriving events that miss the billing period cutoff. Without a complete mediation layer, 1–3% leakage rates are common, often undiscovered until a customer dispute or audit.
How does a rating engine work?
The rating engine receives aggregated metered usage, looks up the customer’s configured rate plan and computes charges. For a flat-rate model, that’s a multiplication. Tiered models require the engine to split usage at each threshold and apply different unit prices to each band. Formula-based models are more involved: the engine evaluates a custom expression, sometimes with multiple input variables, to produce a single charge. In all cases, the output is billable line items — one per charge component — that feed the invoice.
What is the difference between metering and billing?
These are three distinct functions that often get used interchangeably (but shouldn’t be):
Metering is what was used: the capture and aggregation of raw usage events.
Rating is what it costs: the application of pricing rules to metered quantities to produce charges.
Billing is the invoice: the document sent to the customer based on rated charges. All three must work correctly for revenue to be accurate.
How does BillingPlatform handle metering and rating?
BillingPlatform is an enterprise revenue lifecycle platform with native mediation built into the core platform since inception. It supports all major pricing model variants, including formula-based rating configurable without code, and provides an immutable audit trail from raw event to invoice line. Ranked #1 for Complex Usage Billing in the 2025 Gartner Critical Capabilities for Recurring Billing Applications with a score of 4.2 out of 5.0.
What is formula-based pricing?
Formula-based pricing is a model where the charge is the output of a custom multi-variable expression rather than a simple tier lookup.
For example: (input_tokens × rate_in) + (output_tokens × rate_out) for AI/LLM billing, or per_minute_rate + connection_fee + jurisdiction_surcharge for telecom.
Required whenever the pricing contract has more than one variable affecting the final charge.
How does metering affect revenue recognition?
Directly. Under ASC 606, variable usage revenue must be recognized based on what was actually consumed in the period, which means your recognized revenue is only as accurate as your metering data. If event timestamps are unreliable, aggregation logic doesn’t match contract terms or the audit trail is incomplete, you can’t defend your revenue recognition position. Metering errors don’t stay in the billing layer.
What industries use metering and rating?
Any industry with variable usage-based pricing: AI/LLM companies (token billing), B2B SaaS and cloud platforms (API calls, compute hours, seats), telecom and UCaaS (minutes, messages, CDRs), cloud infrastructure providers (bandwidth, storage, IOPS), IoT and connected device platforms (sensor events, device pings) and transportation and logistics (miles, route segments, fuel surcharges).
Request a Demo
If you’re evaluating metering and rating platforms, request a demo to see BillingPlatform’s capabilities in the context of your specific contracts.
Request a DemoStart a Guided Tour
Prefer to explore on your own first? Start a guided tour of the platform.
Start a Tour