Get your credit balance
/credits/me/read Read: looks, changes nothing. Scopes
Your balance and what you may do with credits: spending this month, what the resellers below you hold, your cheapest package price and your trial lines. Reseller-only figures are null for a panel operator.
Response
200 OK
balancestring (decimal)requiredunlimitedbooleanrequiredLines cost this account nothing, whatever its balance.
is_resellerbooleanrequiredThe account pays for its lines with credits.
can_adjustbooleanrequiredMay add or remove resellers' credits.
can_givebooleanrequiredMay give credits to the resellers below it.
can_view_allbooleanrequiredSees every reseller's credits.
can_manage_pricesbooleanrequiredMay set resellers' own package prices.
spent_this_monthstring (decimal)requiredSpent on lines this calendar month, net of refunds.
held_by_subresellersstring (decimal)requiredcan be nullWhat the resellers below it hold. Null for an operator.
cheapest_pricestring (decimal)requiredcan be nullThe lowest price it pays for a package it sells. Null when none.
lowbooleanrequiredThe balance is below the cheapest price.
trialsobjectrequiredcan be nullTrial lines; null for an operator.
limitintegerrequiredcan be nullTrial lines allowed per period; null: no limit.
periodstringrequiredday- dayweek- weekmonth- month
One of:
"day""week""month"usedintegerrequiredTrial lines made in the current period.
leftintegerrequiredcan be nullNull: no limit.
enabledbooleanrequiredWhether this account may make trial lines at all.
min_balancestring (decimal)requiredThe balance a trial line needs.
blockedstringrequiredcan be nullWhy the next trial line would be refused: none left, or the balance is too low. Null: it would not.
limit- limitmin_balance- min_balance
next_atstring (date-time)requiredcan be nullWhen the next trial line opens, once none are left.
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.