Skip to content

Rules

Scores and facts are inputs; your rules turn them into the recommendation. Every integration point (each event_type) has its own ruleset, so a login can be strict about new devices while a checkout cares about amounts. You build and publish rules in the console’s rules editor, a flowchart you can read at a glance.

Rules run top to bottom and the first match wins. Each rule is a check and an action:

Action Effect
allow, review, step_up, deny Answers the decision.
points Adds to (or, when negative, lowers) the risk score, then carries on.

Every rule has a stable reason code, so you can branch on it in your own code and see it in reports. The starter rules use B001 to B099, with the same meaning for every customer; rules you write start at B100.

Checks can use the event (type, amount), location and network (country, hosting, Tor exit, VPN, open proxy, hijacked network, iCloud Private Relay), velocity (accounts per device, devices per account over 24 hours to 90 days), your own outcome history (has this device or account been reported, how recently, in what role), and our verdicts (risk and trust scores, reputation, reason codes, bot verdict, agent type, evidence).

Your own integration points and shared rulesets

Section titled “Your own integration points and shared rulesets”

Built-in points cover the common moments. Add your own in the console’s Rules page when you ask for a decision somewhere else, such as a loyalty redemption or a wire:

  • Add a point. Give it a name and an event type (what your code sends as event_type). It starts with its own ruleset, copied from one you pick. Copying Everything else keeps today’s answers for that event type, since it ran other before.
  • Share a ruleset. Add a shared ruleset (its key starts with rs_) and choose it on each point that should answer the same way, such as one set of money-out rules for payout and wire_out. A change to it changes every point that runs it. Each point’s choice is per environment, so you can try it in the sandbox first.
  • Rename a point or a shared ruleset at any time. The event type never changes, so your integration keeps working.
  • Delete a point you no longer use. Decisions that still send its event type run other. If it had decisions in the last 7 days, the console asks you to type the event type to confirm. A shared ruleset can be deleted once no point runs it. Nothing is erased: every version stays in the audit log, and an event type is never reused.

Adding a point, choosing another ruleset, and deleting all change what decisions run, so each needs your authenticator code, like publishing. You can have up to 50 points of your own and 100 rulesets. A copied ruleset keeps the reason codes of the rules it copied, with the same meaning; new rules you add get new codes.

Every new account starts with a ruleset for every integration point, so protection works from your first decision. A transaction can come from a person or from software, and the starter rules treat those as different questions. Each one has the same three parts:

  1. Checks for everyone. Deny a spoofed agent (B002), deny a device or account you reported for fraud or abuse in the last 90 days (B001), take a closer look at one reported before that (B008), and deny at risk 700 (B006). Who is acting does not change what a device or account has done.
  2. Who is acting? A branch picks one lane: an undeclared bot or script, a crawler, a verified agent, an agent we could not verify, or, when none of those, a person.
  3. A lane for each, tuned to the moment.
Lane What the starter rules do
Undeclared bot or script Deny (B010; B021 when it enters credentials at login).
Crawler or other declared bot Deny on transactional events (B012). Add your own monitors to the allow list by agent family.
Verified agent Everyday moments go through: sign-up, and checkout under 1,000 (B031 steps up larger purchases). At login the person confirms once (B020); after that, on the same device, the agent signs in (B025). Applications, password resets, account changes, payouts, and new API keys wait for the person to confirm (B003).
Agent we could not verify Step up (B004): the agent proves who runs it or the person confirms. Payouts go to review.
Person Event checks first (accounts per device, devices per account, new device on a sensitive change, a large order on a new device). Then a returning customer on the device they have used with the account for a while goes through (B050). A middling risk score (400 to 699) gets a step up the person can clear (B024), except applications and payouts, which go to review (B005).

Rules best practices explains the reasoning behind each choice. Two principles run through all of it. A missing signal, such as a blocked tag or a VPN, is never a reason to deny on its own. And trust is earned by the exact device and account together, so it never follows an account to a new device and never skips a payout or application review.

The rules editor shows each one in full. Starter rules are version 1 of each ruleset until you edit them. When we improve them, you get the update offered as a draft to replay and publish; we never change your live rules.

  • Every save is a version. A version never changes after it is saved. Each ruleset has one live version, at most one draft, and at most one in shadow.

  • Replay a draft against your past traffic to see which decisions it would change before you publish.

  • Shadow a version on live traffic: it runs beside the live one, and the decision reports what it would have answered in rule.shadow, without changing the outcome.

  • Roll back in one click. Every decision records the ruleset and version that answered it.

  • Rule ideas from the fraud manager appear beside each ruleset: checks that would have caught fraud the live version let through. Adding one puts it in the draft, ready to replay.

Sandbox and live keep separate rulesets, so you can try a change in the sandbox first.

Lists run before your rules, for every event type. Add an entry in the console’s Lists page, or from a case:

List Effect
block Sets the recommendation to deny.
hold Sets the recommendation to review.
allow Sets the recommendation to allow.

An entry matches a device ID, one of your account IDs, an IP address or range (no wider than a /16 for IPv4 or a /32 for IPv6), an email domain, or an agent family. When several entries match, block wins over hold, and hold over allow. An entry can last 1, 7, 30, or 90 days, or until you remove it. Changes reach every decision within a few seconds, each add and remove is in the audit log, and removed or expired entries stay on view for 30 days. From a case, one click blocks its devices for 90 days or holds its accounts for 30 days; those entries link back to the case.

The decision names the entry that matched:

"list": { "list": "hold", "kind": "email_domain", "entry_id": "le_6f1c9a2b" }

list is absent when nothing matched. The rules still run, so rule still shows what they would have answered, but the list sets recommendation.

"rule": {
"ruleset": "checkout",
"version": 8,
"action": "review",
"code": "B030",
"path": ["next", "next", "next", "yes"],
"shadow": { "version": 9, "action": "allow" }
}

path is the branch taken at each step, which is how the console draws the route through the flowchart.