# Virtual Account

## Get Virtual Account

<mark style="color:blue;">`GET`</mark> `https://api.cngn.co/v1/api/virtual-account`

Returns the virtual bank account details associated with your merchant. **Requires `Fiat Deposit` permission.**

{% tabs %}
{% tab title="200 Virtual account created successfully" %}

```json
{
  "status": 200,
  "message": "Virtual account created successfully",
  "data": [
    {
      "accountNumber": "8012345678",
      "accountName": "CNGN/Your Business Name",
      "bankName": "Wema Bank",
      "bankCode": "035"
    }
  ]
}
```

{% endtab %}

{% tab title="400 Invalid request" %}

```json
{
  "status": 400,
  "message": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

#### Response Fields (Decrypted)

| Field           | Type   | Description                         |
| --------------- | ------ | ----------------------------------- |
| `accountNumber` | string | Virtual bank account number         |
| `accountName`   | string | Account name on the virtual account |
| `bankName`      | string | Bank name for the virtual account   |
| `bankCode`      | string | CBN bank code                       |

#### Example Request

```bash
curl -X GET https://api.cngn.co/v1/api/virtual-account \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cngn.co/integrations/endpoints/virtual-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
