# Request and Respone

## Get the registered accounts and its information

<mark style="color:blue;">`GET`</mark> `https://api.alephcrm.com/v2/accounts`

#### Query Parameters

| Name                                       | Type   | Description    |
| ------------------------------------------ | ------ | -------------- |
| API\_KEY<mark style="color:red;">\*</mark> | String | (default=none) |
| DocumentNumber                             | String |                |

{% tabs %}
{% tab title="200: OK Array of Account" %}

```
{
    "Total": integer,
    "Results": [
{AccountType}
]
}
```

{% endtab %}

{% tab title="400: Bad Request {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="401: Unauthorized {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="403: Forbidden {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="404: Not Found {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="412: Precondition Failed {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="429: Too Many Requests {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="500: Internal Server Error string" %}

{% endtab %}
{% endtabs %}

## Parameters details

### API\_KEY

The API\_KEY that was provided.

### documentNumber

Filters accounts where document number or CIF number matches the provided one.
