Get credit history totals
/credits/totals/read Read: looks, changes nothing. Scopes
What the history rows the same filters select add up to, by kind, and what the accounts they cover hold now.
Query parameters
accountstring (uuid)Only this account's rows (a reseller you can see).
actorstring (uuid)Only what this account did.
date_fromstringA date (
2026-11-01, the whole day) or a date-time.date_tostringA date (the whole day included) or a date-time.
kindstringComma-separated kinds:
adjust,line_new,line_extend,line_trial,refund,transfer_out,transfer_in,returned,written_off,import.linestring (uuid)Only rows about this line.
scopestringsubtree: your rows and those of every reseller below you. Default: yours only (everyone's for an account that sees all credits).One of:
"subtree"searchstringMatches names, the package, the reason and the reference.
typestringWhy an operator added or removed credits.
One of:
"correction""other""payment""promo""refund"
Response
200 OK
addedstring (decimal)requiredAdded by operators, and balances brought from another panel.
spentstring (decimal)requiredSpent on lines.
refundedstring (decimal)requiredGiven back for deleted lines.
givenstring (decimal)requiredGiven to other resellers.
receivedstring (decimal)requiredReceived from other resellers.
returnedstring (decimal)requiredReturned from deleted resellers' balances.
written_offstring (decimal)requiredWritten off with deleted resellers' balances.
held_by_resellersstring (decimal)requiredWhat the accounts covered hold right now.
Errors
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.