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

> transaction.analysis.completed, rejected, and failed: the asynchronous analysis notifications

They are only sent for [`/analyze/async`](https://docs.fraudeg.com/en/integrar/analisis-asincrono), never for `/analyze`. Each
`202` ends in exactly one of these three notifications:

POST /analyze/async
202 + transaction\_id

They use the [common envelope](https://docs.fraudeg.com/en/webhooks.md#the-envelope) and the usual
[signature](https://docs.fraudeg.com/en/webhooks/firma-y-entrega.md).

A field with no value **is not sent** (no `null` arrives): an `order_id` the request did not include,
or a rejection whose body could not be read, arrive without that key. Treat a missing key as
null.

### `transaction.analysis.completed`

`data` is the [`/analyze`](https://docs.fraudeg.com/en/referencia/respuesta) response plus `idempotency_key`.

```json theme={null}
{
  "event_id": "cc8cb114-90ef-55b5-80bd-4ec7e6c12e23",
  "event": "transaction.analysis.completed",
  "occurred_at": "2026-11-03T14:05:10Z",
  "data": {
    "transaction_id": "2ecfdd90-ff63-529c-9d32-2c46615b1546",
    "order_id": "ORD-100234",
    "risk_score": 34.0,
    "risk_level": "medium",
    "flags": [
      {
        "code": "AUTH_3DS_MISSING",
        "category": "authentication",
        "severity": "medium",
        "description": "3DS authentication was not completed"
      }
    ],
    "recommendation": "Approve with light verification. Signals to watch: AUTH_3DS_MISSING.",
    "decision": {
      "type": "CONDITIONAL_APPROVE",
      "reason": ["AUTH_3DS_MISSING"],
      "confidence": 0.78,
      "conditions": [],
      "action": "MONITOR"
    },
    "transaction_state": "ANALYZED",
    "enforced": true,
    "idempotency_key": "ord-100234-2026-11-03-001"
  }
}
```

Act on [`decision.type`](https://docs.fraudeg.com/en/conceptos/decisiones), as in synchronous mode. With `enforced: false`
the decision is a recommendation, not an order.

### `transaction.analysis.rejected`

The request was accepted, but there is something for you to fix. `code` says what
([`code` table](https://docs.fraudeg.com/en/referencia/codigos-de-error)); `message` is English prose for a log.

```json theme={null}
{
  "event_id": "da321165-e064-54ca-b360-52098932fed6",
  "event": "transaction.analysis.rejected",
  "occurred_at": "2026-11-03T14:05:10Z",
  "data": {
    "transaction_id": "2ecfdd90-ff63-529c-9d32-2c46615b1546",
    "order_id": "ORD-100234",
    "idempotency_key": "ord-100234-2026-11-03-001",
    "code": "DOMAIN_NOT_RESOLVED",
    "message": "Domain 'transfers' is not enabled for this company or has no rule pack"
  }
}
```

Fix the cause and resend with the **same** key.

### `transaction.analysis.failed`

It failed on our side after all internal retries. `code` is always `INTERNAL` and
`message` is generic.

```json theme={null}
{
  "event_id": "6489e498-59c2-58c1-b32c-05f3e7c3da8d",
  "event": "transaction.analysis.failed",
  "occurred_at": "2026-11-03T14:08:42Z",
  "data": {
    "transaction_id": "2ecfdd90-ff63-529c-9d32-2c46615b1546",
    "order_id": "ORD-100234",
    "idempotency_key": "ord-100234-2026-11-03-001",
    "code": "INTERNAL",
    "message": "The analysis could not be completed. Retry with the same X-Idempotency-Key."
  }
}
```

Resend with the **same** key.

> [!WARNING]
>
> A `failed` can arrive without any record of your request existing, only when we could not read it
> within the whole retry window. In that case the status is the truth: read
> [`/analysis`](https://docs.fraudeg.com/en/referencia/estado-analisis) before resending. A retry with the same key
> repeats the decision if one already exists, or scores if not.

## One notification per `202`

* Each `202` gets its own notification, with its own `event_id`. Resending a key that was already
  `REJECTED` or `FAILED` and that ends the same way again **notifies again**; resending a
  key that is already `DECIDED` gets its own `completed` with the stored decision.
* A redelivery of the same notification keeps its `event_id`: deduplicate by `event_id`, not by
  `transaction_id`.
* Notifications are at least once. If you get two different ones for a key, the status in
  [`/analysis`](https://docs.fraudeg.com/en/referencia/estado-analisis) decides which one wins.

Reconciliation: [Signature and delivery › Reconcile anyway](https://docs.fraudeg.com/en/webhooks/firma-y-entrega.md#reconcile-anyway).


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