# Listar Grupos de Clientes

{% hint style="info" %}
Para más información sobre que son los grupos de clientes, podes mirar [este tutorial](http://docs.persat.com.ar/es/articles/691860-trabajando-con-grupos-de-clientes)
{% endhint %}

Para obtener los grupos de clientes, se debe enviar un GET como el que se especifica a continuación.

<mark style="color:blue;">`GET`</mark> `https://api.persat.com.ar/v1/client-groups`

#### Headers

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

{% tabs %}
{% tab title="200: OK La consulta se ejecutó con éxito" %}

```json
{
    "success": true,
    "data": [
        {
            "id": 0,
            "name": "Sin grupo"
        },
        {
            "id": 2,
            "name": "Zona Sur"
        },
        {
            "id": 3,
            "name": "Zona Norte"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### Analizando la Respuesta

En caso que no haya ningun error, obtenemos para nuestro caso de ejemplo algo asi:

```json
{
    "success": true,
    "data": [
        {
            "id": 0,
            "name": "Sin grupo"
        },
        {
            "id": 2,
            "name": "Zona Sur"
        },
        {
            "id": 3,
            "name": "Zona Norte"
        }
    ]
}
```

**id:** Identificador del grupo de cliente. El 0 siempre representa al grupo llamado "Sin grupo", que es donde se encuentran los clientes sin grupo definido.

**name:** Nombre del grupo de cliente.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.api.persat.com.ar/entidades-basicas/clientes/listar-grupos-de-clientes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
