Wallets & Credits
Get Wallet
Retrieve details of a specific wallet by its ID.
GET
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/flexprice/flexprice/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The unique identifier of the wallet to retrieve
Response
Unique identifier for the wallet
ID of the customer this wallet belongs to
Wallet name
Three-letter ISO currency code (e.g., USD, EUR)
Type of walletValues:
PREPAID, POSTPAIDCurrent status of the walletValues:
ACTIVE, INACTIVE, SUSPENDEDCurrent balance in currency
Current balance in credits
Conversion rate from credits to currency during consumptionExample: If
conversion_rate is “2”, then 1 credit = 0.5 in currencyConversion rate for top-ups to the currencyExample: If
topup_conversion_rate is “2”, then 1 currency unit = 0.5 creditsOptional description for the wallet
Custom metadata as key-value pairs
Wallet configuration
Alert configuration for low balance notifications
Current alert stateValues:
OK, WARNING, CRITICALAuto top-up configuration
Breakdown of available credits by expiry date and priority
Timestamp when wallet was created
Timestamp when wallet was last updated
Understanding Wallet Balance
The wallet balance is represented in two ways:balance: Balance in the wallet’s currency (e.g., USD)credit_balance: Balance in credits
conversion_rate:
credit_balance: 100 creditsconversion_rate: 2balance: 100 / 2 = $50 USD
Credits Available Breakdown
Thecredits_available_breakdown field provides insight into how credits are organized:
By Priority
By Priority
Credits with lower priority numbers are consumed first. This is useful for:
- Using promotional credits before paid credits
- Implementing credit hierarchies
- Managing multiple credit sources
null indicates no specific priority (consumed after prioritized credits).By Expiry
By Expiry
Credits grouped by expiration date. Credits expiring soonest are consumed first.Expiry
null indicates credits that never expire.