Score Event For Fraud Risk
fraud_scoreScore a transaction or account event for fraud risk. Send whatever signals you have — all optional.
Returns a 0-1 fraud probability, a risk level, the exact risk factors that drove the score (each with its weight, direction and a human-readable detail), and a recommended decision (allow|review|deny).
Returns: dict with keys: fraud_probability (float), risk_level (str), decision (str), risk_score_points (float), risk_factors (list of {factor, weight, direction, detail}), decision_bands (dict).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | The transaction amount | |
| is_tor | No | Request originated from a Tor exit node | |
| currency | No | ISO 4217 currency code | |
| event_id | No | Your identifier for this event (echoed back; use with fraud_feedback) | |
| avs_match | No | Whether the address-verification check matched | |
| is_new_ip | No | First time seeing this IP | |
| ip_country | No | ISO country code geolocated from the IP | |
| card_country | No | ISO country code of the payment instrument | |
| cvv_provided | No | Whether the CVV was provided | |
| txn_count_1h | No | Number of transactions on this account in the last hour | |
| is_new_device | No | First time seeing this device | |
| txn_count_24h | No | Number of transactions on this account in the last 24h | |
| is_proxy_or_vpn | No | Request originated from a proxy/VPN/datacenter IP | |
| account_age_days | No | Age of the account in days | |
| prior_chargebacks | No | Number of prior chargebacks on this account | |
| avg_txn_amount_30d | No | The account's avg transaction amount over the last 30 days (for amount-anomaly scoring) | |
| distinct_cards_24h | No | Distinct cards used on this account in 24h | |
| distinct_countries_24h | No | Distinct countries seen on this account in 24h |