# Creating a user

## Creating a merchant account

## Create sign up request.

<mark style="color:green;">`POST`</mark> `https://api.ozurapay.com/users/register-merchant`

Creates a new merchant registration and sends back bearer token.

#### Request Body

| Name                                    | Type   | Description                      |
| --------------------------------------- | ------ | -------------------------------- |
| email<mark style="color:red;">\*</mark> | string | Email of new merchant account    |
| password                                | string | Password of new merchant account |
| name                                    | string | Name of account holder           |
| phoneNo                                 | string | Business phone number            |
| businessName                            | string | Entity name                      |
| website                                 | string | Business site                    |

{% tabs %}
{% tab title="200 Login successfully created" %}

```javascript
{
    "data": {
        "id": "6690m187f80461a95af20f2c",
        "name": "John Doe",
        "email": "jdoe@ozurapay.com",
        "role": "merchant",
        "token": "eyPnoGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2OTBiNDg3ZjgwNDYxYTk1YWYyMGYyYyIsIm5hbWUiOiJkYmZkZmcgYmRmYmRmYiIsImVtYWlsIjoieXVnZXNuQG96dXJhcGF5LmNvbSIsInJvbGUiOiJtZXJjaGFudCIsImlhdCI6MTcyMDc1OTQzMiwiZXhwIjoxNzIxNjIzNDMyfQ.ol_qh3zXr-uGmBzgZmS8A5yN-SxLtXlijFEsjOdgYew",
        "depositAddress": "0xM99220EE1496A532eBdF7c7A4D40cbAD8C8D0BCF"
    },
    "code": 200,
    "message": "Merchant successfully registered"
}
```

{% endtab %}

{% tab title="401 Permission denied" %}

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Good to know:** You can either create your account using dashboard.ozurapay.com or use above API.
{% endhint %}

## Creating a payment widget
