Skip to main content

The WalletBalance object

Represents the balance of a merchant's wallet for a specific currency. The wallet balance is divided into different categories to help understand available and committed funds.

Fields

FieldTypeDescription
currency
REQUIRED
stringThree-letter ISO currency code
available
REQUIRED
numberAmount available for withdrawal or payout
pending
REQUIRED
numberAmount pending from recent transactions (not yet available)
reserved
REQUIRED
numberAmount reserved for pending payouts or refunds
total
REQUIRED
numberTotal balance (available + pending + reserved)

Example

{
"currency": "USD",
"available": 1,
"pending": 1,
"reserved": 1,
"total": 5000
}

Usage

const balances = await client.wallet.getBalances();
const usdBalance = balances.find(b => b.currency === 'USD');
console.log(`Available: ${usdBalance.available}, Pending: ${usdBalance.pending}`);