Churn analysis

GET /api/v1/apps/:app/churn returns the app's churn picture in one object: "churn_analysis": subscription, logo and revenue churn per calendar month, the same rates over rolling 7, 30, 90 and 365-day windows, and how many subscriptions are in each status. Every figure is computed live and matches the Churn page in Ranksy. The MCP tool get-churn-analysis returns the same history and churn_windows. Requires the metrics:read scope and the revenue.churn permission plus revenue.overview or revenue.earnings.


Which churn is which

Ranksy reports three kinds of churn. They answer different questions, so they don't add up to each other.

  • Subscription churn (subscription_churn_rate, churn_windows.subscription): of the shops paying at the start of the period, the share that cancelled for real and were not paying again by the end. This is net subscription churn: a shop that cancelled and then resubscribed to a paid plan before the period ended is not lost.
  • Gross subscription churn (subscription_churn_rate_gross, churn_windows.subscription_gross): every real cancellation in the starting cohort, whether the shop resubscribed or not. Gross is always at least net; the gap is your win-backs.
  • Logo churn (installs) (logo_churn_installs_rate, churn_windows.logo_installs): uninstalls plus deactivations, minus reinstalls and reactivations, over the installs active at the start of the period. It covers every installed shop, paying or not. Because it is net of reinstalls and reactivations, it can be negative in a period where more shops came back than left. A first install is growth, not a reinstall, so it is left out.
  • Gross revenue churn (revenue_churn_rate, churn_windows.revenue): the MRR the starting cohort lost to cancellations (cancelled_mrr) and downgrades or usage drops (contraction_mrr), over the MRR it began the period with. Expansion does not offset it.
  • Net revenue churn (net_revenue_churn_rate, churn_windows.revenue_net): gross lost MRR minus the cohort's expansion (expansion_mrr: upgrades, usage growth), over the same starting MRR. It is negative in a period where expansion outgrew the losses.

Two rules shape revenue churn:

  • Plan moves inside a shop's first 30 days don't count, as contraction or as expansion.
  • A shop that churns is lost at its starting MRR, the MRR it had when the period opened. A downgrade followed by a cancellation in the same period therefore counts once.

Frozen subscriptions are not churn by default: a frozen shop has paused, not left. Pass include_frozen=true to count a freeze still in force as subscription churn. It changes the subscription churn fields only; revenue churn and Logo churn (installs) ignore it.

Test stores count only with include_test=true.


GET/api/v1/apps/:app/churn

Churn analysis

Returns one object: "churn_analysis" for the app. history has one row per calendar month, oldest first, ending with the current month (measured up to today). Each month is measured on its own: the cohort is the shops paying on the 1st, so consecutive months never overlap. churn_windows gives the rolling rates as of today.

Path parameter

  • Name
    app
    Type
    string
    Description

    The team app's ULID, e.g. 01JN4HKQX0000000000000000.

Query parameters

  • Name
    months
    Type
    integer
    Description

    How many calendar months of history to return, counting the current month; 1–12. Default 6.

  • Name
    include_test
    Type
    boolean
    Description

    Include test and development stores. Default false.

  • Name
    include_frozen
    Type
    boolean
    Description

    Count a subscription freeze still in force as subscription churn. Default false: a frozen shop has paused, not churned. Affects only subscription_churn_rate, subscription_churn_rate_gross, churned_customers, churned_customers_gross, churn_windows.subscription and churn_windows.subscription_gross (and the deprecated logo_churn_rate / churn_windows.logo). Revenue churn and Logo churn (installs) ignore it. Echoed as meta.include_frozen.

Request

GET
/api/v1/apps/:app/churn
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/churn \
  -H "Authorization: Bearer rk_live_..." \
  -d months=2

Response

{
  "object": "churn_analysis",
  "history": [
    {
      "month": "2026-10",
      "subscription_churn_rate": 4.21,
      "subscription_churn_rate_gross": 5.61,
      "logo_churn_rate": 4.21,
      "logo_churn_installs_rate": 6.84,
      "revenue_churn_rate": 3.37,
      "net_revenue_churn_rate": 2.47,
      "cancelled_mrr": 392.00,
      "contraction_mrr": 49.00,
      "expansion_mrr": 118.00,
      "churned_customers": 9,
      "churned_customers_gross": 12,
      "mrr_churned": 392.00,
      "total_customers_at_start": 214
    },
    {
      "month": "2026-11",
      "subscription_churn_rate": 1.83,
      "subscription_churn_rate_gross": 2.29,
      "logo_churn_rate": 1.83,
      "logo_churn_installs_rate": -0.42,
      "revenue_churn_rate": 1.12,
      "net_revenue_churn_rate": -0.35,
      "cancelled_mrr": 98.00,
      "contraction_mrr": 49.00,
      "expansion_mrr": 193.00,
      "churned_customers": 4,
      "churned_customers_gross": 5,
      "mrr_churned": 98.00,
      "total_customers_at_start": 218
    }
  ],
  "churn_windows": {
    "subscription": { "7d": 0.9, "30d": 4.0, "90d": 11.2, "365d": 38.5 },
    "subscription_gross": { "7d": 1.4, "30d": 5.1, "90d": 13.6, "365d": 44.0 },
    "logo": { "7d": 0.9, "30d": 4.0, "90d": 11.2, "365d": 38.5 },
    "logo_installs": { "7d": 1.2, "30d": 5.8, "90d": 15.3, "365d": 47.1 },
    "revenue": { "7d": 0.6, "30d": 3.1, "90d": 9.4, "365d": 33.0 },
    "revenue_net": { "7d": 0.2, "30d": 1.9, "90d": 6.8, "365d": 24.5 }
  },
  "subscription_breakdown": [
    { "status": "active", "count": 221 },
    { "status": "cancelled", "count": 486 },
    { "status": "declined", "count": 58 },
    { "status": "expired", "count": 112 },
    { "status": "frozen", "count": 7 }
  ],
  "meta": {
    "months": 2,
    "include_frozen": false,
    "data_source": "Shopify Partner API",
    "last_synced": "2026-11-13T06:00:12+00:00",
    "partner_sync_status": "complete"
  }
}

