Fetch wallet balance
Returns one wallet's balances in the provided currencies, as a flat currency-to-amount map: the Payout (Withdraw) wallet by default, the Fee wallet with walletType=FEE, or the Collection (Deposit) wallet with walletType=DEPOSIT. The Collection wallet is the one that settlement: "request" withdrawals debit and that pool-account deposits credit.
Request
- Base URLhttps://sandbox.api.afriex.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Comma-separated list of currencies to fetch balances for. If omitted, balances for all supported currencies are returned.
The wallet to read. Defaults to WITHDRAW, the Payout wallet. FEE reads the wallet that settles transaction fees, which is zero for a business that does not use one. DEPOSIT reads the Collection wallet, and returns an empty data object while the Collection wallet is not enabled.
Response
Returns a map with currencies as keys and balances as values.
Example response
{
"data": {
"USD": 100.5,
"EUR": 250.75,
"GBP": 300
}
}Changes
No recorded changes to this operation across all 1 revision of this API.