This function lists all of a reseller's cPanel accounts.
uapi --output=jsonpretty \ --user=username \ Resellers \ list_accounts
{- "apiversion": 3,
- "func": "list_accounts",
- "module": "Resellers",
- "result": {
- "data": [
- {
- "domain": "example.com",
- "select": "1",
- "user": "username"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}