JavaScript
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}}; fetch('https://sandboxapi.me-cash.com/v1/wallet', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "status": "success", "message": "Wallets fetched successfully", "data": [ { "id": "cfd2de64-a896-4405-8736-a1b2c3d4e5f6", "balance": 23094071, "currency": "NGN", "country": "NG" } ] }
This API is used to fetch all wallets for a user.
A list of wallets was successfully retrieved.
"success"
"Wallets fetched successfully"
Show child attributes
The unique identifier for the wallet.
"cfd2de64-a896-4405-8736-a1b2c3d4e5f6"
The available balance in the wallet.
23094071
The currency code (ISO 4217) of the wallet.
"NGN"
The country code (ISO 3166-1 alpha-2) associated with the wallet.
"NG"
Was this page helpful?