# Grupos

## Adicionar Grupo

<mark style="color:green;">`POST`</mark> `https://api.beepayapp.com.br/api/import/groups`

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer      |

#### Request Body

| Name                                          | Type    | Description |
| --------------------------------------------- | ------- | ----------- |
| name<mark style="color:red;">\*</mark>        | String  |             |
| active<mark style="color:red;">\*</mark>      | Boolean |             |
| id\_externo<mark style="color:red;">\*</mark> | String  |             |

{% tabs %}
{% tab title="201: Created " %}

{% endtab %}

{% tab title="422: Unprocessable Entity " %}

{% endtab %}
{% endtabs %}

## Buscar Grupos

<mark style="color:blue;">`GET`</mark> `https://api.beepayapp.com.br/api/import/groups`

#### Query Parameters

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| id\_externo | String |             |

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer      |

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

```json
{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "name": "Doces",
            "market_id": 1,
            "id_externo": "1",
            "created_at": "2023-08-15T13:42:32.000000Z",
            "updated_at": "2023-08-15T13:48:04.000000Z",
            "active": 1
        }
    ],
    "first_page_url": "",
    "from": 1,
    "last_page": 1,
    "last_page_url": "",
    "next_page_url": null,
    "path": "",
    "per_page": 30,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}
```

{% endtab %}
{% endtabs %}
