# Informações do Usuário

## Informações de um usuário

<mark style="color:green;">`POST`</mark> `https://api.gestao.plus/user?q=info`

Este endpoint permite que você busque por informações de um usuário em específico através de seu CPF, caso ele já tenha sido registrado as suas informações serão retornadas.

#### Query Parameters

| Name                                | Type   | Description |
| ----------------------------------- | ------ | ----------- |
| q<mark style="color:red;">\*</mark> | string | info        |

#### Headers

| Name                                           | Type   | Description                 |
| ---------------------------------------------- | ------ | --------------------------- |
| Origin<mark style="color:red;">\*</mark>       | string | URL de origem da requisição |
| Content-Type<mark style="color:red;">\*</mark> | string | application/json            |

#### Request Body

| Name                                       | Type   | Description    |
| ------------------------------------------ | ------ | -------------- |
| document<mark style="color:red;">\*</mark> | string | CPF do usuário |

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

```
{
    "haveAccount": true,
    "havePassword": true,
    "allowGuest": true,
    "data": {
        "email": "paulo.******@live.com",
        "cellphone": "6299043****",
        "guestUserToken": "TOKEN QUE SERÁ USADO PARA REALIZAR OS PEDIDOS" // IMPORTANTE
    },
    "_links": {
        "self": {
            "href": "https://api.gestao.plus/user"
        }
    }
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
    "title": "Bad Request",
    "status": 400,
    "detail": "Invalid document"
}
```

{% endtab %}
{% endtabs %}
