Skip to content

MRR, subscriptions, new, churned and collected

GET
/v1/revenue/summary

Stripe and Lemon Squeezy together, per currency: mrr_minor, active and trialing subscriptions, paying customers, and for the period new and churned subscriptions with their MRR, net MRR change, collected revenue and payment count. MRR is operational: yearly plans ÷ 12, running Stripe coupons applied (Lemon Squeezy does not expose subscription discounts, so its MRR is at the list price), metered and tiered prices counted as zero. Lemon Squeezy payments are before tax, with partial refunds taken off. sync.providers lists each connection. Amounts are in the smallest currency unit, reported per currency, and never converted or added together. Every response includes sync (status, last_synced_at, livemode): backfilling means the first import is still running, revoked or error means the numbers are as of the last successful sync.

Auth: Secret key only. Every plan; Free reads the last 30 days, Indie 90 days, Builder 24 months.

period_days
integer
default: 30 >= 1 <= 730

Capped by plan: Free 30, Indie 90, Builder 730.

Revenue summary

Error envelope. See error.code for the discriminator.

object
data
required
null
error
required
object
code
required
string
message
required
string
remediation
required
string
doc_url
string format: uri
param
string
request_id
string
meta
object
key
additional properties

Error envelope. See error.code for the discriminator.

object
data
required
null
error
required
object
code
required
string
message
required
string
remediation
required
string
doc_url
string format: uri
param
string
request_id
string
meta
object
key
additional properties

STRIPE_NOT_CONNECTED: connect Stripe or Lemon Squeezy in the dashboard first.

object
data
required
null
error
required
object
code
required
string
message
required
string
remediation
required
string
doc_url
string format: uri
param
string
request_id
string
meta
object
key
additional properties