Virtual AccountGet Virtual Account Details

Get Virtual Account Details

This endpoint allows you to retrieve the details of a specific virtual bank account using its unique identifier.

API Endpoint

GET https://backendapi.sayswitchgroup.com/api/v1/dedicated_account/:account_id

Path Parameter:

  • account_id - The unique ID of the virtual account you want to retrieve (e.g., 484 in the example)

Sample Request

curl -X GET https://backendapi.sayswitchgroup.com/api/v1/dedicated_account/484 
  -H "Authorization: Bearer YOUR_SECRET_KEY"

Sample Response

{
  "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"
    }
  }
}

Explanation of the Response

FieldTypeDescription
idintegerThe unique identifier of this virtual account.
account_namestringThe name associated with this virtual account, usually the customer’s name.
account_numberstringThe virtual bank account number (NUBAN).
bank_namestringThe name of the bank providing the virtual account service (e.g., “SaySwitch”).
currencystringThe currency of the virtual account (e.g., “NGN”).
statusstringThe current status of the virtual account (e.g., “active”).
blockreasonstringThe reason for the account being blocked, if applicable (null if active).
domainstringThe environment or domain this account belongs to (e.g., “test”).
referencestringA unique reference code generated for this virtual account.
payment_type_idintegerAn internal identifier for the payment type associated with this account.
routing_codestringA bank-specific routing code (may be null).
created_atstringThe timestamp indicating when this virtual account was created (ISO 8601 format).
updated_atstringThe timestamp indicating when this virtual account was last updated (ISO 8601 format).
customerobjectAn object containing information about the customer associated with this virtual account:
idintegerThe unique ID of the customer.
first_name`stringThe customer’s first name.
last_namestringThe customer’s last name.
emailstringThe customer’s email address.
phonestringThe customer’s phone number.
bvnstringThe customer’s Bank Verification Number (may be null).
domainstringThe environment or domain the customer belongs to.
customer_codestringThe unique customer code.
metadatastringAdditional information about the customer (often an empty JSON string {}).
statusstringThe current status of the customer account (e.g., “active”).