Get wallet balance
Get the available and ledger balances of a digital wallet
URI
GET
https://api.tryduplo.com/v1/wallets/balance/:wallet_ref?business_id=Parameters
Header
Authorization
string
set value to Bearer SECRET_KEY
Path Param
wallet_ref
string required
Wallet referenece
Query param
business_id
string required
Merchant business id
Sample request
curl --location --request GET 'https://api.tryduplo.com/v1/wallets/balance/:wallet_ref?business_id=' \
--header 'Authorization: Bearer SECRET_KEY' \
--data-raw ''var axios = require('axios');
var data = '';
var config = {
method: 'get',
url: 'https://api.tryduplo.com/v1/wallets/balance/:wallet_ref?business_id=',
headers: {
'Authorization': 'Bearer SECRET_KEY'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});Duplo Response
Last updated
Was this helpful?