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
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
Your RevKeen merchant API key. Create and manage keys in Dashboard → Settings → Developer. Use rk_sandbox_* for staging/test and rk_live_* for production. The same key may be sent as Authorization: Bearer <key> if that suits your HTTP client better. A missing, invalid, expired, or revoked key returns 401 with a WWW-Authenticate: Bearer challenge; a valid key without the required scope returns 403.
In: header
Query Parameters
Number of top customers to return (1-100)
1 <= value <= 10010Response Body
application/json
application/json
application/json
curl "https://api.revkeen.com/v2/analytics/customers/ltv" \
-H "x-api-key: $REVKEEN_API_KEY"{ "customers": [ { "customer_id": "string", "customer_name": "string", "ltv": 0, "total_revenue": 0, "avg_order_value": 0, "order_count": 0 } ], "avg_ltv": 0, "median_ltv": 0}Customer Analytics GET
Get analytics for a specific customer --- **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/ltv` — Customer LTV - `GET /analytics/payment-links/conversion` — Payment Link Conversion - `GET /analytics/checkout/funnel` — Checkout Funnel Analytics - `GET /analytics/checkout/abandonment/summary` — Abandonment Alert Summary **Common errors** - `404 resource_missing` — the referenced resource does not exist or is not visible to your key.
A/R Aging Report GET
Returns Accounts Receivable aging buckets with invoice counts and amounts --- **Related endpoints** - `GET /analytics/revenue/mrr-summary` — MRR Summary - `GET /analytics/revenue/time-series` — Revenue Time Series - `GET /analytics/collections/dso` — Days Sales Outstanding - `GET /analytics/customers/ltv` — Customer LTV - `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