Skip to main content
GET
/
api
/
v1
/
account-balances
Retrieve Account Balance
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

The account balance details.

total
string<^[0-9]+$>
required

The total balance for this account (spendable and pending).

spendable
string<^[0-9]+$>
required

The amount that can be spent from this account.

pending
string<^[0-9]+$>
required

The amount that is being reviewed for spending.