Skip to main content
A custom rule detects a pattern specific to your business using the fields you send, and acts: it alerts, opens a case, holds, or blocks. It’s a good idea to test it in shadow mode before letting it decide.

Before you start

How it works

A rule in Shadow is evaluated on your real transactions and records when it would have fired, without touching the decision. When its Stats convince you, you activate it. If an active rule raises a decision, the response shows it with custom_rule:<id> in reason (see Decisions).

Key concepts

Create a rule

1

Open the editor

In Custom rules, click New rule. Fill in Name and Description.
2

Write the condition

In Fields · click to add, click a field to add it. Dimmed fields aren’t mapped yet. Use + Condition and + Group to combine, and Negate to invert a group.
3

Choose the action

In If the rule fires…, choose what the rule does.
4

Save and choose how to launch it

Click Save rule. In How do you want to launch it?, choose Leave in shadow, Activate now, or Keep as draft. If you haven’t finished yet, use Save draft.
Choose Leave in shadow. You see how many transactions it would catch and which ones, without blocking any good customer in the meantime.

Shortcuts to get started

Write a good condition

A condition with a single field usually catches many good customers. Combine signals that, together, describe only the pattern you’re looking for. Start with Alert or Watch. Move up to Hold or Block only when the shadow stats show it’s accurate.

Operate your rules

Each row in the list has its actions: Edit, Stats, Backtest, Move to shadow, Activate, Back to draft, Disable, and History.
A rule that reads the watchlist can only alert or open a case, and the Backtest can’t replay it: today’s list isn’t the list from back then. Test it in Shadow.

Rules

The Fraudeg rules that evaluate your transactions.

Decisions

How your rule appears in the API response.