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

# What is a transaction

> What Fraudeg evaluates about a transaction, and what it does not do with the money

To Fraudeg, a transaction is a payment attempt that the merchant submits for evaluation
before deciding whether to run it. Fraudeg analyzes it and returns a decision — the merchant is
the one who, with that decision in hand, processes the charge or does not.

> [!WARNING]
>
> **Fraudeg does not process the payment.** It does not move money, and it is not a processor or a gateway. It only
> evaluates risk and returns a decision (`decision.type`). Running the charge or not is
> always the merchant's action, outside Fraudeg.

## The fields that identify a transaction

| Field | Who assigns it | What it identifies |
| - | - | - |
| `order_id` | The merchant | The order id in the merchant's system — you define it and recognize it on your side |
| `transaction_id` | Fraudeg | The unique id Fraudeg assigns to the transaction when it evaluates it |
| `user_id` | The merchant | The user who originated the transaction |
| `transaction_amount` | The merchant | The transaction amount |
| `payment_method` | The merchant | The payment instrument family — canonical field; see [Payment methods](https://docs.fraudeg.com/en/referencia/metodos-de-pago.md) |

These five fields anchor a transaction throughout its entire lifecycle.
The rest of the fields — required and optional — are detailed in
[Fields](https://docs.fraudeg.com/en/integrar/campos.md).

## It is evaluated once, and the result is stable

A transaction is scored only once. If you retry the same request with the same
`X-Idempotency-Key`, Fraudeg does not evaluate it again — it returns the original decision it already
computed. This is what makes it safe to retry after a network timeout without risking
a duplicate transaction or a different decision the second time.

See [Idempotency](https://docs.fraudeg.com/en/integrar/idempotencia.md) for the full details of the mechanism.

## Three paths, same evaluation

The same transaction can reach Fraudeg by three paths, and it is evaluated the same way in all of them:
in real time through the API, either synchronously (`POST /transactions/analyze`, the decision comes back in the
response) or asynchronously (`POST /transactions/analyze/async`, a `202` now and the decision by
webhook), or in batch by uploading a CSV with many transactions from the dashboard. The scoring
engine is the same in all three cases — what changes is how the transaction comes in and how the
result goes out.

See [Integration modes](https://docs.fraudeg.com/en/introduccion/modos-de-integracion.md) for the full comparison.

Next step: [Payment rails](https://docs.fraudeg.com/en/introduccion/rieles.md).


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