List resellers' credits
GET
/credits/accounts/read Read: looks, changes nothing. Scopes
The resellers you can see, with their balance, spending this month and cheapest package price, a page at a time.
Query parameters
lowbooleanOnly resellers whose balance is below their cheapest package price (and not unlimited).
orderingstringWhich field to use when ordering the results.
pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
scopestringsubtree: only the resellers below you, the ones you can give credits to.One of:
"subtree"searchstringMatches the username.
Response
200 OK
countintegerrequiredHow many there are in all, on every page.
nextstring (uri)can be nullThe next page, or null on the last one.
previousstring (uri)can be nullThe page before, or null on the first one.
resultsobject[]requiredidstring (uuid)requiredusernamestringrequiredgroupstringrequiredcan be nullparentobjectrequiredread-onlycan be nullidstring (uuid)requiredusernamestringrequired
balancestring (decimal)requiredunlimitedbooleanrequiredspent_this_monthstring (decimal)requiredlast_entry_atstring (date-time)requiredcan be nullcheapest_pricestring (decimal)requiredcan be nulllowbooleanrequiredread-onlyis_activebooleanrequired
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.