Endpoint
Request Headers
Request Body
integer
required
Transaction amount in the smallest currency unit (e.g.,
1999 for $19.99 USD). Must be a positive integer.string
required
ISO 4217 currency code (e.g.,
"USD", "EUR", "GBP").object
required
Payment method details for this transaction.
object
required
Information about the user initiating the transaction.
object
Optional merchant context. Providing this enables merchant-specific velocity and policy rules.
string
Device session ID obtained from
POST /v1/device/session. Attaching a session ID unlocks device intelligence signals including device fingerprint, behavioral biometrics, and bot detection scores.object
Arbitrary key-value pairs you want to store and retrieve alongside this transaction. Not used in scoring. Values must be strings.
string
A unique string you generate to safely retry this request without creating duplicate assessments. You can also pass this as the
Idempotency-Key request header.Response Fields
string
Unique FraudEG identifier for this transaction risk assessment. Use this ID to submit a decision via
POST /v1/decisions.integer
Integer risk score from
0 (no risk) to 100 (highest risk). Your dashboard lets you configure decision thresholds per score band.string
Recommended action based on your configured policies. One of:
allow— Proceed with the transaction.challenge— Apply step-up authentication (e.g., 3DS, OTP).block— Decline the transaction.
array
List of risk signal objects that contributed to the score. Inspect these to understand why a score was returned.
integer
Time in milliseconds FraudEG took to process the request server-side. Does not include network round-trip time.
string
ISO 8601 timestamp of when the risk assessment was created (e.g.,
"2024-11-15T10:32:00Z").Code Examples
Example Response
Use the
Idempotency-Key header (or the idempotency_key body field) when retrying requests after a network timeout. FraudEG will return the original response for any duplicate request with the same key, preventing duplicate risk assessments for the same transaction.