Retrieve a wallet

Retrieve the details of a wallet using wallet_ref returned during creation.

GET
https://api.tryduplo.com/v1/wallets/:wallets_ref
curl --location --request GET 'https://api.duplo.com/wallets/dp_wallet_7c443af256472ac95b68fc531bb545e6' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer dp_test_P2tH90snfuQB0qlPopnhdgkOpbs' \
const duplo = require('duplo')('dp_test_P2tH90snfuQB0qlPopnhdgkOpbs');
const virtualAccount = await duplo.wallets.get('dp_wallet_7c443af256472ac95b68fc531bb545e6');
$duplo = new \Duplo\DuploClient(
 'dp_test_P2tH90snfuQB0qlPopnhdgkOpbs'
);
$duplo->wallets->get('dp_wallet_7c443af256472ac95b68fc531bb545e6');
200 OK
{
   "data": {
       "wallet_ref": "dp_wallet_7c443af256472ac95b68fc531bb545e6",
       "first_name": "Victor",
       "last_name": "Alade",
       "created_at": "2021-08-09T12:06:19.000Z",
       "currency": "NGN",
       "status": "active",
       "available_balance": "0.00",
       "legder_balance": "0.00",
       "bank_accounts": [
           {
               "account_ref": "dp_act_ab21b285350ae40d49034aebbcaa1a41",
               "account_number": "9977633837",
               "created_at"
: "2021-08-09T12:06:19.000Z",
               "account_name": "MERCHANT(Victor Alade)",
               "provider": {
                   "bank_code": "053",
                   "bank_name": "Providus",
                   "id": "providus",
                   "default": true
               }
           }
       ],
       "email": "victor@duplo.com"
   },
   "errors": {},
   "message": "Request successful"
}
Need Support?

Helpful resources while you’re building or for that tricky problem you might be having.

Go to Help Center
Did this page help you?
Yes
No