> For the complete documentation index, see [llms.txt](https://guia.fenicio.help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guia.fenicio.help/developers/integracion-de-comercios/servicios/consulta-de-etiquetas-de-cliente.md).

# Consulta de etiquetas de cliente

Este servicio permite a Fenicio consultar las etiquetas asociadas a un cliente, con el objetivo de configurar y aplicar promociones específicas según el tipo de usuario.

| Método | URL                                 |
| ------ | ----------------------------------- |
| POST   | `https://{ApiURL}/CommerceERP/Tags` |

### Request

El *request* enviado por Fenicio será un objeto [**Comprador**](/developers/referencia/modelos-de-datos/integraciones.md#comprador).

#### Ejemplo

```json
{
  "_idSolicitud": "200325120000-FNSHPUY-3c7621ed5a707177c1421cce79338668",
  "id": 123,
  "codigo": null,
  "email": "mail@dominio.com",
  "nombre": "Juan",
  "apellido": "Pérez",
  "telefono": "+59899123456",
  "genero": "M",
  "documento": {
    "numero": "41234568",
    "pais": "UY",
    "tipo": "DOCUMENTO_IDENTIDAD"
  }
}
```

> **Nota:** De los datos enviados, Fenicio únicamente puede asegurar que el correo electrónico pertenece al usuario en cuestión.

### Response

La respuesta deberá indicar el resultado de la operación y, en caso exitoso, devolver las etiquetas asociadas al cliente.

#### Caso exitoso

```json
{
  "status": "OK",
  "mensaje": null,
  "data": {
    "tags": [
      "SOCIO_VIP",
      "CLIENTE_FRECUENTE"
    ]
  }
}
```

### Modelos de datos

#### Data

| Clave  | Tipo           | Descripción                                                           |
| ------ | -------------- | --------------------------------------------------------------------- |
| `tags` | Array\[String] | Listado de etiquetas asignadas al usuario en el sistema del comercio. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://guia.fenicio.help/developers/integracion-de-comercios/servicios/consulta-de-etiquetas-de-cliente.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
