# Create Account

<mark style="color:green;">`POST`</mark> `https://api.pis.ng/v1.0/collections/vba/create`

#### Headers

| Name                                           | Type   | Description          |
| ---------------------------------------------- | ------ | -------------------- |
| Secret-Key<mark style="color:red;">\*</mark>   | string | Your PIS Secret Key. |
| Content-Type<mark style="color:red;">\*</mark> | string | application/json     |

#### Request Body

| Name                                        | Type   | Description                                                                                                                |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| reference<mark style="color:red;">\*</mark> | string | A unique reference (100 chars max). This would be used to access your account.                                             |
| firstName<mark style="color:red;">\*</mark> | string | The customer's first name.                                                                                                 |
| lastName<mark style="color:red;">\*</mark>  | string | The customer's last name.                                                                                                  |
| email<mark style="color:red;">\*</mark>     | string | The customer's email.                                                                                                      |
| phone<mark style="color:red;">\*</mark>     | int    | The customer's phone number.                                                                                               |
| accountName                                 | string | The customer's account name (30 chars max). If empty, we would use the customer's first and last name as the account name. |
| bvn<mark style="color:red;">\*</mark>       | int    | The customer's BVN                                                                                                         |
| callbackUrl                                 | string | Your callback URL. We'll notify you here if provided.                                                                      |

{% tabs %}
{% tab title="200: OK application/json" %}

```json
{
    "code": 200,
    "status": "success",
    "message": "Successful",
    "data": {
        "accountNumber": "2057488657",
        "accountName": "PIS - ISIMPLIFY SERVICES",
        "bankName": "KUDA MICROFINANCE BANK"
    }
}
```

{% endtab %}

{% tab title="401: Unauthorized application/json" %}

```json
{
    "code": 401,
    "status": "error",
    "message": "Authorization required!",
    "data": null
}
```

{% endtab %}

{% tab title="400: Bad Request application/json" %}

```json
{
    "code": 400,
    "status": "error",
    "message": "Bad Request",
    "data": null
}
```

{% endtab %}

{% tab title="404: Not Found application/json" %}

```json
{
    "code": 404,
    "status": "error",
    "message": "The endpoint you are trying to access does not exist.",
    "data": null
}
```

{% endtab %}
{% endtabs %}
