Retrieve Wallets

How to retrieve (list) IntaSend wallets owned by you.

The list Wallets API enables you to access Wallets owned by you or created in your account.

Get wallets List

from intasend import APIService

service = APIService(token=token, test=True)

response = service.wallets.retrieve()
print(response)
use IntaSend\IntaSendPHP\Wallet;

$wallet = new Wallet();
$wallet->init($credentials)
  
$response = $wallet->retrieve();
print_r($response);
const IntaSend = require('intasend-node');

const intasend = new IntaSend(/*...Authenticate*/)

let wallets = intasend.wallets();
wallets
  .list()
  .then((resp) => {
    console.log(`Response: ${JSON.stringify(resp)}`);
  })
  .catch((err) => {
    console.error(`Error:`, err);
  });

Response of list of wallets

Returns an array/list of wallets.

[{
    'wallet_id': 'AWR19L',
    'currency': 'KES',
    'wallet_type': 'WORKING',
    'label': 'MY-WALLET-ID',
    'can_disburse': 'true',
    'current_balance': '0.00',
    'available_balance': '0.00',
    'updated_at': '2021-05-31T21:51:05.577470+03:00'
}]

Retrieve Wallet Details by ID

from intasend import APIService

service = APIService(token="token", test=True)

response = service.wallets.details('<wallet_id>')
print(response)
use IntaSend\IntaSendPHP\Wallet;

$wallet = new Wallet();
$wallet->init($credentials)
  
$response = $wallet->details('<wallet_id>');
print_r($response);

Response of Wallet Details by ID

Returns an object of wallet with details like current and available balances. If you would like to retrieve the wallet transactions and history, please check: Wallet Transactions

{
    'wallet_id': 'AWR19L',
    'currency': 'KES',
    'wallet_type': 'WORKING',
    'label': 'MY-WALLET-ID',
    'can_disburse': 'true',
    'current_balance': '0.00',
    'available_balance': '0.00',
    'updated_at': '2021-05-31T21:51:05.577470+03:00'
}