Response fields

  • Name
    object
    Type
    string
    Description

    Always "churn_analysis".

  • Name
    history
    Type
    array
    Description

    One row per calendar month, oldest first. See History row.

  • Name
    churn_windows
    Type
    object
    Description

    Rolling rates as of today. See Churn windows.

  • Name
    subscription_breakdown
    Type
    array
    Description

    How many of the app's subscriptions are in each Shopify status, as { "status", "count" } objects. status is lowercase: active, cancelled, declined, expired, frozen.

  • Name
    meta
    Type
    object
    Description

    months (the history length served), include_frozen (the flag as applied, default false), data_source, last_synced (ISO-8601, or null before the first sync), plus the Partner API sync health fields.

History row

  • Name
    month
    Type
    string
    Description

    The calendar month, YYYY-MM. The current month is measured from the 1st up to today.

  • Name
    subscription_churn_rate
    Type
    number
    Description

    Net subscription churn for the month, in percent (2 decimals): churned_customers ÷ total_customers_at_start.

  • Name
    subscription_churn_rate_gross
    Type
    number | null
    Description

    Gross subscription churn for the month, in percent (2 decimals): churned_customers_gross ÷ total_customers_at_start. null for usage-billing apps.

  • Name
    churned_customers
    Type
    integer
    Description

    Shops in the starting cohort that cancelled for real and were not paying again by the end of the month.

  • Name
    churned_customers_gross
    Type
    integer | null
    Description

    Shops in the starting cohort with a real cancellation in the month, resubscribed or not. null for usage-billing apps.

  • Name
    total_customers_at_start
    Type
    integer
    Description

    Shops paying on the 1st of the month: the cohort both subscription churn rates divide by.

  • Name
    logo_churn_installs_rate
    Type
    number
    Description

    Logo churn (installs) for the month, in percent (2 decimals). Net of reinstalls and reactivations, so it can be negative.

  • Name
    revenue_churn_rate
    Type
    number
    Description

    Gross revenue churn for the month, in percent (2 decimals): (cancelled_mrr + contraction_mrr) ÷ the MRR the month's cohort started with.

  • Name
    net_revenue_churn_rate
    Type
    number
    Description

    Net revenue churn for the month, in percent (2 decimals): (cancelled_mrr + contraction_mrr − expansion_mrr) ÷ the cohort's starting MRR. Negative when expansion outgrew the losses.

  • Name
    cancelled_mrr
    Type
    number
    Description

    Starting MRR of the cohort shops that churned in the month, in the app's base currency.

  • Name
    contraction_mrr
    Type
    number
    Description

    MRR the cohort lost to downgrades and usage drops in the month. Plan moves inside a shop's first 30 days don't count.

  • Name
    expansion_mrr
    Type
    number
    Description

    MRR the cohort gained from upgrades and usage growth in the month. Plan moves inside a shop's first 30 days don't count.

  • Name
    mrr_churned
    Type
    number
    Description

    MRR of the subscriptions counted as churned in the month, in the app's base currency. It is not the numerator of revenue_churn_rate: that is cancelled_mrr + contraction_mrr. For usage-billing apps it is the cohort's lost MRR, cancelled_mrr + contraction_mrr.

  • Name
    logo_churn_rate
    Type
    number
    Description

    Deprecated. Same value as subscription_churn_rate; kept for one release.

Churn windows

Each key is an object with 7d, 30d, 90d and 365d rates in percent (1 decimal), measured as of today.

  • Name
    subscription
    Type
    object
    Description

    Net subscription churn.

  • Name
    subscription_gross
    Type
    object
    Description

    Gross subscription churn. Each value is null for usage-billing apps.

  • Name
    logo_installs
    Type
    object
    Description

    Logo churn (installs). Can be negative.

  • Name
    revenue
    Type
    object
    Description

    Gross revenue churn.

  • Name
    revenue_net
    Type
    object
    Description

    Net revenue churn (gross minus expansion). Can be negative.

  • Name
    logo
    Type
    object
    Description

    Deprecated. Same values as subscription; kept for one release.


MCP tools

The Ranksy MCP server uses the same definitions.

  • get-churn-analysis returns the same history, churn_windows and subscription_breakdown as this endpoint, including the gross fields, the revenue churn split and the deprecated aliases. It takes the same months, include_test and include_frozen parameters (it identifies the app by app_slug) and echoes include_frozen in meta. It needs the revenue.churn permission. Without revenue.overview or revenue.earnings, the dollar fields (mrr_churned, cancelled_mrr, contraction_mrr, expansion_mrr) are left out of each history[] row; rates and counts stay.
  • get-installations has summary.logo_churn_installs: Logo churn (installs) over the requested period, as { rate, uninstalls, deactivations, reinstalls, reactivations, active_at_start }, where rate is in percent. summary.uninstall_rate (total uninstalls ÷ total installs) is deprecated and kept for one release; use summary.logo_churn_installs.rate instead.

Errors

Beyond the universal 401 / 403 / 422 / 429 (see Errors):

  • 409 when the app has no Partner data yet. The endpoint never returns an empty object instead:
  • An out-of-range or non-integer months (outside 1–12) returns 422 validation_failed. An unrecognised include_test or include_frozen value is treated as false, not rejected.