BrainPredict Commerce • AI Feature Guides
BrainPredict Commerce Fraud Detection Setup
10 min read•Last updated: January 2, 2025
Fraud Detection Setup
Protect your e-commerce store with AI-powered fraud detection.
Overview
BrainPredict Commerce fraud detection uses machine learning to identify suspicious transactions in real-time, reducing chargebacks and protecting your revenue.
Step 1: Enable Fraud Detection
In your BrainPredict Commerce portal, navigate to Features → Fraud Detection and enable the service.
Step 2: Configure Risk Thresholds
{
"risk_thresholds": {
"low_risk": 0.3,
"medium_risk": 0.6,
"high_risk": 0.8
},
"actions": {
"low_risk": "approve",
"medium_risk": "review",
"high_risk": "decline"
},
"review_queue": {
"enabled": true,
"auto_approve_after": "24h"
}
}
Step 3: Analyze Transactions
POST /api/v1/fraud/analyze-transaction
{
"transaction_id": "txn_123",
"amount": 299.99,
"currency": "USD",
"customer": {
"id": "cust_456",
"email": "customer@example.com",
"ip_address": "192.168.1.1"
},
"billing_address": {
"country": "US",
"zip": "10001"
},
"shipping_address": {
"country": "US",
"zip": "10002"
}
}
Response:
{
"risk_score": 0.25,
"risk_level": "low",
"recommendation": "approve",
"factors": [
{"factor": "customer_history", "score": 0.1, "weight": 0.3},
{"factor": "transaction_amount", "score": 0.2, "weight": 0.2},
{"factor": "geolocation", "score": 0.15, "weight": 0.25}
]
}
Step 4: Monitor Performance
- False positive rate
- Chargeback reduction
- Revenue protected
- Processing time