Docs

Scoring Engine

Your first document

Scoring Engine

Scoring Engine is a powerful tool that enables you to define custom rules for scoring transactions. It is composed of several rule types, including IP Rules, Customer Rules, Phone Rules, Email Rules, Bin Rules, and Transaction Rules. Rules can be combined with logical operators to create complex rules.

The Scoring Engine works by allowing you to define a set of rules that are evaluated for each transaction. Each rule has a set of conditions that are evaluated, and if all conditions are true, the rule is triggered. The triggered rule can then perform an action, such as setting a score, setting a state (Approve, Reject, Review), or adding a value to a list.

Configuring the Scoring Engine

The Scoring Engine is configured by defining a set of rules. Each rule has a name, a type, and a set of conditions.

Rule Types

The following rule types are available:

Rule TypeDescription
IP RuleEvaluates the IP address of the transaction.
Customer RuleEvaluates the customer information associated with the transaction.
Phone RuleEvaluates the phone number associated with the transaction.
Email RuleEvaluates the email address associated with the transaction.
Bin RuleEvaluates the BIN (bank identification number) of the card associated with the transaction.
Transaction RuleEvaluates the transaction information, such as the amount or currency.

Conditions

Each rule can have multiple conditions. Conditions are evaluated using logical operators. The following logical operators are available:

OperatorDescription
ANDEvaluates to true if all conditions are true.
OREvaluates to true if any condition is true.
NOTEvaluates to true if the condition is false.

Actions

If a rule is triggered, the action associated with the rule is performed. The following actions are available:

ActionDescription
Set ScoreSets the score of the transaction to a specified value.
Set StateSets the state of the transaction to a specified value (Approve, Reject, Review).
Add to ListAdds a value to a list associated with the transaction.

Examples

The following example shows a rule that sets the score to 10 if the IP address of the transaction is from the United States and the transaction amount is greater than $100:

Rule NameRule TypeConditionsAction
US High AmountIP RuleIP Address is from United States AND Amount > 100Set Score to 10

The following example shows a rule that sets the state to Review if the customer's email address is not verified and the transaction amount is greater than $50:

Rule NameRule TypeConditionsAction
Unverified EmailEmail RuleEmail Address is not verified AND Amount > 50Set State to Review

The following example shows a rule that sets the score to 20 if the IP address of the transaction is not from the United States and the transaction amount is greater than $100 and the customer's phone number is not verified and the email address is not verified and the BIN is not from Visa:

Rule NameRule TypeConditionsAction
High Amount and Unverified InformationIP RuleIP Address is not from United States AND Amount > 100 AND Phone Number is not verified AND Email Address is not verified AND BIN is not VisaSet Score to 20