Voucher System
Generating Vouchers
5 min read
•Updated January 2026
Learn how to generate voucher codes through the Kitonga dashboard or API.
Generate via Dashboard
- Go to Vouchers in the sidebar
- Click the Generate button
- Fill in the form:
- Quantity - Number of vouchers (1-1000)
- Duration - Access time
- Send SMS - Optional phone number
- Notes - Optional description
- Click Generate Vouchers
Generate via API
POST /api/portal/vouchers/generate/
Authorization: X-API-Key YOUR_API_KEY
Content-Type: application/json
{
"quantity": 10,
"duration_hours": 24,
"phone_number": "255712345678",
"notes": "January promotion"
}Response Example
{
"success": true,
"vouchers": [
{
"id": 1,
"code": "A1B2-C3D4-E5F6",
"duration_hours": 24,
"is_used": false,
"created_at": "2026-01-14T10:30:00Z"
}
]
}Pro Tip
Generate vouchers in batches of 10-50 for resellers. This makes tracking easier.