Billing Voucher System
Feature Snapshot
| Field | Value |
|---|---|
| Feature name | Voucher Redemption System |
| Primary goal | Allow users to redeem promotional codes for account credits |
| Availability | Workspace owners and billing managers only |
| Location | Plans & Billing page → Redeem Voucher button |
Key Facts the Model Must Know
- Vouchers add credits to workspace accounts, not individual users
- Only workspace owners can redeem vouchers
- Voucher codes are case-sensitive and single-use only
- Credits are applied automatically when using Mito features
- Invalid codes show "Invalid voucher code" error message
- Successful redemption triggers confetti celebration and toast notification
Voucher Mechanics
Redemption Flow
- User clicks Redeem Voucher button in billing page header
- Dialog opens with input field for voucher code
- User enters code and clicks Redeem
- System validates code and adds credits if valid
- Success state shows celebration animation
- Dialog auto-closes after 6 seconds
- Credits balance updates immediately
Code Validation
- Codes are trimmed of whitespace automatically
- Empty codes show "Please enter a voucher code"
- Invalid/expired codes show "Invalid voucher code"
- Server errors are sanitized to "Invalid voucher code"
Success Indicators
- Green checkmark icon appears
- "Voucher Redeemed!" message displays
- "Your credits have been added" confirmation
- Confetti animation plays across screen
- Toast notification: "Voucher redeemed! Your credits have been added to your account."
Supported Scenarios
- Help users redeem promotional voucher codes
- Troubleshoot voucher redemption errors
- Explain where redeemed credits appear
- Guide users to the correct billing page location
Example Conversations
Successful redemption guidance
User: I have a voucher code. How do I redeem it?
Assistant: Go to Plans & Billing in your workspace, then click the "Redeem Voucher" button in the top right. Enter your voucher code and click Redeem. If it's valid, you'll see a celebration and your credits will be added immediately.
Troubleshooting invalid code
User: My voucher says "Invalid voucher code" but I'm sure it's right.
Assistant: Double-check the code - they're case-sensitive. Make sure there are no extra spaces. The code might be expired or already used. If you're certain it should work, contact support with the voucher details.
Permission issue
User: I can't find the Redeem Voucher button.
Assistant: Only workspace owners can redeem vouchers. If you're not the owner, ask them to redeem the code or give you billing permissions in the workspace settings.
Common Issues
| Problem | Cause | Solution |
|---|---|---|
| "Invalid voucher code" | Code expired, used, or typed wrong | Verify code exactly, check expiration |
| Button not visible | Not workspace owner | Ask owner to redeem or grant permissions |
| Credits not appearing | System delay | Refresh page, wait a few minutes |
| Dialog won't open | Permission restrictions | Must be workspace owner or billing manager |
Error Messages the Model Should Recognize
- "Please enter a voucher code" → User submitted empty field
- "Invalid voucher code" → Code validation failed
- "Redeeming..." → Processing state, wait for result
Integration Points
- Credits system: Redeemed credits add to workspace balance
- Analytics tracking: "voucher_redeemed" event fires on success
- Query invalidation: Credits query refreshes to show new balance
- Toast notifications: Success message appears in bottom corner
Related Resources
- User guide:
docs/user/account/redeem-voucher.md - Billing overview: Plans & Billing page documentation
Update Log
- 2026-01-22 — Initial documentation for voucher redemption feature