> For the complete documentation index, see [llms.txt](https://monicredit.gitbook.io/mc-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://monicredit.gitbook.io/mc-api/customer-wallet/create-customer-virtual-account.md).

# Create Customer Virtual Account

For merchants using wallet service you can generate virtual accounts for your customers

<mark style="color:green;">`POST`</mark> `https://demo.backend.monicredit.com/api/v1/payment/virtual-account/create`

#### Path Parameters

| Name                                           | Type   | Description |
| ---------------------------------------------- | ------ | ----------- |
| private\_key<mark style="color:red;">\*</mark> | String |             |
| first\_name<mark style="color:red;">\*</mark>  | String |             |
| last\_name<mark style="color:red;">\*</mark>   | String |             |
| phone<mark style="color:red;">\*</mark>        | String |             |
| email<mark style="color:red;">\*</mark>        | email  |             |

{% tabs %}
{% tab title="200: OK Successful response" %}

```json
{
    "status": true,
    "message": "Customer created successfully",
    "data": {
        "wallet_id": "W000000000",
        "customer_id": "CUS00000000",
        "customer_email": "testers1@test.com",
        "account_name": "MC| Mic Testing",
        "account_number": "111111111",
        "bank_name": "WEMA",
        "credit": 0,
        "debit": 0,
        "balance": 0,
        "virtual_accounts": [
            {
                "id": "VA000000000",
                "wallet_id": "W000000000",
                "name": "Mic Testing",
                "first_name": "Mic",
                "last_name": "Testing",
                "phone": "000000000",
                "email": "testers1@test.com",
                "account_name": "MC| Mic Testing",
                "account_number": "111111111",
                "bank_name": "WEMA",
                "account_type": "STANDARD",
                "service_provider": "provider",
                "status": "ACTIVE",
                "expiry_date": null,
                "created_at": "2023-11-06 12:05:15",
                "updated_at": "2023-11-06 12:05:15",
                "account_reference": null
            }
        ],
        "reference": "REF0000000"
    }
}
```

{% endtab %}

{% tab title="400: Bad Request Bad request" %}

```json
{
    "status": false,
    "message": "Invalid Authorization key"
}
```

{% endtab %}
{% endtabs %}
