Wallets
A wallet stores a customer’s credit balance:- PREPAID - Customer purchases credits upfront
- POSTPAID - Usage tracked for later billing
Conversion rate determines how credits map to currency (e.g., 100 credits = $1.00).
Credit Grants
Credits are added to wallets via credit grants:Grant Types
- Prepaid
- Promotional
- Recurring
Customer purchases credits:Credits are deducted as usage occurs.
Credit Application
Credits are applied to invoices automatically:Application Order
- Priority - Higher priority grants first
- Expiry - Expiring grants before non-expiring
- FIFO - Oldest grants first
Promotional credits typically have lower priority than prepaid credits.
Auto Top-Up
Automatically replenish credits when balance is low:- Grant specified credit amount
- Optionally create invoice for payment
Credit Expiration
Credits can expire after a period:- NEVER - Credits don’t expire
- DURATION - Expire at specific date
- BILLING_CYCLE - Expire at end of billing period
Use Cases
Freemium Model
Freemium Model
Grant promotional credits to free tier users:When credits run out, prompt upgrade to paid plan.
Enterprise Prepaid
Enterprise Prepaid
Large customers purchase credit packages:Auto top-up ensures uninterrupted service.
Seasonal Promotions
Seasonal Promotions
Time-limited credit offers:Track campaign performance via metadata.
Monitoring
Track wallet health:- Current balance
- Total grants issued
- Total credits consumed
- Expiring credits in next 30 days
- Auto top-up triggers
Set up alerts when customer balances are running low to prevent service disruption.
Related Resources
Wallets Guide
Detailed wallet configuration
Grants Guide
Credit grant management
Create Wallet API
API reference for wallets
Grant Credits API
API reference for credit grants