Return reseller's owned accounts' information

This function lists a reseller's total accounts, suspended accounts, and account creation limit.

Authorizations:
query Parameters
user
string <username>

A reseller's username, to query that reseller. If you do not specify a value, the function lists information for the authenticated account.

Example: user=username

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  acctcounts

Response samples

Content type
application/json
{
  • "data": {
    • "reseller": {
      • "active": 9,
      • "limit": 25,
      • "suspended": 5,
      • "user": "root"
      }
    },
  • "metadata": {
    • "command": "acctcounts",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}