Javascript
const url = 'https://sandboxapi.me-cash.com/v1/wallet/{walletId}/balance'; const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}, body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "message": "wallet balance fetched successfully", "status": "success", "data": { "id": "cfd2de64-a896-4405-8736-a1b2c3d4e5f6", "balance": 23094071, "currency": "NGN", "country": "NG" } }
This API fetches the balance of a specific wallet.
The unique identifier of the wallet
Wallet balance retrieved successfully.
"wallet balance fetched successfully"
"success"
An object representing a user's wallet.
Show child attributes