Api reference
Customer LTV
Calculate customer lifetime value metrics
Related endpoints
GET /analytics/revenue/mrr-summary— MRR SummaryGET /analytics/revenue/time-series— Revenue Time SeriesGET /analytics/invoices/ar-aging— A/R Aging ReportGET /analytics/collections/dso— Days Sales OutstandingGET /analytics/customers/{customerId}— Customer AnalyticsGET /analytics/payment-links/conversion— Payment Link ConversionGET /analytics/checkout/funnel— Checkout Funnel AnalyticsGET /analytics/checkout/abandonment/summary— Abandonment Alert Summary
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Query Parameters
topN?number
Number of top customers to return (1-100)
Default
10Range
1 <= value <= 100Response Body
application/json
curl "https://api.revkeen.com/v2/analytics/customers/ltv" \ -H "x-api-key: $REVKEEN_API_KEY"{
"customers": [
{
"customerId": "string",
"customerName": "string",
"ltv": 0,
"totalRevenue": 0,
"avgOrderValue": 0,
"orderCount": 0
}
],
"avgLtv": 0,
"medianLtv": 0
}