Skip to main content
The fraud assessment endpoint evaluates the risk profile of a transaction or user action in real time. You supply a platform user ID and transaction amount, and Vouch’s signal engine inspects device, network, behavioral, and account-level indicators to produce a composite risk score between 0 and 100. The response includes a flag color (GREEN, AMBER, or RED), a list of any triggered signals, and a plain-language recommendation for how to proceed.

Request

Content-Type: application/json
Auth: x-api-key: <your-key>
string
required
The unique identifier for the user on your platform. Vouch uses this to look up the user’s verified identity status and historical risk signals.
number
required
The monetary value of the transaction, expressed as an integer in the smallest currency unit (e.g. kobo or cents). Vouch uses this to apply high-value transaction signal thresholds.
string
required
A fingerprint string identifying the device and browser session. When you use the Vouch browser SDK, this is collected automatically. If calling the API directly, generate this value client-side using a fingerprinting library and pass it with every request.
string
The ID of an agreement or contract associated with this transaction, if applicable. Including this value links the risk assessment to a specific agreement record in Vouch.
boolean
When set to true, the request is processed as though a VPN was detected on the user’s connection. Use this in your test environment to verify how your integration handles the vpn_detected signal.
boolean
When set to true, Vouch simulates an impossible travel signal for this request. Use this in your test environment to verify how your integration handles the impossible_travel signal.

Example Request

Response

number
An integer from 0 to 100 representing the overall fraud risk for this transaction. Higher scores indicate greater risk. See the flag reference table below for score-to-flag mapping.
string
A color-coded risk classification derived from the score. One of "GREEN", "AMBER", or "RED".
string
A short label describing the risk tier, such as "Low Risk", "Elevated Risk", or "Critical".
string[]
An array of signal identifiers that contributed to the risk score. This array is empty when no risk signals were detected. See the triggered signals reference table below for a full list of possible values.
string
A plain-language action recommendation based on the flag. For example: "Transaction appears safe. Proceed normally." or "Block this transaction."

Example Responses

Flag Reference

Use the flag value in your application logic to decide how to handle each transaction.

Triggered Signals Reference

The following signals may appear in the triggeredSignals array. A transaction can trigger multiple signals simultaneously.
When using the Vouch browser SDK, deviceFingerprint is collected automatically from the user’s session and attached to every fraud assessment call. You only need to pass it manually if you are calling this endpoint server-side without the SDK.