Virtual Accounts
Get Virtual Account Details
GET
https://backendapi.sayswitchgroup.com/api/v1/dedicated_account/:account_idThis endpoint allows you to retrieve the details of a specific virtual bank account using its unique identifier.
Path Parameter:
account_id- The unique ID of the virtual account you want to retrieve (e.g.,484in the example)
Sample Request
cURL
curl -X GET https://backendapi.sayswitchgroup.com/api/v1/dedicated_account/484
-H "Authorization: Bearer YOUR_SECRET_KEY"Sample Response
JSON
{
"success": true,
"message": "Dedicated account successfully retrieved",
"data": {
"id": 484,
"account_name": "John Doe",
"account_number": "1581273727",
"bank_name": "SaySwitch",
"currency": "NGN",
"status": "active",
"blockreason": null,
"domain": "test",
"reference": "jqo2p61yeqrlqsv",
"payment_type_id": 2,
"routing_code": null,
"created_at": "2025-05-15T06:26:01.000000Z",
"updated_at": "2025-05-15T06:26:01.000000Z",
"customer": {
"id": 334,
"first_name": "John",
"last_name": "Doe",
"email": "Johndoe@email.com",
"phone": "08159994269",
"bvn": null,
"domain": "test",
"customer_code": "CUS_ngfz27uqjin3ny5",
"metadata": "{}",
"status": "active"
}
}
}