Customer LTV
Your paying shops ranked by lifetime value (the gross revenue actually collected from each shop), each row carrying current MRR, tenure, plan, and first-touch acquisition channel. GET /api/v1/apps/:app/ltv/customers returns a paginated object: "list", sorted by ltv descending by default, and requires the metrics:read scope and the revenue.ltv permission plus revenue.overview or revenue.earnings.
This is the per-customer view of lifetime value — one row per paying shop. For aggregate cohort retention and blended LTV curves by install month, see LTV cohorts instead. Data here comes from your Shopify Partner API integration; if the integration was never configured for the app, the list is simply empty (a 200, not an error).
Customer LTV
Returns the app's current paying shops (real installs with MRR, not on trial) as a paginated object: "list", highest lifetime value first by default. Each row pairs the shop's identity with its current_mrr, installed_at, lifetime_months, ltv, plan_name, and first_touch_channel, so you can see who your most valuable merchants are and how they were acquired.
total_count is the total number of paying shops and has_more tells you when to fetch the next page. Page mode serves only the top 100 shops by sort_by; use cursor pagination to read them all. Amounts are in the app's base payout currency; there is no envelope currency.
Path parameter
- Name
app- Type
- string
- Description
The team app's ULID, e.g.
01JN4HKQX0000000000000000.
Query parameters
- Name
sort_by- Type
- string
- Description
Sort column, always descending:
ltv(default),current_mrr, orinstalled_at(newest first). Any other value returns a422. Ignored in cursor mode.
- Name
cursor- Type
- string
- Description
Opt-in cursor for cursor pagination. Opaque, maximum 64 characters. See Pagination.
- Name
page- Type
- integer
- Description
The page to return. Minimum
1. Default1.
- Name
per_page- Type
- integer
- Description
Rows per page,
1–100. Default50.
Request
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/ltv/customers \
-H "Authorization: Bearer rk_live_..." \
-d sort_by=ltv \
-d per_page=25
Response
{
"object": "list",
"url": "/api/v1/apps/01JN4HKQX0000000000000000/ltv/customers",
"page": 1,
"per_page": 25,
"total_count": 96,
"has_more": true,
"metadata": {
"total": 96,
"sort_by": "ltv",
"computed_at": "2026-11-28T10:15:00+00:00",
"value_note": "LTV = the gross revenue actually collected from the customer over its lifetime (real, paid transactions), the LTV page figure. Lists the current paying customers (not on trial); 0 until a customer is first charged. Amounts in the app base payout currency."
},
"data": [
{
"shop_domain": "skinnupweightloss.myshopify.com",
"shop_name": "Skinny Up!",
"plan_name": "Advanced",
"current_mrr": 9.99,
"installed_at": "2023-08-15T10:00:00+00:00",
"lifetime_months": 34,
"ltv": 339.66,
"first_touch_channel": "Organic Search"
}
]
}
Response fields
The list is the shared object: "list" envelope; each item in data is a customer LTV row.
- Name
object- Type
- string
- Description
Always
"list".
- Name
url- Type
- string
- Description
The endpoint path for this resource.
- Name
page- Type
- integer
- Description
The current page number (1-based).
nullin cursor mode.
- Name
per_page- Type
- integer
- Description
Rows per page.
- Name
total_count- Type
- integer
- Description
Total paying shops across all pages.
nullin cursor mode.
- Name
has_more- Type
- boolean
- Description
Whether further pages exist.
- Name
next_cursor- Type
- string
- Description
Cursor mode only — the cursor to pass on the next request, or
nullwhen the list is exhausted.
- Name
metadata- Type
- object
- Description
Page mode only (omitted in cursor mode):
total(paying shops),sort_by(the sort applied),computed_at(ISO-8601), andvalue_note.
- Name
data- Type
- array
- Description
The customer LTV rows for this page. Each row has:
- Name
shop_domain- Type
- string
- Description
The shop's
*.myshopify.comdomain, ornullwhen unknown.
- Name
shop_name- Type
- string
- Description
Shop name, or
nullwhen unknown.
- Name
plan_name- Type
- string
- Description
The shop's current plan name, or
nullwhen unknown.
- Name
current_mrr- Type
- number
- Description
Current monthly recurring revenue (2 decimals);
0when unknown.
- Name
installed_at- Type
- string
- Description
ISO-8601 install timestamp, or
null.
- Name
lifetime_months- Type
- integer
- Description
Whole months since install, minimum
1;0wheninstalled_atis unknown.
- Name
ltv- Type
- number
- Description
Lifetime value: the gross revenue actually collected from the shop (real, paid transactions), 2 decimals.
0until the shop is first charged.
- Name
first_touch_channel- Type
- string
- Description
The acquisition channel of the shop's first touch, or
nullwhen unknown.
Pagination
By default the list uses offset pagination: walk it with page and per_page (1–100), and check has_more / total_count to know when to stop. Page mode only ever serves the top 100 shops by sort_by, even when total_count is higher.
You can opt into cursor pagination by passing the cursor parameter (start with it empty). Each response then returns a next_cursor; pass it on the next request and repeat until next_cursor is null (equivalently, has_more is false). In cursor mode rows are ordered by an internal shop id (sort_by is ignored), page and total_count come back null, and metadata is omitted.
Cursor mode is stable under concurrent inserts and is not subject to the page-mode 100-row cap, so it is the recommended way to export the full list into a warehouse (e.g. BigQuery).
Errors
Beyond the universal 401 / 403 / 422 / 429 (see Errors):
- The list never returns a
409: an app with no configured Partner API integration, or no paying customers, returns an emptydatalist (a200). An app ULID outside your team returns404. - An unknown
sort_by, an out-of-rangeper_page, or an invalidcursorsurfaces as422 validation_failed.