Cards and batches
A card is one printed Hotspot login. Cards are created in batches. A card is either a Standard code — one long code — or a Numeric username + password — a short digits-only username and password, typed on the router’s own login page.
Create a batch of cards
Section titled “Create a batch of cards”- Go to Hotspot access → Card batches and select Create cards.
- 1. Plan and quantity:
- Service plan — the plan that sets each card’s speed, data, and time;
- Number of cards — from 1 to 10,000. Cards get serial numbers #1 to #N and print in that order;
- Cafe limit — cafes that create cards in the cafe operator panel can create up to 1,000 cards per batch; see Cards in the cafe panel.
- Batch reference — a name to recognise the batch. Generate a new reference fills one in for you.
- Must be sold before use — cards will not log in until they are sold to a shop or partner. This can never be changed after the batch is created.
- 2. Card format: Standard code or Numeric username + password. See Choose the card format.
- 3. Validity:
- Valid for a number of hours, days, or weeks counted from the first login; or
- Fixed expiry — all cards expire at one date and time;
- Activation deadline (optional) — a card not used by this time stops working. It must be before a fixed expiry. For numeric cards that start on first use, the panel fills in a deadline for you (see Warnings about guess risk); change it or clear it if you prefer.
- 4. Where vouchers work: All Hotspot access zones or Selected access zones.
- Select Create … cards. If Valid for is empty or zero the button stays off and the panel tells you to enter a number above zero.
Choose the card format
Section titled “Choose the card format”- Standard code — one printed code that looks like
HSP-XXXXXX-XXXXXXXXXXXX. This is the default. - Numeric username + password — a username and a password made only of digits, typed on the router’s own login page. Persian and English digits both work when a customer signs in.
For numeric cards you also set:
- Username length — 6 to 10 digits;
- Password length — 6 to 12 digits;
- Prefix (optional) — the first digits of every username, for example one prefix per shop. It must be digits only and leave at least four random digits in the username: a 6-digit username allows a prefix of up to 2 digits, 7 allows 3, 8 allows 4, 9 allows 5, and 10 allows 6. The prefix is printed on every card, so it is not a secret, and a short password under a long prefix allows very few cards.
Under the choices, Example shows what a username will look like: the prefix in colour and the random digits as dots. The format, lengths, and prefix are fixed once the batch is created.
If a Hotspot endpoint in the zones you choose last downloaded an older login page, create is refused with a message that numeric cards are not supported there. Download the current page for that endpoint and have it applied, or use the router’s own login page — see Router login page.
Warnings about guess risk
Section titled “Warnings about guess risk”A short, digits-only password is easier to guess than a long one, so numeric cards rely on login rate limiting rather than password length. Farava recommends how long numeric cards should stay valid and how many to keep active, and warns when a batch goes past that. A warning never stops you from creating the batch.
- As you change the size, validity, deadline, lengths, or prefix, the panel shows Recommended: cards stay valid for up to N days in total. The Activation deadline is suggested to fit that, and a line under it shows Activation window … days + valid … days = … days.
- If your choices go past what is recommended, an amber box lists what is risky — no end date, a lifetime longer than recommended, a password too short for that lifetime, more cards than the secure count, or login limits not set up. Create cards stays off until you tick I understand the guess risk and want to create these cards. If the warnings change, you tick again.
- After the batch is created, the same warnings are shown once at the top of the Print cards page (or the batch page, if you may not export codes). Dismiss them, or note them down: they are not shown again.
- One limit is firm: you cannot create more cards than there are unused usernames under the prefix. The panel says how many you can create.
Cards with no end date stay counted until you revoke them. Farava reports in Logs → System events when active numeric logins of one length reach 80% of their limit (Numeric logins are close to their guess limit), reach it (Numeric guess limit reached), and when they drop back under it (Numeric logins are back under their limit). If the event is for a prefix, its details say it applies under a prefix of that many digits.
Print the cards — once only
Section titled “Print the cards — once only”After you create a batch, the Print cards page shows progress (Waiting → Generating → Ready) and then offers the codes:
- PDF for printing — cards ready to print and cut, 10 per page;
- CSV file — a spreadsheet of the codes, in serial order.
For numeric cards the CSV has Digits in the CSV: English digits (0-9) or Persian digits (۰-۹). It starts on Persian digits when the panel is in Dari or Pashto, and on English digits otherwise. The PDF always prints English digits, and says so on the page; use the CSV when you need Persian digits.
Cards print in serial order. Keep the stack in that order: you hand cards over by their numbers.
A Time left counter shows how long the codes can be downloaded. Codes are security-sensitive and Farava does not keep them. When the time runs out, or when you select I’ve saved the codes — close the window and confirm Close for good, the codes are gone.
You can return to Print cards from the batch page or from Needs attention on the Overview while the window is open.
Choose the card layout
Section titled “Choose the card layout”The printed PDF follows one deployment-wide setting in Settings → Network → Card printing (Router login page):
- Core login page — the default; the full code is largest on the card;
- MikroTik stock page — the card’s separate username and password lines are largest, for routers that use MikroTik’s own login page.
Both layouts keep the full code and both login lines, and CSV files are the same either way. Only a user allowed to change enforcement settings can edit this.
In Settings → Network → Card printing, the Card layout section sets how the cards sit on the page:
- Cards per row — from 1 to 6, default 2;
- Text size — 8 to 20 pt;
- Username & password size — 8 to 40 pt; left empty, it follows Text size × 1.6.
How a customer signs in
Section titled “How a customer signs in”The customer connects to the Hotspot Wi-Fi and opens any website. What they type depends on the login page on your router — see Router login page:
- Core login page — type the whole code, which looks like
HSP-XXXXXX-XXXXXXXXXXXX, into the single field. The page is in Dari, Pashto, English and Turkish. - MikroTik stock page — use the Username (
hs_…) and Password lines printed on the card. The password can be typed with or without its spaces. Never type the fullHSP-…code into the username field; it is rejected to protect the code. - Numeric cards — type the card’s digits username and password on the router’s own login page, in Persian or English digits.
If a batch is set to Must be sold before use, an unsold card is refused at login until it is sold.
Manage a batch
Section titled “Manage a batch”Open a batch from Card batches. Its page has three tabs:
- Cards — every card with its Card reference, usage status, holder, sale
date, and first login. Search by the start of a card reference — for numeric
cards, up to 10 digits, in Persian or English digits, with or without spaces or
an
hs_start — or filter by usage status, sale state, or Card numbers; - Holders — who holds the cards now. This is a stock view, not a cash statement;
- Sales — the sales made from this batch.
The batch list has a Card format column (choose it under Columns), and the batch page shows Card format — for example Numeric · 8-digit username · 8-digit password · prefix 2201.
A batch shows one status: Ready, Generating, Failed, Suspended, or Revoked. Use the batch actions to:
- Suspend — the cards stop working temporarily; Resume restores them;
- Revoke — the cards stop working for good. The confirmation shows how many cards stop working, how many are in use right now, and how many were sold but not used (you may owe buyers a refund). Tick I understand this can’t be undone, then select Revoke … cards.
Sessions already connected close once the router acknowledges the disconnect.
Archive, restore and permanent delete
Section titled “Archive, restore and permanent delete”A revoked batch can be archived to set it aside. Only a Revoked batch can be archived; if something still depends on it (for example cards in use or sold), the panel names that blocker first.
- Archive — sets the batch aside permanently. Its codes are not recovered.
- Restore — clears the archive markers. The batch stays revoked and its cards still do not work.
- Delete permanently — removes an archived batch for good, only when no history or dependency blocks it.
Revoking never returns money by itself — see Refund revoked cards.
Manage a single card
Section titled “Manage a single card”Open a card from the batch’s Cards tab. You can Suspend, Resume, or Revoke that one card. The page shows:
- Card — its status, Card number (for example #12), the Batch as a link (View batch), when it was Activated, its expiry, and Held by — who holds it now.
- Plan — what the card gives the customer, taken from its batch: Plan name, speed (download and upload), data cap, validity, activation deadline, and face price. If the batch cannot be read, this section says the plan details are not available and the rest of the page still works.
- Data — a meter with the data used, the cap, the percent used and what remains, for example 1.2 GB / 5 GB, 24% used, 3.8 GB remaining. A card with no cap shows Unlimited data and how much it has used. A card at its cap says All of the data is used up.
- Sessions — each time the card connected, with Started, Status, Duration, Router, Last seen, Traffic, Disconnect state, and an End session button for a session that is still connected. Router shows the router’s name; if your role may not view network devices it shows Not reported. The long technical Reference of a session is hidden: turn it on under Columns when support asks for it.