RevKeen Docs
Api reference

Customer LTV

Calculate customer lifetime value metrics


Related endpoints

  • GET /analytics/revenue/mrr-summary — MRR Summary
  • GET /analytics/revenue/time-series — Revenue Time Series
  • GET /analytics/invoices/ar-aging — A/R Aging Report
  • GET /analytics/collections/dso — Days Sales Outstanding
  • GET /analytics/customers/{customerId} — Customer Analytics
  • GET /analytics/payment-links/conversion — Payment Link Conversion
  • GET /analytics/checkout/funnel — Checkout Funnel Analytics
  • GET /analytics/checkout/abandonment/summary — Abandonment Alert Summary
GET
/analytics/customers/ltv
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)

Default10
Range1 <= value <= 100

Response 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
}