Get Customer Wallets
Check customer wallet balances across currencies.
Create Ledger Entry
Add or remove credits from customer wallets.
List Ledger Entries
View complete transaction history with pagination.
What are Customer Wallets?
Think of customer wallets as digital piggy banks for your users. Every customer gets one automatically when you create their account. You can use these wallets to:- Track credit balances in USD and INR
- Build API credit systems like OpenAI or Claude
- Create prepaid billing where customers buy credits upfront
- Handle refunds as wallet credits instead of cash
- Manage complex billing with detailed transaction history
Every customer automatically gets a wallet when you create their account. Wallets support USD and INR currencies with separate balances for each.

How It Works
Customer wallets are simple: they hold money (credits) that customers can spend on your services. When a customer makes a purchase, their wallet balance is checked first, and any available credits are used before charging their payment method.Automatic Setup
When you create a new customer, Dodo Payments automatically creates a wallet with zero balance. It’s ready to use immediately through our API.Multi-Currency Support
Each wallet can hold balances in different currencies:Balance in US Dollars (stored in cents)
Balance in Indian Rupees (stored in paise)
Currently, only USD and INR balances are available. More currencies coming soon.
Working with Wallets
Check Customer Balances
See how much credit a customer has across all currencies. Perfect for checking if they have enough funds before processing a purchase.Get Customer Wallet Balances
Check a customer’s wallet credit balances in all supported currencies.
Add or Remove Credits
Give customers credits (like welcome bonuses) or deduct credits (like usage charges). You can add reasons for each transaction to keep track of what happened.Create Customer Wallet Ledger Entry
Add or remove credits from a customer’s wallet.
View Transaction History
See every credit and debit transaction for a customer. Great for debugging billing issues or showing customers their spending history.List Customer Wallet Ledger Entries
View every credit and debit transaction for a customer.
Real-World Examples
API Credit System (Like OpenAI)
Build a system where customers buy credits and spend them on API calls:Prepaid Billing System
Let customers buy credits upfront and spend them over time:1
Welcome New Customers
Give new customers some free credits to get started.
2
Handle Credit Purchases
When customers buy credits, add them to their wallet.
3
Charge for Usage
Deduct credits when customers use your service.
4
Monitor Balances
Check if customers are running low on credits.
Multi-Currency Support
Handle customers in different countries:US Customers
US Customers
Give USD credits to US-based customers.
Indian Customers
Indian Customers
Give INR credits to Indian customers.
Best Practices
Prevent Duplicate Transactions
Use idempotency keys to make sure you don’t accidentally charge customers twice for the same thing:Check Balances Before Charging
Always verify customers have enough credits before processing expensive operations:What’s Coming Next
These features are planned for future releases:
- Credit Expiration: Set credits to expire after a certain time
- Better Analytics: Detailed spending reports and usage insights
- More Webhooks: Real-time notifications for balance changes and low credits
Start simple with basic credit/debit operations, then add more complex features as your business grows.