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

# Error codes

> Public API error_code values, grouped by surface

When a request fails, the envelope isn't the success one. It's:

```json theme={null}
{
  "error_code": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found.",
  "details": "…",
  "timestamp": "2026-09-13T14:31:02"
}
```

Branch on `error_code` (and, for scoring, on `details` when you need to tell
two `409`s apart). `message` is English prose meant for a log, not the contract.

These codes cover **the whole platform**. Many never show up in analyze or in
verifications: they belong to account, dashboard, or uploads. They're labeled below.

## Scoring (`POST /analyze` and `/analyze/sandbox`)

The specific HTTP statuses for that route —including the two `409`s— are in
[POST /analyze](https://docs.fraudeg.com/en/referencia/analyze.md#errors). Codes you may see there:

| Code | HTTP | Meaning |
| - | - | - |
| `BAD_REQUEST` | 400 | Invalid input or a required value is missing (e.g., `X-Idempotency-Key`) |
| `VALIDATION_ERROR` | 400 / 422 | Payload validation, or an idempotency conflict caused by a different payload |
| `INSUFFICIENT_PERMISSIONS` | 403 | The key doesn't have `TRANSACTIONS_WRITE`, or can't use that route |
| `DATA_CONFLICT` | 409 | Conflict: request in progress **or** unreadable previous response. Tell them apart by `details` |
| `TOO_MANY_REQUESTS` | 429 | Rate limit |
| `SERVICE_UNAVAILABLE` | 503 | Scoring unavailable. Includes `Retry-After`: wait that many seconds and retry with the same `X-Idempotency-Key` |
| `EXTERNAL_SERVICE_ERROR` | 500 | Internal failure while scoring; not an error in your payload |
| `INTERNAL_SERVER_ERROR` | 500 | Internal error |
| `UNKNOWN_ERROR` | 500 | Unclassified error |
| `APPLICATION_ERROR` | 500 | Unexpected error processing the request |
| `OPERATION_FAILED` | 500 | The operation could not be completed |
| `TIMEOUT_ERROR` | 408 | The request timed out |

## Asynchronous analysis (`/analyze/async` and `/analysis`)

The HTTP statuses for each route are in [POST /analyze/async](https://docs.fraudeg.com/en/referencia/analyze-async.md#errors) and
[GET /analysis](https://docs.fraudeg.com/en/referencia/estado-analisis.md#errors). Codes you may see there:

| Code | HTTP | Meaning |
| - | - | - |
| `BAD_REQUEST` | 400 | `X-Idempotency-Key` missing or invalid; `order_id`, `user_id`, or `transaction_amount` missing; or the transaction is too large to be queued |
| `VALIDATION_ERROR` | 400 | The `transactionId` for `/analysis` isn't a valid identifier |
| `INSUFFICIENT_PERMISSIONS` | 403 | The key doesn't have `TRANSACTIONS_WRITE`, or is used on a route that doesn't accept API keys |
| `RESOURCE_NOT_FOUND` | 404 | `/analysis`: there's no request with that id in **your** company (one from another company is also a 404), or the retention period has passed |
| `STORED_RESPONSE_UNREADABLE` | 409 | `/analysis`: the request is `DECIDED`, but its stored response can no longer be shown. The decision exists and doesn't change; resend with a **new** `X-Idempotency-Key` to get a readable one |
| `SERVICE_UNAVAILABLE` | 503 | The request couldn't be accepted or the status couldn't be queried. Includes `Retry-After`: retry with the **same** `X-Idempotency-Key` |

### `code` for `rejected` and `failed`

These aren't HTTP `error_code` values. They're the `code` field of the `transaction.analysis.rejected` /
`transaction.analysis.failed` webhook and of the `REJECTED` / `FAILED` status in
[GET /analysis](https://docs.fraudeg.com/en/referencia/estado-analisis.md). They arrive after a `202` has already been returned, not as an error
on the request.

| `code` | Event | When | What to do |
| - | - | - | - |
| `INVALID_REQUEST` | `rejected` | The body doesn't match the [`/analyze`](https://docs.fraudeg.com/en/referencia/analyze) model (e.g., `currency` is missing) | Fix the body and resend with the same key |
| `IDEMPOTENCY_CONFLICT` | `rejected` | The key was already decided with a different body; the decision is kept | Use a new key for a different transaction |
| `DOMAIN_NOT_RESOLVED` | `rejected` | The `domain` isn't enabled for your company, has no rules, or is missing and can't be inferred | Send an enabled `domain`, or ask for it to be configured |
| `VALIDATION_ERROR` | `rejected` | `payment_method` is missing | Send it |
| `COMPANY_NOT_READY` | `rejected` | The company hasn't confirmed its time zone and reporting currency | Confirm them in the regional settings |
| `INVALID_INPUT` | `rejected` | Another input rejection without its own code | Read `message` |
| `CONFLICT` | `rejected` | Another conflict without its own code | Read `message` |
| `INTERNAL` | `failed` | It failed on our side after all internal retries. `message` is generic | Resend with the same key |

## Identity (`/v1/verifications`)

| Code | HTTP | Meaning |
| - | - | - |
| `BAD_REQUEST` | 400 | Malformed body |
| `UNAUTHORIZED_ACCESS` | 401 | Key missing, malformed, unknown, or revoked |
| `INSUFFICIENT_PERMISSIONS` | 403 | The key can't use that route, or is missing `KYC_READ` / `KYC_WRITE` |
| `RESOURCE_NOT_FOUND` | 404 | That verification doesn't exist in **your** company (one from another company is also a 404) |
| `VALIDATION_ERROR` | 422 | The request was understood and rejected |
| `TOO_MANY_REQUESTS` | 429 | Rate limit |
| `KYC_POLICY_BELOW_FLOOR` | 422 | Doesn't apply to create/get/list with an API key. Appears when configuring a policy in the dashboard |

## Account and dashboard

These don't come out of the API key surface (analyze + verifications). If you see them, you're on a
user-session route, not on the integration.

| Code | HTTP | Meaning |
| - | - | - |
| `USER_NOT_INVITED` | 403 | The user isn't invited to any company and isn't an owner |
| `EMAIL_ALREADY_IN_USE` | 409 | An account with that email already exists |
| `POLICY_VERSION_OUTDATED` | 422 | The accepted policy version is no longer the current one |
| `RELATION_CONFLICT` | 409 | The relationship between resources already exists |
| `UPLOAD_INCOMPLETE` | 409 | The upload was left incomplete: parts are missing |
| `UPLOAD_SESSION_EXPIRED` | 409 | The upload session expired |
| `UPLOAD_SLOTS_FULL` | 429 | The company already has the maximum number of uploads in progress |
| (account identity) | 500 | Error communicating with the dashboard's **account** identity service (user sign-in). It isn't a KYC verification or scoring error |
| `HMAC_SIGNING_FAILED` | 500 | Internal error signing an outgoing request |
| `DATABASE_ERROR` | 500 | Persistence error |
| `METHOD_NOT_ALLOWED` | 405 | The HTTP method isn't supported for that endpoint |
| `INVALID_INPUT` | 400 | Invalid input value |
| `FINTECH_BASE_PROFILE_REQUIRED` | 400 | A FINTECH company needs a declared profile, at creation and afterward: it can't be removed |
| `FINTECH_BASE_PROFILE_INVALID` | 400 | The profile sent isn't one of the valid FINTECH profiles |
| `CASE_HELD` | 409 | Someone else has claimed that case |
| `CASE_RESOLVED` | 409 | The case is already resolved: it doesn't allow that change |
| `QUEUE_NOT_EMPTY` | 409 | The queue still has unresolved cases; it can only be deleted when empty |
| `MONITOR_PROTECTED` | 409 | A Fraudeg monitor can't be deleted, and its metric or condition can't be changed |
| `MONITOR_LIMIT` | 409 | The company already has the maximum number of monitors |
| `MONITOR_LIVE_ONLY` | 422 | That monitor metric only exists while the company is in operating mode (`LIVE`) |
| `TEMPLATE_COVERED_BY_ENGINE` | 409 | What that Fraudeg rule template does is already done by the engine: there's no need to create it |
| `CUSTOM_RULE_INCOMPLETE` | 422 | The rule is incomplete; complete it before estimating it |

`UNAUTHORIZED_ACCESS` (401) can also show up in scoring if the key doesn't authenticate.


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