> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wifipadi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vouchers and agents

> Sell prepaid access codes, and let agents sell them on your behalf.

A voucher is a prepaid code a customer enters on your captive portal instead of paying online. Vouchers suit customers who pay cash, and locations where card payment is awkward.

Go to **Vouchers**. The page has three tabs: **Vouchers** (every individual code), **Batches** (the runs you generated, each with a print link), and **Agents**.

## Generate a batch

1. On the **Vouchers** tab, select **Generate batch**.
2. Fill in the fields:

| Field            | Meaning                                                          |
| ---------------- | ---------------------------------------------------------------- |
| Plan             | The plan the code unlocks.                                       |
| Quantity         | How many codes to create.                                        |
| Unit price (NGN) | What the code sells for.                                         |
| Agent            | Optional. Assigns the batch to an agent and debits their float.  |
| Code prefix      | Optional. A short label at the start of every code in the batch. |
| Valid until      | Optional. After this date, unused codes stop working.            |

3. Select **Generate**.

The batch appears on the **Batches** tab with a **Print** link, which opens a printable sheet for cutting and distribution.

## Agents

An agent is someone who sells your vouchers — a shop near your location, or a staff member. Each agent holds a **float**: money they have paid you up front. Generating a batch against an agent debits their float, so you always know who owes what.

Switch to the **Agents** tab, select **Add agent**, and enter a name, phone, and starting float. Email and a portal password are optional; add them if the agent should sign in to check their own stock.

## Disabling a voucher

If a code leaks or is sold by mistake, disable it. Disabling a voucher also disconnects anyone currently using it.
