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

# Create a developer account

{% hint style="info" %}
Available account types

* 1: POS Role&#x20;
* 2: Delivery/Market Role
* 3: Inventory System Role
* 4: Supplier Role
* 5: Logistic Role

{% endhint %}

{% hint style="info" %}

### Account types descriptions

#### POS Role

Pos Role allows you to do the following:

1. Accept orders.
2. Deny orders.
3. Get orders from our availabable integrations.
4. Get menus from our available integrations.
5. Disable delivery integrations.
6. Upload menus to our available integrations.
7. Enable delivery integrations
8. Disable delivery integrations.

#### Delivery/Market Role

Delivery/Market Role allows you to do the following:

1. Send orders to our available POS integrations.
2. Receive menus from our available POS integrations.
   {% endhint %}

## Create account

<mark style="color:green;">`POST`</mark> `https://integrations.mipos.shop/api/oauth/register`

This endpoint creates an account which will have the available APIs depending on the type.

#### Headers

| Name         | Type   | Description      |
| ------------ | ------ | ---------------- |
| Content-Type | string | application/json |

#### Request Body

| Name     | Type    | Description                      |
| -------- | ------- | -------------------------------- |
| type     | integer | Role that your account will have |
| name     | string  | The name of the new account      |
| email    | string  | The email of the new account     |
| password | string  | The password of the new account  |

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

```javascript
{
    "message": "Successful registration.",
    "data": {
        "name": "Test",
        "email": "test@test.com"
    }
}
```

{% endtab %}

{% tab title="409 " %}
{% tabs %}
{% tab title="Plain Text" %}

```javascript
{
    "message": "Unable to create a new user.",
    "data": null
}
```

{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="422 " %}

```javascript
{
    "name": [
        "The name field is required."
    ],
    "email": [
        "The email field is required.",
        "The email has already been taken."
    ],
    "password": [
        "The password field is required."
    ]
}
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
You will receive an email with: integration\_id, client\_id and client\_secret so you can generate your account access token.&#x20;
{% endhint %}

{% hint style="warning" %}
When you create an Delivery/Market role account, you will receive the integration\_id that represents your Delivery o Market in our plataform.&#x20;
{% endhint %}
