
Usage-Based SaaS Billing With Stripe Meters and Entitlements
Usage-based SaaS billing on Stripe hinges on four pieces fitting together: Meters for events, Entitlements for access, overage pricing for the tail of consumption, and a nightly reconciliation job that catches dropped events before customers find them.
Stripe shipped the Entitlements API at Sessions 2024 for the second of those. Teams had been hand-rolling permission tables against billing plans and watching them drift, and the API swaps that for webhook-synced feature mappings.
Each piece has its own failure mode. The Meter Events endpoint loses revenue when timestamps fall outside the retention window. Entitlement webhooks arrive out of order.
Overage tiers that look linear in a spec can turn regressive at the edges. Reconciliation is what keeps the four aligned, and it is the part most teams skip until an auditor or a customer catches the miss.
The Meter Event Pipeline Has Three Choke Points
Stripe's Meter Events endpoint accepts a POST per unit of usage — a token, an API call, a seat-minute, a GPU-second. The three choke points worth designing around are throughput, timestamp window, and idempotency.
Stripe allows one concurrent call per customer per meter, which means you cannot shard a single customer's events across workers and expect speed; batching happens inside a single stream. The v2 meter event stream exists precisely for tenants that exceed the default rate, and the higher ceiling is gated behind sales contact rather than self-serve. Plan the client architecture around the tier your largest tenant will actually hit, not the mean.
Timestamps are bounded. Events outside the retention window are rejected outright; events late but inside the window may be accepted without landing on an already-finalized invoice, which looks the same from your side as a successful write. That is where leaked revenue hides. Idempotency keys should be derived from the usage event itself — customer, resource, hour — not from the HTTP retry wrapper, which re-inserts duplicates when a transient 500 bounces through a queue.
Entitlements Replace Homegrown Permissions
The old pattern was a plan_features table in your own database, updated by webhook listeners on customer.subscription.updated. It worked until it didn't: a webhook retry arrived out of order after a plan change, the local table went stale, and an enterprise customer found they could not export CSVs for a week. The same pattern is why multi-tenant SaaS isolation work so often ends up re-plumbing the billing-to-features seam at the same time.
Stripe's Entitlements API maps Features to Products on the billing side; your application reads the active entitlements for a customer and gates behavior accordingly. Price changes and plan swaps update entitlements via webhook, and the Active Entitlements endpoint gives a read-your-writes view for interactive paths like login. Three gotchas to plan for:
- Entitlements are per-customer, not per-user. Seat-level access controls still live in your app.
- Features are mappings, not quotas. A "100,000 API calls" feature does not enforce 100,000; the meter does.
- Trials still need handling. An Entitlement does not know a trial has ended if your subscription state has not updated.

Overage Pricing Needs More Than a Rate
Three pricing shapes dominate: graduated (tiered rates stack as usage climbs), volume (one rate applies to all usage based on the total), and packaged (sold in blocks). Graduated is the right default for API products — predictable for the first N calls, overage billed at a higher rate past the plan threshold.
The edge case that catches teams is that volume pricing is not graduated. When a customer crosses a tier boundary, the new rate applies retroactively to all usage that period. A customer who used 99% of a tier was going to pay $500; bumping to 101% can push the bill to $1,200 because the whole month re-prices. That is not a bug, but it is a surprise worth building a mid-cycle notification for.
Prepaid credits sitting alongside overage is where accounting gets interesting. The credit balance decrements as meter events land, and the overage charge appears only when the balance hits zero. Surface both sides in the UI, because support tickets scale faster than the engineers available to answer them. The jump in usage-based adoption among SaaS companies over the past several years is a reasonable proxy for how much of this work is now considered table stakes:
The Nightly Reconciliation Job Catches Dropped Events
Treat Stripe's meter totals as the system of record for billing, and your application's usage log as the system of record for truth. The reconciliation job compares them nightly for the trailing 24 hours, with a safety overlap of a few hours to absorb late arrivals. A workable shape:
- Pull meter event summaries from Stripe per customer per meter for the window.
- Pull the same counts from your application's write-ahead usage log — the table that recorded the event before it was sent to Stripe.
- Diff the two. Flag any customer-meter pair where application count exceeds Stripe count by more than a small threshold.
- Replay the delta for events still inside the retention window. For events outside it, open an adjustment memo; those are revenue to recognize through a manual invoice line.
The pattern is the same one that works for Stripe Connect marketplace reconciliation: the ledger is the source of truth, the external system is the destination, and you never trust a write you have not confirmed. Build the job before launch, not after the first customer catches the miss. One honest signal that reconciliation is pulling its weight: how much of involuntary churn you prevent by closing the loop between failed charges, dunning, and entitlement state.
Revenue Recognition and the Leakage Numbers
Usage-based contracts are variable consideration under ASC 606, generally recognized in the period the customer consumes the service, with the as-invoiced practical expedient available when the invoice tracks value delivered. That treatment is what makes the meter event ledger a revenue control, not just an engineering concern.
Leakage shows up in two places. The first is dropped or late events — revenue that was earned but never billed because the meter event missed the window. The second is involuntary churn from failed payments, which compounds silently because a customer may keep consuming service through the dunning window. Pair Smart Retries with a Stripe-side block on usage for subscriptions in a past-due state.
The thresholds matter because ASC 606 misstatements have an audit tail. Material revenue leakage reads as a control weakness, not just lost revenue, and the distance between typical leakage and material misstatement is narrower than most finance teams assume:
Where This Pipeline Earns Its Place
The Entitlements API launch at Sessions 2024 solved one of the four pieces, not all four. Teams shipping usage-based billing on Stripe still own the meter event client, the overage pricing shape, and the reconciliation job that proves the other three have not drifted. A software development partner who has built this stack before will push on timestamp retention, idempotency keys, and the dunning-to-entitlement loop early, because those are the parts that erode revenue without showing up in a dashboard.
Put it another way: the reason Stripe built Entitlements is the same reason you build a reconciliation job. Both exist because the system of record and the system in production will disagree, and the engineering question is only whether you notice first or the customer does. DEV.co builds the pipeline the way a finance team eventually wishes it had been built, which is the one where the meter, the entitlement, the invoice, and the ledger line up every night before anyone has to check.
