> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gu1.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Métricas custom por CUIT

> Métricas incrementales CBU/CVU con lookback calendario 1–180 días — cobro por request cuando priced.

## Endpoint

```
GET https://api.gu1.ai/api/integration-services/ar_gueno_holder_intelligence_service/cuits/{cuit}/metrics
```

## Query

<ParamField query="lookback" type="integer" required>
  Días calendario (**1–180**).
</ParamField>

<ParamField query="date" type="string">
  Opcional. Fin inclusive de ventana (`YYYY-MM-DD`). Default: último snapshot.
</ParamField>

## Éxito (HTTP 200)

`data.metrics` incluye: `cbuDelta`, `cvuDelta`, `cbuPctChange`, `cvuPctChange`, `cbuAcceleration`, `cvuAcceleration`, `totalAcceleration`, `accelerationAvailable`, varianzas y totales start/end.

## Ventana incompleta (HTTP 422)

| `error.code`           | Significado                                       |
| ---------------------- | ------------------------------------------------- |
| `INCOMPLETE_WINDOW`    | Faltan días en el rango (`missingDates` opcional) |
| `NO_INCREMENTAL_STATE` | Sin historial incremental                         |

## Otros errores

| HTTP | `error.code`                       |
| ---- | ---------------------------------- |
| 400  | `INVALID_LOOKBACK`, `INVALID_DATE` |
| 404  | `CUIT_NOT_FOUND`                   |
| 402  | `INSUFFICIENT_BALANCE`             |
| 503  | `SERVICE_UNAVAILABLE`              |

## Motor de reglas

Requiere **`holderIntelligenceLookbackDays`** en la condición. En reglas transaccionales, fecha de referencia por defecto: **`transactedAt`** (calendario AR).

Ejemplo: `services.holder_intelligence.metrics.cbu_acceleration`. Ver [Condiciones](/es/api-reference/rules/conditions).
