Retrieve a Wallet

GET/api/v1/wallet/:wallet_id

Fetches detail of a specific wallet

Parameters

NameTypeRequiredDescription
wallet_idstringYesWallet ID.
1
Request Example
(cURL)
curl -X GET "https://api.piggyvest.business/api/v1/wallet/:wallet_id" \\
-H "Authorization: Bearer YOUR_SECRET_KEY"
2
Success Response(200)
(JSON)
{
"status": true,
"message": "Wallet details fetched",
"data": {
"id": "f3ac0937-1d03-4843-b3d3-a09210967e49",
"business_id": "43e157b6-179c-432a-9392-e0827da96d82",
"virtual_account_id": "ef2fedb1-e6fa-4237-aeb3-c283811fbe38",
"currency": "NGN",
"name": "Chinex Tech Savings",
"status": "active",
"type": "api",
"created_at": "2023-11-30T23:26:46.125000000Z",
"updated_at": "2023-11-30T23:26:46.125000000Z",
"deleted_at": null,
"balance": 0,
"withdrawal_count": 2,
"creation_interest_rate": 8,
"current_interest_rate": 8
}
}
3
Error Response(400)
(JSON)
{
"status": false,
"message": "Failed to fetch single wallet details"
}