Skip to main content
GET
Get Credit Wallet Balance

Overview

Credit wallets hold funds available for spending through the Baanx platform. This endpoint retrieves the current balance, currency, and withdrawal status of the authenticated user’s credit wallet. Balance updates reflect purchases, refunds, and withdrawals in real-time. Use Cases:
  • Display user’s available credit balance in your application
  • Check if funds can be withdrawn before initiating withdrawal
  • Monitor credit wallet status for transaction processing
  • Verify sufficient balance before card operations

Authentication

string
required
Your public API client key that identifies your environment
string
required
Bearer token obtained from OAuth flow or direct login

Query Parameters

boolean
default:false
Set to true to route request to US backend environment (if available for your client)

Response

string
Unique identifier for the credit wallet
string
Current balance in the wallet (decimal string for precision)
string
Currency code (e.g., “usdc”, “usdt”)
boolean
Whether funds can be withdrawn from this wallet
string
Wallet type identifier, always “CREDIT” for this endpoint

Code Examples

Important Notes

Balance Precision: Balances are returned as strings to maintain precision for decimal values. Always parse as decimal types in your application, never as floating-point numbers.
Withdrawal Restrictions: The isWithdrawable flag indicates whether funds can be withdrawn. Some credit wallets may have restrictions based on user verification status, pending transactions, or platform policies.