GET
/
api
/
v1
/
account-balances
Retrieve the account balance for a user
const url = 'https://api.gnosispay.com/api/v1/account-balances';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "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

200
application/json

The account balance details.

The response is of type object.