v8

latestOpenAPI 3.0.3raw.githubusercontent.com2026-05-2526602.8 MB
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

account_idsstring[] required

Array of account prefixed IDs

start_datestring required

The start date (ISO 8601 format)

end_datestring required

The end date (ISO 8601 format)

Example request

{
  "account_ids": [
    "acc_abc123",
    "acc_def456"
  ],
  "start_date": "2024-01-01",
  "end_date": "2024-12-31"
}

Response

typestring
countinteger
totalnumber

Example response

[
  {
    "type": "subscription",
    "count": 100,
    "total": 5000
  },
  {
    "type": "tip",
    "count": 50,
    "total": 2500
  }
]