Credits
The caller's credit ledger, newest first
Every entry on the caller's spendable balances (promotional, subscription and paid top-up) and every payment they made, from the double-entry LedgerEntry that is the source of truth for credits. Comes with the window's totals and the live balances, so a statement can be drawn from one call. Paged by cursor; entries are append-only so a page is stable while new ones land at the top.
get/payments/credits/ledger
Request
- Base URL: https://api.tinyhumans.ai
- URL: https://api.tinyhumans.ai/payments/credits/ledger
- Auth: HTTP bearer
Query parameters
range'7d' | '30d' | '90d' | '1y' | 'all'
accountType'USER_PROMO' | 'USER_SUBSCRIPTION' | 'USER_CYCLE' | 'USER_TOPUP' | 'REVENUE_SUBSCRIPTION' | 'REVENUE_TOPUP'
eventTypestring
cursorstring
The nextCursor of the previous page.
limitinteger
Response
One page of ledger entries with summary and balances
Changes
No recorded changes to this operation across all 1 revision of this API.