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

# Catálogo de flags

> Os códigos públicos de flags[].code e decision.reason

Este é o catálogo único de códigos públicos de risco. Ele aparece em `flags[].code` e, como
string, em `decision.reason`. Programe contra estes valores, não contra o mecanismo interno
do motor.

Cada entrada de `flags` traz quatro campos: `code`, `category`, `severity` (`low` /
`medium` / `high`) e `description` (em inglês, o idioma do contrato). Vários sinais internos
podem se reduzir ao mesmo `code` quando contam ao lojista a mesma história: em
`flags` fica **uma** entrada por código.

`decision.reason` usa este mesmo vocabulário, mais duas formas quando algo seu
elevou a decisão: `custom_rule:<id>` e `entity_block:<kind>:<value>`. Veja
[Formato de resposta](https://docs.fraudeg.com/pt-br/referencia/respuesta.md).

Não confunda este catálogo com os [códigos de erro](https://docs.fraudeg.com/pt-br/referencia/codigos-de-error.md) da
API.

## Códigos

| `code` | `category` | `severity` | `description` |
| - | - | - | - |
| `AUTH_3DS_FAILED` | authentication | high | 3DS authentication explicitly failed |
| `AUTH_3DS_MISSING` | authentication | medium | 3DS authentication was not completed |
| `AUTH_CVV_MISMATCH` | authentication | high | CVV/CVC verification failed or was not provided |
| `AUTH_PIN_FAILED` | authentication | high | PIN verification did not succeed |
| `CARD_TESTING_PATTERN` | payment | high | Card-testing behaviour around this card, BIN or checkout |
| `PAYMENT_METHOD_RISK` | payment | medium | Payment path with reduced protection or irreversible settlement |
| `RETURN_ABUSE_PATTERN` | payment | medium | Transaction matches a return or refund abuse pattern |
| `GEO_CARD_ORIGIN_MISMATCH` | geo | medium | Card origin and transaction origin do not match |
| `GEO_HIGH_RISK_ORIGIN` | geo | medium | Origin country or corridor with elevated fraud rates |
| `GEO_IMPOSSIBLE_TRAVEL` | geo | high | Card used in distant locations within an implausibly short time |
| `NETWORK_ANONYMIZED_ORIGIN` | network | medium | Connection through an anonymizing network |
| `NETWORK_SHARED_ORIGIN` | network | low | Network origin shared by unrelated users or merchants |
| `VELOCITY_DEVICE_BURST` | velocity | low | Unusual burst of transactions in a short period |
| `DEVICE_SHARED_BY_MANY_USERS` | device | medium | Device shared by several unrelated accounts |
| `DEVICE_NEW_OR_CHANGED` | device | medium | Transaction from a device not seen before for this account |
| `ACCOUNT_TAKEOVER_PATTERN` | user | high | Session or credential activity consistent with account takeover |
| `IDENTITY_NEW_ACCOUNT` | user | low | Recently created account or first activity |
| `IDENTITY_SYNTHETIC_SIGNALS` | user | medium | Contact details consistent with a synthetic identity |
| `AMOUNT_ANOMALY` | core | medium | Amount or timing outside the normal pattern |
| `CARD_REPORTED_COMPROMISED` | core | high | Card flagged as lost, stolen or compromised by the issuer |
| `SHIPPING_ADDRESS_MISMATCH` | shipping | medium | Shipping and billing addresses do not match |
| `HISTORY_PRIOR_CHARGEBACKS` | chargeback\_history | high | Prior chargeback history on this user or merchant |
| `FUNDS_LAUNDERING_PATTERN` | other | high | Fund movement consistent with laundering or mule activity |
| `CREDIT_EXPOSURE_STACKING` | other | medium | Credit exposure accumulating faster than expected |
| `INSIDER_OR_DOCUMENT_FRAUD` | other | high | Payout or document inconsistency consistent with insider fraud |

São 25 códigos. Você pode fazer `switch` sobre `code` com confiança: quando um sinal novo
conta a mesma história, ele é agregado a um código existente.

> [!NOTE]
>
> Pode aparecer um código adicional, `RISK_SIGNAL_OTHER` (categoria `other`, severidade
> `low`, descrição `Risk signal without a published code`), como reserva quando um sinal
> ainda não tem código público próprio. Não o trate como parte do catálogo estável de 25
> — é o valor de reserva. Se chegar um `code` que você não reconhece, trate-o como sinal genérico
> e aja sobre [`decision.type`](https://docs.fraudeg.com/pt-br/conceptos/decisiones), nunca sobre o motivo isolado.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.