# Create Virtual Account

```
/ request
```

```django
POST https://staging-eagle.kongapay.com/request/knip/new-vir-account
```

This endpoint allows you to create a new virtual account

\
\# Headers

| Name         | Type   | Description                   |
| ------------ | ------ | ----------------------------- |
| secret\_key  | string | Unique integration key        |
| Content-Type | string | Set value to application/json |
|              |        |                               |

**Request Body**

| Name          | Type   | Description                                                                          |
| ------------- | ------ | ------------------------------------------------------------------------------------ |
| amount        | string | Total transaction amount in kobo                                                     |
| reference     | string | Unique identifier from client / kpay if not provided                                 |
| account\_name | string | Unique IBAN account                                                                  |
| type          | string | <p>Type of Account-> <br><br>\* nonstatic<br><br>\* static-flex<br><br>\* static</p> |
| callback\_url | string | Webhook Notification                                                                 |

## Response

```

{
    "status": "success",
    "message": "Generate New Virtual Account  request successful",
    "data": {
        "status": "success",
        "message": "",
        "data": {
            "account_number": "5005239003",
            "account_name": "AJibade Akanin",
            "reference": "KP-VIR-1751454667-IXCR",
            "Bank": "KongaPay OR Zinternet",
            "external_reference": "CH-202503231316-PSWRF-KP",
            "status": "active"
        }
    },
    "request_id": 79480
}

```

## Request

```

{
    "account_name": "AJibade Akanin",
    "reference": "CH-202504231314-PSWRF-KP",
    "type":"static-flex"
}


```


---

# 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://kpayment-org.gitbook.io/kpay-ltd/getting-started/publish-your-docs/create-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.
