Resellers
Account Settings
Return reseller's information
This function lists data about a reseller's accounts.
get/resellerstats
Query parameters
userstring username required
Example:username
The reseller's username.
filter_deleted0 | 1
Do not display the reseller's deleted cPanel accounts in the function's acct return. This parameter modifies the data output in the acct return.
- 1 — Do not display.
- 0 — Display.
filter_suspended0 | 1
Do not display the reseller's suspended cPanel accounts in the function's acct return. This parameter modifies the data output in the acct return.
- 1 — Do not display.
- 0 — Display.
monthinteger
Example:2
The month to query, in numeric format.
This parameter defaults to the current month.
yearinteger
Example:2019
The year to query, in numeric format.
This parameter defaults to the current year.
Response
HTTP Request was successful.
Example response
{
"data": {
"reseller": {
"acct": [
{
"bandwidthlimit": "500",
"diskquota": "1100.00",
"diskused": "1.57",
"domain": "example1.com",
"package": "default",
"user": "example1"
}
],
"diskused": 5.69,
"month": 2,
"totalbwalloc": "500",
"totaldiskalloc": "1100",
"user": "username",
"year": 2019
}
},
"metadata": {
"command": "resellerstats",
"reason": "OK",
"result": 1,
"version": 1
}
}