Creating a sub-user
POST /reseller/users
cURL
Request Fields
200 OK
Credentials stay retrievable from the list and detail endpoints. This is not a one-time reveal, so you don’t have to store the password yourself.
Errors
Listing your sub-users
GET /reseller/users
Paginated. Acceptspage and limit (max 100).
cURL
includeUsage=true to include each sub-user’s live consumption from the gateway. This costs one gateway lookup per row, so the request gets slower as the page grows — use it for dashboard views, not high-frequency polling.
200 OK
"usage": null and a usageError note rather than failing the whole request. Handle null usage as “unknown”, not as zero.
Checking one sub-user
GET /reseller/users/:username
A single sub-user with live usage — this is the endpoint for “how much data has this customer consumed?”cURL
rawUsed >= rawTotal the account is exhausted and stops working. Top it up to reactivate it.
Topping up a sub-user
POST /reseller/users/:username/data
cURL
502 means nothing was charged and a retry is safe.