Skip to content
KitCodebase & Dev-Founder5 files · MIT

Stripe MRR Reconciliation & Churn Audit Kit

Stop wondering why your Stripe dashboard, spreadsheet and database show three different MRR numbers. Explicit rules for prorations, annual normalization, VAT, dunning and coupons, plus a zero-dependency TypeScript normalizer.

Download .zipDownload .md
Install into this repo
$ curl -fsSL "https://tryfounder2.com/api/packs/stripe-mrr-reconciliation?format=sh" | sh -s -- stripe-mrr-kit
Download the zip
$ curl -fsSL "https://tryfounder2.com/api/packs/stripe-mrr-reconciliation" -o stripe-mrr-reconciliation.zip && unzip stripe-mrr-reconciliation.zip

What is inside

  • Explicit accounting rules for proration, annual normalization, coupons, tax-inclusive VAT and past_due grace windows
  • 7-row edge-case matrix showing exact Stripe objects and how naive queries overstate MRR
  • Zero-dependency TypeScript MRR normalizer ready to drop into any Next.js or Node billing job
  • Monthly NRR, GRR and Quick Ratio cohort CSV plus an installable stripe-mrr-audit SKILL.md

5 files included

Inspect every file.

Read, copy, or download individual files without extracting the archive.

Download all (5)
skills/stripe-mrr-audit/
stripe-mrr-reconciliation/RECONCILIATION_RULES.md

MRR Reconciliation Rules: Explicit accounting decisions for proration, dunning, annual plans, coupons, VAT and FX.

# Stripe MRR Reconciliation Rules

Two SaaS dashboards rarely show the exact same MRR because Stripe documents API fields, not accounting choices. Pick one explicit rule per edge case, write it down here, and keep your code aligned to it.

## 1. Subscription status inclusion
- Include: `active` and `past_due` (only inside your grace window, typically 7–14 days of active dunning).
- Exclude: `trialing`, `incomplete`, `incomplete_expired`, `canceled`, `unpaid`, and `paused`.

## 2. Billing interval normalization
- Monthly: `unit_amount * quantity / interval_count`
- Yearly: `(unit_amount * quantity) / (12 * interval_count)`
- Weekly: `(unit_amount * quantity * 52) / (12 * interval_count)`
- Daily: `(unit_amount * quantity * 365) / (12 * interval_count)`

## 3. Discounts and coupons
- Recurring `forever` or `repeating` discounts: subtract from active MRR while the discount applies.
- One-time `once` coupon on an annual invoice: amortize across 12 months (or explicitly exclude and document the choice).

## 4. Prorations and one-off invoice items
- Never count proration line items as recurring MRR. They reflect mid-cycle adjustments, not steady-state monthly commitment.
- Never count one-time setup fees or usage overages in base MRR; track metered usage separately as variable recurring revenue.

## 5. Taxes and multi-currency FX
- Always strip VAT/GST/sales tax (use `subtotal_excluding_tax` or pre-tax price amounts). Tax is pass-through liability, not revenue.
- Normalize non-USD subscriptions to your reporting currency using a fixed monthly FX snapshot so exchange-rate drift does not look like expansion or contraction.

## 6. Voluntary vs. involuntary churn
- Log `cancellation_details.reason` on every canceled subscription so involuntary failed-card churn is tracked separately from voluntary product churn.

Agent skills

Installable SKILL.md files in this pack.

Drop these directly into ~/.claude/skills/ with one command.

stripe-mrr-audit

Audits Stripe billing code and subscription exports for proration inflation, VAT leaks, dunning masks and NRR/GRR bugs.

View SKILL.md
mkdir -p ~/.claude/skills/stripe-mrr-audit && curl -fsSL "https://tryfounder2.com/api/packs/stripe-mrr-reconciliation?file=skills%2Fstripe-mrr-audit%2FSKILL.md" -o ~/.claude/skills/stripe-mrr-audit/SKILL.md

Share this pack

Post this on X

Post on X
Every SaaS founder hits the day their Stripe dashboard disagrees with their spreadsheet. Open-sourced our Stripe MRR Reconciliation Kit: accounting rules, 7-case edge matrix, pure TS normalizer, cohort CSV & SKILL.md. CC0:

FAQ

Common questions

Why does Stripe's built-in MRR often disagree with my own database query?

The three most frequent causes are tax-inclusive pricing (VAT counted as revenue), different handling of past_due invoices in dunning, and counting mid-cycle proration invoice items instead of steady-state subscription amounts.

Should past_due subscriptions stay in MRR?

Keep them only inside a short active dunning window (typically 7 to 14 days while Smart Retries run). Counting past_due accounts indefinitely hides involuntary churn for a full billing cycle.

How do I test NRR and GRR once I reconcile my numbers?

Drop your Starting, New, Expansion, Contraction and Churned MRR into Founder2's free NRR, GRR & Quick Ratio calculator (/tools/nrr-calc) to project 24-month cohort compounding and compare against public SaaS peers.

Test your cohort retention against 40+ public SaaS 10-Ks

Run your numbers through our free NRR, GRR & Quick Ratio Calculator or sync Stripe read-only inside Founder2.

Open NRR & Quick Ratio Calc