JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.valox.co/api/v1/account-balances', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "total": "<string>", "spendable": "<string>", "pending": "<string>" }
Retrieves the balance information for the authenticated user (total, spendable and pending balances)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The account balance details.
The total balance for this account (spendable and pending).
The amount that can be spent from this account.
The amount that is being reviewed for spending.