01How it works
Customer lifetime value: the reads (summary, customers, breakdown, cohorts, mrr, predict, abm,
engagement, subscriptions, companies, products) and the writes the API offers — customer and
company records (ltv customer, ltv company), revenue, engagement events, subscriptions and
products pushed from other systems, custom fields, outbound webhooks and integrations.
LTV writes cannot be staged: under --staged they are refused before anything is sent.
02Commands
21 under p202 ltv.
03For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands ltv --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
{
"path": "p202 ltv",
"use": "ltv",
"short": "Customer lifetime value — realized LTV, per-customer detail, product/acquisition breakdowns, MRR/churn, and predictive LTV",
"long": "Customer lifetime value: the reads (summary, customers, breakdown, cohorts, mrr, predict, abm,\nengagement, subscriptions, companies, products) and the writes the API offers — customer and\ncompany records (`ltv customer`, `ltv company`), revenue, engagement events, subscriptions and\nproducts pushed from other systems, custom fields, outbound webhooks and integrations.\n\nLTV writes cannot be staged: under --staged they are refused before anything is sent.",
"runnable": false
}