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

# Transaction decisions

> The 5 values of decision.type and what to do with each one

`decision.type` is the field that tells the merchant what to do with the transaction. It is the
only actionable field in the response — never act on the score, act on this.

It has exactly 5 possible values:

| `type` | What it means | What the merchant should do | Resulting state (`transaction_state`) |
| - | - | - | - |
| `APPROVE` | No actionable risk | Process normally | `ANALYZED` |
| `CONDITIONAL_APPROVE` | Process with follow-up | Process and log for later review | `ANALYZED` |
| `STEP_UP_AUTH` | Requires additional verification | Resolve whatever comes in `conditions` (today: `OTP_VERIFICATION`) | `HELD` |
| `HOLD` | Hold for manual review | Do not fulfill; queue for review | `HELD` |
| `BLOCK` | Reject | Do not process | `BLOCKED` |

> [!NOTE]
>
> `STEP_UP_AUTH` and `HOLD` both end in the same `transaction_state` (`HELD`) — the state does not
> tell them apart. If you need to know which of the two decisions produced a `HELD`
> state, you have to read `decision.type`, not `transaction_state`. See
> [Transaction lifecycle](https://docs.fraudeg.com/en/conceptos/ciclo-de-vida.md) for details on this
> ambiguity.

## `conditions`

A list of pending conditions when `decision.type` is `STEP_UP_AUTH`. Today the only
observed value is `OTP_VERIFICATION`. For all other decisions, `conditions` comes back
empty (`[]`).

## `reason`

A list of **strings** that explain the decision. Each entry is a public risk signal code
(e.g. `AUTH_3DS_FAILED`), or one of these two forms when something of yours raised the
decision:

| Form | What it means |
| - | - |
| `custom_rule:<id>` | One of the merchant's own rules raised the decision |
| `entity_block:<kind>:<value>` | An entry in your entity list blocked the transaction |

The details of `flags` are in [Response format](https://docs.fraudeg.com/en/referencia/respuesta.md). The `code` catalog
lives in [Flags](https://docs.fraudeg.com/en/referencia/flags.md). Do not confuse these risk reasons with the API's
[error codes](https://docs.fraudeg.com/en/referencia/codigos-de-error.md).

## `confidence`

A number from 0 to 1 that indicates how close to a boundary between bands the score-based
decision landed. Use it to detect borderline cases, **not** as a measure of certainty in the final
decision — see [Risk score](https://docs.fraudeg.com/en/conceptos/score-y-decision.md).

Next step: [Decision reasons](https://docs.fraudeg.com/en/conceptos/razones.md).


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