Errors
For validation errors,
message is a list of strings, not a single string. Handle both when you read errors.There Is No “Not Enough Data” Error
The residential pool is tracked, not enforced. Creating or topping up a sub-user never fails because you are out of data.remainingBytes just goes negative. Keep an eye on it and buy more residential data when it drops below zero.
Static proxy capacity works the other way: it is enforced, and asking for more than you have returns 400 with nothing assigned.
Retries
You can always retry a502. Creating sub-users, changing their data, deleting them and allocating proxies either fully succeed or change nothing.
- A
502onPOST /reseller/usersmeans no account was created and no data was taken. - A
502onDELETE /reseller/users/:usernamemeans the sub-user is unchanged. The credentials still work and nothing was refunded. - A
502onPOST /reseller/proxiesmeans no IPs were assigned and no capacity was used.
400, 404 or 409 with the same request gives the same error.
Suspended Accounts
If every call returns401 Reseller account is suspended, contact support. Your existing sub-users keep working until their data runs out, so your customers aren’t cut off right away. While suspended, you can’t create, change or allocate anything.
Deleting Sub-Users
You can delete sub-users. Their unused data returns to your pool, the same as when you remove data from an account. Data your customer already used is gone.Using Live Usage Sparingly
Live usage lookups contact the proxy network. Use them when you need them, such as page loads or billing runs, not in fast polling loops:includeUsage=trueonGET /reseller/userslooks up every row.includeUsage=trueonGET /reseller/accountlooks up every sub-user.live=trueon usage history looks up every account in the range.