> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fraudeg.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rules

> Turn Fraudeg's rules that evaluate your transactions on or off, and test the impact first

**Rules** lists the Fraudeg rules that evaluate your transactions. Here you **turn** each one
**on** or **off** and, before changing anything, **measure** what would happen with your own data.
To create your own rules, use [Custom rules](https://docs.fraudeg.com/en/manual/reglas-personalizadas.md).

## Before you start

| | |
| - | - |
| **Where** | **Decision Engine › Rules** |
| **To view** | `RULES_VIEW` permission |
| **To turn on, turn off, or apply changes** | `RULES_WRITE` permission. Without it you'll see **You have read-only access…** |
| **Requirements** | Analyzed transactions, so the impact and the backtest have data |

## How they are organized

The tabs depend on your company type:

| If you are… | Tabs |
| - | - |
| A merchant or non-bank company | **Company type rules**, **Payment method rules**, and **Sandbox** |
| A bank | One tab for each enabled domain, and **Sandbox** |

## Key concepts

| Concept | What it is |
| - | - |
| **Enabled** / **Disabled** | Each rule's toggle. A disabled rule doesn't evaluate your transactions |
| **Mandatory** | The rule can't be turned off |
| **Adjusted by Fraudeg** | Fraudeg tuned it for your account and it is locked |

## Review a rule

Open a rule to see its details before you touch it:

| Section | What it tells you |
| - | - |
| **What this rule watches** | What it looks at, in plain language |
| **Transactions it caught** | Transactions in your traffic where it fired |
| **If you switched it off** | Click **Calculate impact** to see how your decisions would change without it |
| **Change history** | The changes the rule has had |

## Test changes in the Sandbox

The **Sandbox** lets you combine changes and run a backtest on your data before applying them.

**1. Choose the rules**

In **Rules scoring this account**, turn on or off the ones you want to test. The changes
stay on the **Bench**; they don't affect anything yet.

**2. Choose what to test against**

In **Test against**, choose **All my data** or a specific file.

**3. Run the backtest**

Click **Run backtest** and review the **Result**: how your decisions change.

**4. Apply or discard**

If you like the result, click **Apply changes** and confirm. If not, click
**Reset**.

## When you want to change a rule

| If you see… | Do this |
| - | - |
| A rule that blocks good customers | Open **If you switched it off**, click **Calculate impact**, and test the change in the **Sandbox** |
| A **Mandatory** or **Adjusted by Fraudeg** rule that doesn't work for you | It can't be changed from here. Write to your Fraudeg contact |
| A risk specific to your business that no rule covers | Create a [custom rule](https://docs.fraudeg.com/en/manual/reglas-personalizadas.md) |
| **You have read-only access…** | Ask an administrator for the `RULES_WRITE` permission |

## Related

> [card] [Custom rules](https://docs.fraudeg.com/en/manual/reglas-personalizadas.md)
>
> Write your own rules and launch them in shadow mode.

> [card] [Thresholds](https://docs.fraudeg.com/en/manual/umbrales.md)
>
> Decide which decision applies to each risk level.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.