Admin
Get total Lifetime Value (LTV) grouped by currency
Calculate total LTV from payment events grouped by currency, optionally filtered by user and currency.
get/admin/payment-events/total-ltv-by-currency
Request
- Base URLhttps://api.miaai.chat (the document declares no server; this is the origin it was published from)
- URLhttps://api.miaai.chat/admin/payment-events/total-ltv-by-currency
- AuthHTTP bearer
Query parameters
userIdstring
Example:user-uuid-here
Filter by user ID
currencystring
Example:USD
Filter by currency (to restrict to a single currency)
Response
Total LTV by currency calculated successfully
Example response
[
{
"totalLtv": 299.97,
"currency": "USD",
"userId": "user-uuid-here",
"totalIncome": 399.96,
"totalExpenses": 99.99,
"transactionCount": 15
}
]Changes
No recorded changes to this operation across all 1 revision of this API.