The Hidden Cost of Hand-Rolled Billing at API Companies
Every engineering leader at an API company will tell you their billing code is fine. Nobody in that room is lying. What they mean is: the billing code has not caused an outage this quarter. That is not the same as fine.
The real cost of hand-rolled billing does not show up as an incident. It shows up as pricing velocity you never had, revenue you never billed, and a finance close that eats one person's week, every month.
Where does the cost of hand-rolled billing actually live?
Not on the engineering budget line. That is why it stays hidden. The cost is distributed across four places, and finance never rolls them up.
- Engineering headcount. The team that owns billing, plus the tax on every product engineer whose service touches money.
- Pricing velocity. The experiments your PM does not run, because the estimate is a quarter.
- Billing leakage. The money you were entitled to bill but did not, because a meter miscounted or a rule was misapplied.
- Finance close labor. The controller-hours spent reconciling metered revenue in a spreadsheet before the books can close.
Roll those up and the total cost of hand-rolled billing at a $10M ARR API company is typically 6 to 10% of revenue. That is more than most teams spend on cloud infrastructure.
What does hand-rolled billing cost in engineering time?
The visible number is small. Two engineers, maybe three. The invisible number is the tax on every service that has to think about billing.
The invisible tax shows up in three places.
- Every new feature ships with a billing question. Should this be metered. Under which plan. What is the unit. Product-engineering pairs lose a day per feature just aligning on the answer.
- Every incident with money in the loop needs the billing engineer in the room. Postmortems for a payment failure, a duplicated event, or a dropped meter take two weeks of calendar time and three engineers, when the root cause is usually a missing idempotency key.
- Every pricing change requires a data migration. Because the pricing rules live in the same tables as the meter, a rule change is a schema change is a code deploy is a rollback plan.
Add those together and the fully loaded cost of hand-rolled billing at a $10M ARR company is 3 to 4 full-time engineers, not 2. The extra one to two is spread across every other team.
How much revenue does billing leakage actually cost?
More than the engineering cost. Every published study on metering leakage lands in the same range: 3 to 7% of billed revenue for companies with more than one usage meter. Some of it is customer-friendly, most of it is not.
The four leakage patterns you find on every reconciliation.
| Pattern | Typical size | Root cause |
|---|---|---|
| Undercounted events at ingest | 0.5 to 2% of billed revenue | Retries or crashes drop events before they hit the meter |
| Tier boundary drift | 1 to 3% of billed revenue | Meter rolls up on the wrong period boundary |
| Over-generous credits | 0.5 to 1.5% of billed revenue | Support applies credits without a policy or a cap |
| Grandfathered rules that never sunset | 0.5 to 2% of billed revenue | A discount from 2022 still applies in 2026 because nobody removed it |
At $10M ARR, that is $300K to $700K per year. It is not one line item. It is four small line items that never get rolled up.
Why does pricing velocity matter more than any single feature?
Because the pricing model is the largest lever you have on revenue and gross margin. A 5% price increase, evenly applied, drops straight into gross margin. A shift from per-seat to consumption, done well, expands ARR per account by 30 to 60% inside a year.
Hand-rolled billing kills that lever silently. The mechanism is straightforward.
- Your PM proposes a pricing experiment.
- Engineering estimates the change at 6 to 12 weeks.
- The PM re-scopes the experiment down to what the current billing code can support.
- The revenue lift disappears in the re-scoping.
That last step is the one nobody measures. It is also where 80% of the cost lives.
A company that ships a pricing change per quarter, safely, will out-earn a company that ships one per year. The delta is not the pricing change itself. It is the ten experiments the fast team ran and killed, so that the eleventh one landed correctly.
What does the finance close look like when billing is hand-rolled?
Three days, sometimes five, one person, mostly in a spreadsheet.
The pattern is universal. Engineering exports raw event counts. Finance loads them into Excel. Formulas reconstruct the pricing tiers, the credits, the commitments, the drawdown. The controller diffs the Excel total against the invoice total. Where they disagree, the controller writes an adjustment.
There are three problems with this.
- The Excel model diverges from the code over time. When they disagree, nobody knows which is right.
- Adjustments are backward-looking. The revenue is already booked. The customer already paid the wrong number.
- The controller is the only person who understands the model. When they take vacation, the close slips.
The finance close is not a metering problem. It is a checksum problem. When the metering layer publishes a per-meter, per-customer checksum that the warehouse can verify, the close goes from days to hours, and the spreadsheet disappears.
When does the hidden cost turn strategic?
There is a specific moment. It is when a product decision gets vetoed by a billing constraint. The first time it happens, the engineering leader wins the argument on caution. The tenth time, the product leader stops proposing.
That is the moment the cost becomes strategic, because it stops being about engineering hours and starts being about market position. Every fast-moving competitor is running the pricing experiment you decided not to run.
The mistake to avoid
Hand-rolled billing looks efficient because it costs less than a vendor and the engineers are already on payroll. That framing ignores three of the four cost lines: the pricing changes that never shipped, the leakage that never got reconciled, and the finance close that eats a person's week every month. Do the math on all four, not just the salary line, and the answer changes. The bar for keeping billing in-house is not "can we do it." It is "does our pricing evolution create more revenue than the engineering team costs, net of leakage." For most companies past $5M in ARR, the answer is no, and nobody has actually done the math.
Frequently asked questions
How much of billing leakage is actually recoverable?
In practice, 60 to 80% of measured leakage is recoverable inside a quarter once you have a real meter. The remainder is contractual, not a system problem, and needs a customer conversation. Teams that install a proper metering layer typically recover 2 to 4% of ARR in the first year without changing pricing or contracts.
Why do in-house billing systems get worse over time?
They accrete pricing rules from every customer negotiation. Each rule ends up in product code, an if-statement at a time. After 50 or 60 such rules, the billing code becomes unreadable to anyone except its author, who then leaves. The system does not decay because it was built badly. It decays because the rules were never separated from the code.
What is the average engineering cost of a hand-rolled billing system?
Two to four full-time engineers, ongoing, for a company past $5M in ARR with more than one meter. That does not count the tax on every product engineer who touches billing-adjacent code. Total fully loaded cost is usually $600K to $1.2M per year, not counting the pricing changes that never happen.
Is billing leakage the same thing as churn?
No. Leakage is money you were entitled to bill but did not, because the system undercounted usage, missed a tier boundary, or credited too aggressively. Churn is money the customer stops paying because they leave. Leakage is usually invisible because both parties agree on the bad number. Only reconciliation finds it.
When should we replace our in-house billing system?
The signal is not scale. It is pricing latency. When your PM comes to your engineering lead with a pricing experiment and gets a 6-week estimate, and the PM stops asking, you have hit the wall. That is the moment the hidden cost becomes strategic and dedicated infrastructure starts paying off inside two quarters.
Ship a pricing change in an afternoon
Orvarex turns raw usage events into metered invoices, versioned pricing models, and clean rev-rec entries in Stripe and NetSuite.
Request early access