Fraud Intelligence
Fraud Intelligence uses AI-powered machine learning models to automatically assign risk scores to card-not-present authorization and verification transactions, and to detect fraudulent patterns before they result in losses. The outcome of the evaluation is returned in the response using the risk.riskEvaluationCode field, which indicates whether the transaction continued to the issuer or was stopped by Fraud Intelligence. You do not need a separate API call.
Before you begin
Fraud Intelligence is enabled and managed in Commerce Center. No API changes are required to your authorization or verification integration to get started.
Availability
| Region | Status |
|---|---|
| United States (US) | Supported |
| Canada (CA) | Not yet available |
| EMEA (UK) | Not yet available |
| Australia (AU) | Not yet available |
Out of scope
The following features are currently out of scope:
- Non-card payment methods
- Card-present transactions
Request fields that drive Allow and Deny lists
Allow and Deny lists are merchant-configured lists of attributes that immediately trust or block matching transactions. Fraud Intelligence matches Allow and Deny list entries against specific fields on your authorization requests. If you don't send the field in the request, the list rule for that attribute cannot match.
| Commerce Center attribute | API field name | Format |
|---|---|---|
| Customer Email | accountHolder.email |
Valid email format. Must contain an @ and a period (.). |
| Customer ID | accountHolder.referenceId |
Must match the exact value you configure on the list. |
| IP Address | browserInfo.deviceIPAddress |
Valid IPv4 or IPv6. |
API behavior in responses
When Fraud Intelligence is enabled, every authorization and verification response includes a risk.riskEvaluationCode field. Read this field to see the outcome of the fraud evaluation for the transaction.
| Field name | Data type | Description |
|---|---|---|
risk.riskEvaluationCode |
string (enum) |
The result of the fraud evaluation for the payment request. Indicates the next steps in the payment processing flow.
|
Code samples
The following examples show a portion of an authorization response where Fraud Intelligence approved and denied a transaction.
Approve
The following code sample shows a portion of an authorization response where Fraud Intelligence approved the transaction and it continued to the issuer.
HTTP Method: POST
Endpoint: /payments
{
"transactionId": "v2-auth-1781800001",
"requestId": "auth-req-1781800001",
"transactionState": "AUTHORIZED",
"responseStatus": "SUCCESS",
"responseCode": "APPROVED",
"responseMessage": "Transaction approved",
"amount": 15000,
"currency": "USD",
"paymentMethodType": {
"card": {
"cardTypeName": "VISA",
"maskedAccountNumber": "401200XXXXXX0026"
}
},
"risk": {
"riskEvaluationCode": "APPROVE"
}
}Deny
The following code sample shows a portion of an authorization response where Fraud Intelligence denied the transaction, and the payment was stopped before being sent to the card network. The risk.riskEvaluationCode field shows the result of the fraud evalutation, reflected in the responseCode and responseMessage.
HTTP Method: POST
Endpoint: /payments
{
"transactionId": "v2-auth-1781800002",
"requestId": "auth-req-1781800002",
"transactionState": "DECLINED",
"responseStatus": "DENIED",
"responseCode": "RISK_DENIED",
"responseMessage": "Transaction was declined due to fraud check",
"amount": 95000,
"currency": "USD",
"paymentMethodType": {
"card": {
"cardTypeName": "VISA",
"maskedAccountNumber": "401200XXXXXX0026"
}
},
"risk": {
"riskEvaluationCode": "DENY"
}
}