Stripe revenue: MRR, churn and LTV

Connect Stripe and read MRR, new, expansion, contraction and churned MRR, ARR, ARPU and LTV, on the Revenue report, over the API and on a dashboard template.

Embed
Preview of the card
<a href="https://lucidace.com/help/stripe-mrr-churn-ltv"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/915952e9-cbd8-422c-81d2-12de919503e3/social-card.svg?v=3e7ae33eec8b" alt="Stripe revenue: MRR, churn and LTV" width="600" height="315"></a>

Connect Stripe in Connectors (restricted key with read access to charges, subscriptions, invoices and refunds). The connector turns Stripe objects into events:

Stripe

Event

Notes

charge

$purchase

$revenue in major units

paid invoice

$invoice_paid

$revenue too when Revenue events from is set to paid invoices

refund

$refund

negative $revenue

subscription active

$subscription_started

$mrr

subscription canceled

$subscription_cancelled

$mrr

other subscription status

$subscription_<status> (trialing, past_due, ...)

$mrr

$mrr is the price divided down to a month (a yearly 240.00 price is 20.00; interval_count is respected). Plan quantity and add-on items are not multiplied in: the first item's unit price is used. A $subscription_started on a subscription that is already live counts as a renewal, so a change of price shows as expansion or contraction and is not counted as new MRR twice. These names are the revenue settings' defaults, so no setup is needed; if you track subscriptions yourself, change the event and property names in Revenue settings (PUT /v1/projects/{project_id}/web/revenue/config).

Read it

GET /v1/projects/{project_id}/web/revenue/mrr?from=&to=&interval=month|week|day answers per period opening_mrr, new_mrr, expansion_mrr, contraction_mrr, churned_mrr, closing_mrr, arr and subscription counts, and a current block with mrr, arr, customers, arpu and ltv. LTV is ARPU divided by the last period's churn (the churned share of opening subscriptions), and is null without churn. A subscription that goes quiet is churned implicitly when the revenue settings define a drop-off window. Amounts in another currency are converted at the day's rate; events whose currency has no rate are counted in unconverted_events and left out.

Dashboard template

Dashboards > New from template > Stripe revenue: MRR, churn, LTV creates a dashboard with a Revenue: MRR, churn, LTV widget (current MRR, ARR, customers, ARPU and LTV, and the movements table for the last 180 days).

Keep other revenue out (filters)

If the Stripe account also carries sales that are not yours (a platform's customers' commerce, one-off products), set filters on the connector (Connectors > Stripe > Revenue, or config over the API). They apply to charges, subscriptions, paid invoices and refunds; customers and products are never filtered.

Config key

Effect

exclude_connect: true

Skips Stripe Connect connected-account sales: events delivered for a connected account (webhook account) and charges with transfer_data.destination or on_behalf_of

include_products / exclude_products

Product ids, read from invoice lines and subscription items. An include list drops anything that names none of them

include_prices / exclude_prices

The same, by price id

include_metadata / exclude_metadata

key=value pairs (metadata.kind=saas also works). Read from the object's own metadata, an invoice's subscription metadata and its first line. An include list needs one match; an exclude list drops on any match

{ "revenue_from": "invoices", "exclude_connect": true, "include_metadata": ["kind=saas"] }

Notes: a plain charge has no product or price, so with an include product or price list it is dropped; filter those by metadata or take revenue from paid invoices. Refunds follow only their own fields (Connect, their own metadata), because a refund does not carry its charge's metadata: if refunds of excluded sales matter, set the same metadata on the refund. Filters apply to events from now on and to the next backfill; they do not delete events already stored.

Updated