127 lines
4.1 KiB
Markdown
127 lines
4.1 KiB
Markdown
# recovery-rate-calc
|
||
|
||
Failed-payment recovery rate, money left on the table, and how that compares
|
||
to published industry benchmarks — computed locally from a CSV export you
|
||
already have. No API key, no account, no upload, no signup.
|
||
|
||
Works with a failed-payment / invoice export from **Stripe**, **Dodo
|
||
Payments** or **Paddle** (or any export with similar status/amount/customer
|
||
columns). It does not need our product, and it works the same way even if
|
||
you use a competitor.
|
||
|
||
## Why
|
||
|
||
A raw billing export lists one row per *attempt*. If a customer's card fails
|
||
and automatic dunning retries it three times, that is four rows for one real
|
||
failure — counting rows instead of customers over-counts failures and can
|
||
quietly distort your recovery rate. This tool groups rows by customer first,
|
||
so the number it prints is calculated over real failure events, not retry
|
||
noise.
|
||
|
||
## Use it
|
||
|
||
```bash
|
||
# try it on the bundled sample file first, no export needed
|
||
npx recovery-rate-calc --demo
|
||
|
||
# then point it at your own export
|
||
npx recovery-rate-calc ./stripe-payments-export.csv
|
||
|
||
# machine-readable output
|
||
npx recovery-rate-calc ./export.csv --json
|
||
```
|
||
|
||
Or install it:
|
||
|
||
```bash
|
||
npm install -g recovery-rate-calc
|
||
recovery-rate-calc ./export.csv
|
||
```
|
||
|
||
### Getting a CSV to run it on
|
||
|
||
- **Stripe:** Dashboard → Payments (or Invoices) → Export.
|
||
- **Dodo Payments:** Dashboard → Payments → Export.
|
||
- **Paddle:** Dashboard → Transactions → Export.
|
||
|
||
Any export that has a status column, an amount column, and a customer
|
||
identifier (ID or email) will work — column names don't need to match
|
||
exactly; the tool recognizes common variants from each provider.
|
||
|
||
## What it prints
|
||
|
||
```
|
||
recovery-rate-calc report
|
||
|
||
rows read: 12
|
||
distinct customers: 7 (retry rows collapsed per customer)
|
||
failure events: 5
|
||
recovered: 2
|
||
still unrecovered: 3
|
||
|
||
recovery rate: 40.0%
|
||
roughly in line with Stripe/processor-default recovery (~35-40%)
|
||
|
||
money recovered: 228.00 USD
|
||
money left on table: 157.00 USD
|
||
total at risk: 385.00 USD
|
||
```
|
||
|
||
- **failure events** — distinct customers who had at least one failed
|
||
charge in this file (not raw rows).
|
||
- **recovered** — of those, the ones with at least one later successful
|
||
charge in the same file.
|
||
- **money left on table** — the amount still sitting on unrecovered
|
||
failures.
|
||
|
||
## How it classifies rows
|
||
|
||
Status values are mapped case-insensitively:
|
||
|
||
- Counts as **failed**: `failed`, `declined`, `past_due`, `incomplete`,
|
||
`incomplete_expired`, `uncollectible`, `unpaid`, `canceled`, `void`,
|
||
`error`.
|
||
- Counts as **recovered**: `succeeded`, `paid`, `recovered`, `captured`,
|
||
`completed`.
|
||
- Anything else is reported separately as "unrecognized status" and left
|
||
out of the rate so it can't skew the number either way.
|
||
|
||
If no customer/email column is found, the tool cannot safely collapse
|
||
retries and says so in the output (`deduped: false`) rather than silently
|
||
guessing.
|
||
|
||
## Benchmarks, sourced
|
||
|
||
The comparison bands printed alongside your rate are vendor-published
|
||
figures, included for context only — not a guarantee about your business:
|
||
|
||
- ~20–31% recovery with no dunning automation at all (Chargebee 2025
|
||
benchmark).
|
||
- ~35–40% as the typical outcome of processor-default retry logic alone
|
||
(Stripe-focused industry guides).
|
||
- ~47–55% as the reported SaaS median with a dunning program (Churnkey
|
||
State of Retention 2025; industry-median figures from multiple vendor
|
||
benchmarks).
|
||
- 70%+ reported by top-quartile dedicated recovery programs (multiple
|
||
vendor-published case studies).
|
||
|
||
Published recovery-rate benchmarks vary a lot by vendor and by what they
|
||
count as the denominator (retries vs. distinct failures) — use these as a
|
||
rough compass, not a target to hit exactly.
|
||
|
||
## Development
|
||
|
||
```bash
|
||
npm test
|
||
```
|
||
|
||
Zero runtime dependencies. Plain Node.js, `fs` + a small built-in CSV
|
||
parser — nothing is sent anywhere.
|
||
|
||
## From the makers
|
||
|
||
Built by [RetryBolt](https://retrybolt.com) — dunning and payment recovery
|
||
for Dodo Payments, Stripe and Paddle. This tool works on its own, with any
|
||
provider; RetryBolt is the paid product for running recovery continuously
|
||
instead of running a one-off report.
|