> ## 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.

# Risk score

> risk_score and risk_level, and why they do not determine the decision

> [!WARNING]
>
> **The decision is not a function of the score.** A transaction can have a low score and a `BLOCK`
> decision. The score measures accumulated risk; the decision also incorporates direct evidence that
> can raise it on its own. **Always act on `decision.type`, never on the score.**

This is the first distinction to get clear before integrating: the score and the
decision are two separate fields in the response. This section walks through them one by one,
starting with what `risk_score` measures.

## `risk_score`

A number from 0 to 100 that summarizes the transaction's accumulated risk. It is a flat field of
`data` — it is not nested inside a `risk` object. It is useful for prioritizing, sorting, and
analytics; it is not the signal you should use to decide what to do with a transaction.

## `risk_level`

A qualitative band derived from the score, with 4 possible values:

| `risk_level` | What it means |
| - | - |
| `low` | Low risk |
| `medium` | Intermediate risk |
| `high` | Elevated risk |
| `critical` | Very elevated risk |

## Real example: low score, BLOCK decision

This real case shows why the score and the decision are independent axes:

```json theme={null}
{
  "risk_score": 29.07,
  "risk_level": "medium",
  "decision": { "type": "BLOCK" }
}
```

A score of `29.07` falls in the `medium` band — it is not a high score. Even so, the decision
was `BLOCK`, because the direct evidence present in the transaction (see
[`flags`](https://docs.fraudeg.com/en/referencia/respuesta)) was enough on its own to reject it,
regardless of where the accumulated score landed.

## `risk_score` cannot be used to recompute decisions

Beyond the above, there is a concrete reason why none of your logic should derive the
decision from the score: **`risk_score` is the displayed scale, not the operational scale.**

The decision is computed on an internal scale that is not exposed in the response, and
`risk_score` is expressed relative to your own company's traffic. The
practical consequence is direct:

* **You cannot recompute** a decision from `risk_score`.
* **You cannot predict** which decision another score would produce.
* Comparing `risk_score` against your own limit will give you results that do not match
  what the API returns.

What `risk_score` is good for: **displaying** risk in your interface, **sorting** a
review queue, and **prioritizing** what to look at first. To know what to do with the transaction,
the only source is [`decision.type`](https://docs.fraudeg.com/en/conceptos/decisiones) (transaction decisions).

## `decision.confidence`

A number from 0 to 1 that measures **how far inside its band the score landed** for the
score-based decision: close to `1.0` when the case sits comfortably within its band, close
to `0.0` when it is right up against a boundary between bands.

It is good for one thing: detecting borderline cases. A low `confidence` indicates a transaction
that was about to land on a different decision, which makes it a good candidate for manual review
or monitoring.

> [!WARNING]
>
> `confidence` is **not** a measure of certainty in the final decision. It always describes the
> score-based decision. When the final decision was raised some other way —direct evidence,
> one of your rules, your entity list— `confidence` still describes the earlier decision,
> not the one you received in `decision.type`. A `BLOCK` with low `confidence` does not mean "a
> doubtful block."

To know what to do with a transaction, always read
[`decision.type`](https://docs.fraudeg.com/en/conceptos/decisiones) — never `risk_score`, `risk_level`, or
`decision.confidence`.

Next step: [Transaction decisions](https://docs.fraudeg.com/en/conceptos/decisiones.md).


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