Let's get a merchants wallet balance

You can retrieve a merchant balance by making a GET request to the endpoint https://integrations.getravenbank.com/v1/accounts/wallet_balance and you will get a response containing your wallet balance just as shown in the example below.

Example

var axios = require('axios');

var config = {
  method: 'post',
  url: 'https://integrations.getravenbank.com/v1/accounts/wallet_balance',
  headers: { }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
{
  "status": "success",
  "message": "merchant wallet balance retrieved successfully",
  "data": [
    {
      "currency": "NGN",
      "available_bal": 100,
      "ledger_bal": 100
    },
    {
      "currency": "USD",
      "available_bal": 0,
      "ledger_bal": 0
    },
    {
      "currency": "GBP",
      "available_bal": 0,
      "ledger_bal": 0
    }
  ]
}
👍

Try it in the console

Click here to try it