subscription_mrr_snapshot
Collection: subscription_mrr_snapshots
Beta: This resource may change in backwards-incompatible ways before it's final.
An MRR snapshot holds one day's subscription metrics for a store, for one currency: monthly recurring revenue, subscriptions started and churned, money collected, refunded and failed, past dues and dunning. Snapshots power MRR/ARR dashboards and trends without expensive real-time queries. They are read-only. Access them for a store with GET /stores/{id}/subscription_mrr_snapshots.
One row per currency
Money is never added up across currencies. A store gets one snapshot per day for each currency its subscriptions use, unique by store, snapshot_date and currency_code, and every amount on a snapshot is in its currency_code. A subscription's currency is its transaction_template's. Filter on currency_code (for example currency_code=USD) to chart one currency.
When snapshots are written
A nightly job writes each store's snapshots shortly after midnight in the store's timezone, for the day just ended, and sends each new snapshot to webhooks whose event_resource is subscription_mrr_snapshot. The created webhook goes out once, when the row is first written; if the day is rerun, the row is updated without sending it again. A store gets snapshots while it has an active subscription, and for two days after its last subscription ends or its last log is written, so the final day of churn has a row. A day with nothing to report still gets one row of zeros, in the store's default currency.
New subscriptions, free trials and reactivations
A subscription counts as new in new_count and new_mrr on the day it starts or is reactivated, at its net amount at the end of that day, so changes to it that same day aren't counted again in expansion_mrr or contraction_mrr.
A subscription whose start date is after the day it was created, such as a free trial, counts toward active_count and mrr, and as new in new_count and new_mrr, from its start date, not from the day it was created. One that ends on or before its start date never starts, so it is never counted as new or as churn.
Null and zero
A 0 is an observed zero. A null means the value is unknown. Snapshots rebuilt from history before the nightly job ran carry details of {"backfilled": true}; history can't reconstruct past_due_count, expansion_mrr, contraction_mrr, net_new_mrr, refunded_amount, failed_amount, past_due_total or dunning_emails_sent, so those are null. Rebuilt history has no row for a day with no activity: treat a missing day there as zeros.
How MRR is counted
MRR counts a subscription's net amount: its recurring items after discounts, without tax or shipping, which is its transaction_template's total less tax and shipping. It is usually less than the subscription's amount, which is the whole charge. A subscription with no transaction_template is counted at its amount.
A subscription with an invalid frequency never renews, so it isn't recurring revenue: it is left out of mrr, active_count, new_count, cancelled_count and the MRR movements, though past_due_count and past_due_total still include it. A valid frequency is .5m, or 1 to 3 digits, not all zero, followed by a lowercase d, w, m or y.
The net amount is converted to a monthly equivalent by the subscription's frequency: for Xd, net × 30.4375 ÷ X; for Xw, net × 30.4375 ÷ (7 × X); for Xm, net ÷ X; for .5m, net × 2; for Xy, net ÷ (12 × X).
collected_amount, refunded_amount and failed_amount are gross: whole charges, including tax and shipping. They can't be compared directly with the MRR fields, which are net.
Required Scopes How scopes work →
Actions
Properties (23)
snapshot_date Date · Read-only The day this snapshot covers, in the store's timezone. Counts and totals are as of the end of that day.
Format: YYYY-MM-DD
currency_code String · Read-only The 3 character ISO code of the currency of the subscriptions this snapshot covers. Every amount on the snapshot is in this currency.
Snapshots written before per-currency snapshots existed added every currency together and carry the store's default currency, until the backfill is run again for that store.
active_count Integer · Read-only Active subscriptions at the end of the day that had started by then. Subscriptions with an invalid frequency aren't counted.
new_count Integer · Read-only Subscriptions that started or were reactivated on this day. A subscription created with a later start date is counted on its start date.
cancelled_count Integer · Read-only Subscriptions that churned on this day, from a cancelled or auto_cancelled subscription log. A subscription that never started isn't counted.
past_due_count Integer · Read-only Active subscriptions with a past-due amount greater than zero at the end of the day.
Null on backfilled snapshots.
mrr Decimal · Read-only Monthly recurring revenue of the subscriptions counted in active_count, without tax or shipping.
new_mrr Decimal · Read-only MRR of the subscriptions counted in new_count, at their net amount at the end of the day.
churned_mrr Decimal · Read-only MRR of the subscriptions counted in cancelled_count, at their net amount when they were deactivated.
expansion_mrr Decimal · Read-only MRR gained on this day from increases to the net amount or frequency of subscriptions that had already started, from modified subscription logs. Subscriptions counted in new_count that day aren't included.
Null on backfilled snapshots.
contraction_mrr Decimal · Read-only MRR lost on this day from decreases to the net amount or frequency of subscriptions that had already started. Subscriptions counted in new_count that day aren't included.
Null on backfilled snapshots.
net_new_mrr Decimal · Read-only The day's net change in MRR: new_mrr minus churned_mrr plus expansion_mrr minus contraction_mrr.
Null on backfilled snapshots.
collected_amount Decimal · Read-only Money collected for subscriptions on this day: first payments, renewals, restarts, plan changes that charge, and past-due payments, counted when the payment is captured. The sum of the day's billing_success logs. Gross: it includes tax and shipping, and money returned later is in refunded_amount.
refunded_amount Decimal · Read-only Money returned to customers on this day for subscription charges, by refunds and voids of captured payments. The sum of the day's billing_refunded logs, including tax and shipping. Subtract it from collected_amount for revenue after refunds.
Null on backfilled snapshots and on snapshots written before refunds were tracked.
failed_amount Decimal · Read-only The amount of subscription charges declined on this day, including tax and shipping, from billing_failed logs.
Null on backfilled snapshots.
past_due_total Decimal · Read-only The total past-due amount of active subscriptions at the end of the day.
Null on backfilled snapshots.
dunning_reattempts Integer · Read-only Reattempts of past-due amounts the dunning schedule made on this day.
dunning_recovered_count Integer · Read-only Past-due amounts recovered on this day, whether by a dunning reattempt, a payment in the admin, a renewal or a checkout. Counts the billing_success logs with is_makeup_payment.
dunning_recovered_amount Decimal · Read-only The total of the past-due amounts counted in dunning_recovered_count. It is included in collected_amount too.
dunning_emails_sent Integer · Read-only Dunning reminder emails sent to customers on this day.
Null on backfilled snapshots.
dunning_auto_cancelled Integer · Read-only Subscriptions the dunning schedule cancelled on this day. They are counted in cancelled_count too.
details Object (JSON) · Read-only Null on snapshots written by the nightly job. {"backfilled": true} on snapshots rebuilt from history.
date_created DateTime · Read-only When this snapshot was first written.
Link Relations (2)
self This MRR Snapshot Example Representation
{
"_links": {
"curies": [
{
"name": "fx",
"href": "https://api.foxycart.com/rels/{rel}",
"templated": true
}
],
"self": {
"href": "https://api.foxycart.com/subscription_mrr_snapshots/123",
"title": "This MRR Snapshot"
},
"fx:store": {
"href": "https://api.foxycart.com/stores/456",
"title": "This Store"
}
},
"snapshot_date": "2026-10-27",
"currency_code": "USD",
"active_count": 342,
"new_count": 6,
"cancelled_count": 2,
"past_due_count": 9,
"mrr": 8452.37,
"new_mrr": 147.3,
"churned_mrr": 49.1,
"expansion_mrr": 12.45,
"contraction_mrr": 4.99,
"net_new_mrr": 105.66,
"collected_amount": 3218.64,
"refunded_amount": 24.55,
"failed_amount": 196.4,
"past_due_total": 412.85,
"dunning_reattempts": 4,
"dunning_recovered_count": 2,
"dunning_recovered_amount": 73.65,
"dunning_emails_sent": 5,
"dunning_auto_cancelled": 1,
"details": null,
"date_created": "2026-10-28T00:04:11-0700"
}