Skip to main content
POST /analyze
{API_BASE} is https://sandbox-api.fraudeg.com/api or https://api.fraudeg.com/api, depending on your environment. In production:
Scores a live transaction and returns a decision. This route does treat the call as live traffic. To see the mature model’s response without treating it as live —in production or in pre-official-integration— use /analyze/sandbox. That path is a mode, not the sandbox host.

Headers

Request

Required fields: The canonical name is payment_method. paymentInstrumentType is the same field under a different name in the JSON. It accepts up to 50 characters; a longer value returns 422. See Payment methods and rails. All other fields are optional. The full list is in Fields.

Response

Field by field: Response format. In particular:
  • decision.type is the only actionable field — never act on risk_score.
  • The catalog of flags[].code lives in Flags catalog, not here.
  • recommendation is a sentence in the company’s language. Don’t branch on it.

Errors

The public API error envelope is:
error_code comes from the error codes catalog. The text that tells one case from another is in details, not in message (message is the code’s generic prose).

HTTP statuses for this endpoint

The two 409s

Same HTTP status, different details: A 400, 403, or 422 means the request never got scored: nothing was persisted. A 409 is different: the transaction may already be scored and stored.