Resellers
A reseller is an account that sells your VPN to their own customers. They sign in to the same panel as you, but a reseller works with only their own clients, within an allowance that you set: a number of clients, a traffic pool, credit that plans cost, or any of them together. They can have their own Telegram shop and their own brand on their clients’ pages. Only the owner makes and manages resellers.
Create a reseller
Section titled “Create a reseller”- Turn on Selling and operator tools in Settings → Panel, then open Accounts and press Add account.
- Choose the role Reseller and give a Username. Leave the password empty and AFTAB makes one of 14 characters and shows it once, with the address and username, ready to send. A password you type is at least 8 characters. A generated password must be changed at the first sign-in, and the form asks the same of one you type unless you switch that off. The password is shown once and only its hash is kept: if it is lost, New password in the row’s menu makes another and ends their sessions.
- Set the allowance, below. Under Plans they may use and Inbounds their clients get, tick what they may sell and where their clients get configs. With nothing ticked, all of them are allowed.
- Optionally fill Their brand on their clients’ pages: a name of at most 32 characters, a support link and a logo. Empty fields show the panel’s own. A support link that starts with @ becomes a Telegram link.
- Press Create and hand over the sign-in details.
The allowance
Section titled “The allowance”- Most clients: how many clients they may own. 0 means no limit.
- Traffic pool: each client’s traffic limit comes out of the pool when the client is made or renewed. Give the pool in Traffic in the pool (GB), and add more later with Top up. A client with no traffic limit is refused, because it would take nothing from the pool. Adding only days to a client stays free. When the traffic starts over every few days, the pool pays for every period up to the end date, at the start: 50 GB every 30 days for 90 days takes 150 GB. A renewal applied now keeps the days the client still has, and those days are part of the length that is paid: 29 days left plus a 30-day plan is 59 days, so a 30-day cycle is paid twice. A renewal that waits until the current plan ends is charged for the plan’s length only. A cycle with no end date is refused.
- Pay with credit: clients and renewals are by plan. Each costs the plan’s Cost for resellers (credit), set on the Plans page, less the reseller’s Discount (%), from 0 to 100. A plan with a cost of 0 is free. Opening credit is the starting balance.
A reseller may have the pool, the credit, both, or neither. With neither, only the client count limits them and plans cost nothing. You and your admins are never charged.
How charging works
Section titled “How charging works”A reseller is charged in the same step as the change: the charge and the change stand or fall together, so a change that fails costs nothing. Making clients, renewing them and approving an order in the reseller’s own shop are all charged this way. When the allowance cannot cover it the change is refused with a message, and nothing is taken: the clients are full, the pool is short, the credit is short, a plan was not chosen in credit mode, a client has no traffic limit in pool mode, or a usage cycle has no end date.
A renewal that waits for the current plan to end is charged when it is queued. Cancel the waiting renewal gives the charge back, with a Refund line in the ledger.
A reseller who pays with credit or a pool cannot change a client’s traffic, days or limits by editing it, and cannot reset its usage: they do it by renewing the client, which is charged. In credit mode the plan fills in the traffic, days and limits, and values sent beside it are ignored.
Top up and the ledger
Section titled “Top up and the ledger”Open the row’s menu and choose Top up. Give Credit to add and Traffic to add (GB). A negative amount takes back, and a pool never goes below empty. Money received is what they paid you for it: it goes in the money book, and 0 means a gift or a correction. Taking back is never a sale. Traffic can be added only to an account that has a pool.
Ledger lists every change of the allowance, newest first: Top-up, Adjustment, New client, Renewal and Refund, each with the client or plan, who did it and a note. A reseller sees their own ledger from their Overview.
A reseller who pays with credit sees Top up on their Overview, which opens Buy credit. It works when you have set a Price of one credit and a card or crypto address in the Shop settings: they order some units of credit, pay, and send the receipt as text. You approve the order in the shop’s orders, and the credit and the money book line are written in one step. At most 5 credit orders can wait at a time. Without a price they are told to ask you to top them up.
On their Overview they also set Alert below credit and Alert below pool (GB). Empty fields use the cheapest plan they may sell (its price for credit, its traffic for the pool). When credit or the pool drops below that floor, their shop bot messages their admin chats once; the same alert fires again only after a top-up and a new drop. Without a shop bot and admin chats, nothing is sent.
What a reseller can and cannot do
Section titled “What a reseller can and cannot do”They see Overview, Clients, Plans, Shop, Announcements, Activity, Reports as My month, and Cards, a printable sheet with a card for each of their own clients. In Settings they see only Account: password, two-factor sign-in, passkeys and signed-in devices.
- Clients. Make, bulk-make, renew, enable, disable and delete their own clients, and share their links. A client of another reseller or of the owner answers “not found”. A reseller cannot choose an exit for a client: exits are the panel’s, though a plan they may use can carry one. The owner can select many clients on Clients and Give to reseller (or Take back to panel): that moves ownership with no charge, the same as setting the reseller on one client.
- Plans. They see only the plans they may use, and cannot edit plans.
- Shop, bot commands and announcements. Their shop sells under their name, with prices of their own. In a private admin chat of their own shop bot,
/client NAMEshows one of their own clients with buttons (+30 days, renew with a plan, enable/disable, link and QR code) and/new PLAN NAMEmakes a client on an allowed plan, charged to their allowance: see The Telegram shop. Their announcements go to their own clients only: see Announcements. - API tokens. A reseller’s Settings → Account tab has no API tokens card (that card is on the owner’s Settings → Security), so resellers create and manage their own tokens (up to 50, with Full, Clients or Read only access) through
POST api/v1/tokensfrom a signed-in browser session (X-Requested-With: aftab). A reseller’s token acts only on their own clients and allowed plans and inbounds, within their allowance: see API. - Activity and reports. They see what they did and what the panel did to their clients. My month is their own books: see Reports.
- Never. Inbounds, servers, bridges, exits, routing, other accounts, other people’s clients and the server’s own status. Their Overview shows their clients’ numbers and their allowance, and nothing of the server.
If a reseller loses their phone, Edit on their row has a button that turns off their two-factor sign-in, and they can turn it on again themselves.
Switch off or delete
Section titled “Switch off or delete”Switching an account off signs it out and stops its shop’s bot. Delete removes the account with its tokens, ledger and shop settings (including the sealed bot token) and stops its shop’s bot from polling: its clients stay and become yours (showing your brand and linking to your shop bot on their subscription pages) and keep working, any links to the old reseller bot are cleared so they can link to the panel’s bot, and past orders and sales remain in the history.
What can go wrong
Section titled “What can go wrong”- “Your allowance of N clients is full”. Delete clients they no longer need, or raise Most clients.
- “This needs X GB but your pool has Y GB left”. Top up the pool, or lower the client’s traffic.
- “This costs X but you have Y credit”. Top up, or choose a cheaper plan.
- The panel asks them to choose a plan. In credit mode every client and renewal needs a plan.
- The panel says to change limits by renewing the client. See above: the change is made by renewing.
- A plan is not available to them. It is not ticked under Plans they may use.
- A reseller says a client is missing. It is not theirs: a client of another account is not found for them.