Accounts
Retrieve lifetime usage for multiple accounts.
Returns corrected lifetime usage totals in one ClickHouse query for up to 100 accounts. No PostgreSQL query is performed.
get/v2/accounts/usage/lifetime
Query parameters
account_idsstring required
Comma-separated LedgerUp account identifiers. Between 1 and 100 unique ids.
Response
Lifetime usage grouped by account and metric or currency.
Example response
{
"data": [
{
"account_id": "account_0194f4e3a2b77c6aa91c4f6b4db2a980",
"metric_id": "metric_0194f4e3a2b77c6aa91c4f6b4db2a980",
"currency": "usd",
"quantity": "1250.5"
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.