Proxy reseller API
Proxy reseller API: clients, plans and GB from your own system
The QuanticData proxy reseller API runs the reseller area from your own system with the same API key: create clients, buy each one a plan as a sub-user, add GB, extend, set a new password, switch auto-renew, and read invoices, transactions, expiring plans and your prices.
To join, create an account, open “Become a reseller” in your dashboard and send the request. We review it and enable your account; you accept the reseller terms and start.
What it covers
What the proxy reseller API does
Everything you do in the reseller area, as API calls under /v1/public/reseller, plus purchases with a clientId.
| Task | Route | What you get |
|---|---|---|
| Overview | GET /v1/public/reseller | Your reseller account at a glance. |
| Clients | GET and POST /clients, GET and PATCH /clients/{id} | List, create, read, edit, archive or restore a client: a name and your own reference. |
| Plans and holders | GET /plans | Every plan with the client that holds it; add clientId for one client. |
| Assign | POST and DELETE /assignments | Give a plan to a client or take it back. Premium ISP city plans can go IP by IP. |
| Sub-users | GET /subusers, GET /subusers/{id}/usage | GB used and left of every plan, and its traffic per day. |
| Add GB | GET and POST /subusers/{id}/topup | Whole GB added to the same plan and login. |
| Extend | GET and POST /subusers/{id}/extend | What an extension costs, then days added to a plan sold by time. |
| Password | GET and POST /subusers/{id}/password | A new proxy password; the old login stops connecting. |
| Auto-renew | GET and PUT /subusers/{id}/auto-renew | Automatic renewal on or off, per plan. |
| Spend per client | GET /usage | What you paid per client between two dates, as JSON or CSV. |
| Invoices and balance | GET /invoices, GET /transactions | Your paid invoices and the movements of your balance. |
| Expiring plans | GET /expiring | Plans about to end, who holds them, and whether they renew by themselves. |
| Prices | GET /prices | Your level, the spend counted, what the next level needs, your prices next to the normal ones. |
Plans
One plan per client, as a sub-user
For Residential Premium, Residential Basic, Mobile, Datacenter and IPv6, each plan is a sub-user with its own id, proxy username and password, allowance and expiry.
Buy the plan with POST /v1/public/purchase and add the clientId: the new plan belongs to that client at once, and the answer carries the client next to the order, the invoice and the proxy login. Leave the clientId out and you can give the plan to a client later with POST /v1/public/reseller/assignments.
GB never move from one sub-user to another. To give a client more GB, top up its own plan: the proxy login stays the same, so nothing changes on the client's side.
Premium ISP plans are bought on the Premium ISP routes with the same clientId field. A city plan can go to a client whole or IP by IP; a pool goes whole. Standard ISP is bought on the plans page at the normal price, then given to a client in the reseller area.
- One client, many plansA client can hold plans on several networks, each with its own login.
- GB per planRead GB used and left for every sub-user in one call.
- Same login after a top-upAdding GB never changes the username or password.
Buy for a client
Test a purchase first, then buy it
With "test": true the purchase answers the plan, the price, the VAT, your balance and whether it is enough, and buys nothing. Add the clientId to check the client too.
An unknown or archived client is refused with 404 CLIENT_NOT_FOUND before anything is charged. The clientId never changes the price: every price route already answers the price of your level.
Drop "test": true and send the same body to buy. The plan is paid from your balance and the answer carries the proxy login to hand over.
Prices are in USD, net of VAT. PayPal, card and Stripe payments carry 22% VAT; crypto and balance payments carry 0%.
Full reference: the API documentation.
curl -X POST https://api.quanticdata.io/v1/public/purchase \
-H "Authorization: Bearer $QD_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: cust-0042-resi-1" \
-d '{"planId": "pln_8c21",
"clientId": "rc_mi3k2a9f41c07d2e5b8a",
"test": true}'Safe by design
Idempotency-Key and read-only keys
The rules that keep a retry or a reporting tool from spending money it should not spend.
One key, one charge
Every request that spends takes an Idempotency-Key header. The same key answers with the same order and charges once, so a retried request never buys twice.
Errors you can act on
An unknown or archived client answers 404 CLIENT_NOT_FOUND before anything is charged; 403 TERMS_NOT_ACCEPTED means the reseller terms still need accepting in the dashboard.
Read-only scope
A key whose only scope is read-only reads the whole reseller API and changes nothing: every request that is not a GET is refused with 403 KEY_READ_ONLY.
Keys of connected apps
A key created by a connected app can read the reseller area but cannot create, edit or assign.
Archive, not delete
A client you no longer serve is archived with PATCH /clients/{id} and can be restored later.
Same API key
The reseller API uses the same API key as the rest of the QuanticData API. No second account, no second balance.
Limits
Reseller API rate limits
The reseller API has its own limits per account, in place of the per-minute limit of the other APIs.
Over a limit the answer is 429 RATE_LIMITED with a Retry-After header in seconds: wait that long and send the same request again, with the same Idempotency-Key if it spends.
Your key's own hourly window still applies on top.
After the sale
Run renewals and billing from your system
The calls a reseller system makes every day, once clients are live.
- Expiring plans, once a day
GET /v1/public/reseller/expiring?days=7lists the plans about to end, who holds them, whether they renew by themselves and the balance renewals are paid from. - Cut off a clientA new proxy password on its plan: the old login no longer connects.
- Bill your clients
GET /usagewithfromandtoreturns what you paid per client; addformat=csvfor a file. A charge stays with the client that held the plan when it was paid.
Prices
Your level prices, in every answer
Partner from $300 a month, Pro from $1,000, Elite from $3,000. Purchases, top-ups, quotes and orders already charge your level: a fixed price per GB for any amount, no pack needed. Below Partner you pay the normal prices.
GET /v1/public/reseller/prices answers your level, the spend counted, what the next level needs, and your price per GB next to the normal one. The level follows the higher of last calendar month's and the last 30 days' spend on QuanticData proxies, and it is checked automatically. See every level price on proxy reseller pricing.
Before you start
Proxy reseller API FAQ
Is there an API for proxy resellers?
Yes. The QuanticData reseller API covers clients, plans and their holders, sub-users with GB used and left, top-ups, extensions, new passwords, auto-renew, spend per client, invoices, transactions, expiring plans and your prices. It uses the same API key as the rest of the QuanticData API and opens once reseller access is enabled and the reseller terms are accepted.
How do I buy a proxy plan for a client through the API?
Send POST /v1/public/purchase with the plan, the client's clientId and an Idempotency-Key header. The plan is paid from your balance and belongs to that client at once; the answer carries the client next to the order, the invoice and the proxy login. An unknown client is refused before anything is charged.
Can I test a purchase without paying?
Yes. Add "test": true to POST /v1/public/purchase: the answer gives the plan, the price, the VAT, your balance and whether it is enough, and nothing is bought. Add the clientId to check the client in the same call.
What are the rate limits of the reseller API?
Per account, the reseller API allows 120 writes per minute, 3,000 reads per hour and 3,000 writes per hour. Over a limit it answers 429 RATE_LIMITED with a Retry-After header in seconds. Your key's own hourly window still applies.
How do I give my billing system access without letting it spend?
Create an API key whose only scope is read-only. It reads everything in the reseller API, including spend per client and invoices, and every request that is not a GET is refused with 403 KEY_READ_ONLY.
How do I cut off a client through the API?
Set a new proxy password on its plan with POST /v1/public/reseller/subusers/{id}/password. The old proxy login no longer connects, and the new one goes only to whoever should use the plan. You can also switch off auto-renew so the plan ends at its expiry.
Build your reseller system on one API key.
Clients, plans, GB and spend per client, with test purchases and one charge per key.