Javascript
const url = 'https://sandboxapi.me-cash.com/v1/virtual-account/{VirtualAccountId}'; 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": "virtual account fetched successfully", "status": "success", "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "firstName": "<string>", "lastName": "<string>", "email": "jsmith@example.com", "phoneNumber": "<string>", "bvn": "<string>", "reference": "<string>", "account": { "name": "<string>", "bankName": "<string>", "sortCode": "<string>", "number": "<string>" }, "status": "<string>", "currency": "<string>", "country": "<string>", "isPermanent": true, "expiryTime": 123, "created": "2023-11-07T05:31:56Z", "expired": "2023-11-07T05:31:56Z" } }
Retrieves the details of a specific virtual account by its unique identifier.
The unique identifier of the virtual account.
Virtual account details retrieved successfully.
"virtual account fetched successfully"
"success"
Show child attributes