Skip to main content
POST /analyze/async
{API_BASE} is https://sandbox-api.fraudeg.com/api or https://api.fraudeg.com/api, depending on your environment. In production:
Accepts a transaction and responds 202 immediately. The decision doesn’t come in this response: it arrives as a transaction.analysis.completed webhook (or rejected / failed), and you can read it with GET /analysis. The mode, the full sequence, and the payloads are in Asynchronous analysis. /analyze/async/sandbox is the same with the effect of /analyze/sandbox: the transaction is tagged and isn’t treated as live traffic. It exists in both APIs.

Headers

Request

The body is the same model as POST /analyze: same fields, same aliases (payment_method / paymentInstrumentType), same optional fields (Fields).

What’s validated on receipt and what comes back as rejected

On receipt, only the minimum is checked. Everything else is validated later, and a failure there doesn’t change the 202 you already got: it arrives as a rejected webhook. A body that’s invalid for /analyze returns 422 there and rejected here: there’s no 422 on this route.

Response

202 Accepted:
transaction_id is deterministic: it depends on your company and the X-Idempotency-Key, so resending with the same key always returns the same id, in the 202, in the webhooks, and in the stored transaction. You can store it before you receive the webhook. The 202 means “accepted,” not “decided” or “valid.”

Errors

Error envelope:
A 400, 403, or 503 means nothing was accepted and there will be no webhook. Next step: Analysis status.