Analytics - Financial
Get Transactions By Type
Get transaction totals grouped by transaction type (subscriptions, tips, messages, etc.).
post/api/analytics/financial/transactions/by-type
Request body
Example request
{
"account_ids": [
"acc_abc123",
"acc_def456"
],
"start_date": "2024-01-01",
"end_date": "2024-12-31"
}Response
Example response
[
{
"type": "subscription",
"count": 100,
"total": 5000
},
{
"type": "tip",
"count": 50,
"total": 2500
}
]