# Create Virtual Account

## /vitrual-accounts

<mark style="color:green;">`POST`</mark> `https://seerbitapi.com/api/v2/virtual-accounts`

This endpoint allows you to create virtual account numbers

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| authorization<mark style="color:red;">\*</mark> | String | Bearer token |

#### Request Body

| Name                                        | Type   | Description                                      |
| ------------------------------------------- | ------ | ------------------------------------------------ |
| publicKey<mark style="color:red;">\*</mark> | String | merchant public key                              |
| fullName<mark style="color:red;">\*</mark>  | String | name to be on the account number                 |
| bankVerificationNumber                      | String | owners BVN to match fullName                     |
| currency<mark style="color:red;">\*</mark>  | String | currency to be set to NGN                        |
| reference<mark style="color:red;">\*</mark> | String | unique reference to identify the virtual account |
| email                                       | String | owners email                                     |

{% tabs %}
{% tab title="cURL" %}

```javascript
curl --location 'https://seerbitapi.com/api/v2/virtual-accounts' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ENCRYPTED_KEY' \
--data-raw '{
    "publicKey": "YOUR_PUBLIC_KEY",
    "fullName": "Jane Smith",
    "bankVerificationNumber":"",
    "currency": "NGN",
    "country": "NG",
    "reference": "FIRST_VIRTUAl_17",
    "email": "js@emaildomain.com"
}'
```

{% endtab %}

{% tab title="201: Created Success" %}

```javascript
{
    "status": "SUCCESS",
    "data": {
        "code": "S20",
        "payments": {
            "reference": "FIRST_VIRTUAl_7",
            "walletName": "SEERBIT(Business Name)",
            "bankName": " 9PAYMENT SERVICE BANK",
            "accountNumber": "Account Number"
        },
        "message": "Account created "
    }
}
```

{% endtab %}
{% endtabs %}
