Create a complex order rule

Create a compound order rule that has multiple arguments.

There are times when an order rule needs more than one argument to perform an action. Order rules with multiple conditions can be a powerful fraud prevention tool. Carefully review your rules' logic because increased complexity brings a higher chance of mistakes.

Positive and negative lists

Positive lists prevent VIP customers' orders from being wrongly quarantined. Negative lists cancel orders placed by known bad actors.

For example, shopping through a VPN is considered suspicious behavior and negatively affects an order'sĀ score. However, if you have a regular customer who always uses a VPN for legitimate reasons, and their orders are being held, you can add them to a positive list. Their purchases and orders will be automatically approved and processed without issue.

Note: As a best practice, we recommend building positive lists with a price limit to prevent issues with compromised accounts.

Negative lists are similar to positive lists. They hold or cancel an order that meets certain criteria. For example, when you know that a specific shipping address is associated with a problematic freight forwarder. Add this shipping address to a negative list to make sure that these orders are canceled by default.

To keep your order processing manageable, use one order rule for positive lists and another for negative lists. Use and/or conditions in each order rule to keep your logic manageable.

Create an order rule with multiple conditions

  1. On the order rules page, select Add New Rule.
  2. Add the first condition.

For a positive list, your first condition could be a dollar value that establishes the threshold at which you want an order screened. In the event that a VIP customer's account is compromised, excessively large orders will still be subject to review. Note: You can also choose to use a dollar value on some negative lists.

For example, you can build a rule that holds any orders over a certain dollar amount. The following image shows the first condition as Action to take and Total Price.


Note: Each ecommerce platform has its own actions.

For Magento users, go to Magento order rule actions.
For PrestaShop users, go to PrestaShop order rule actions.
For WooCommerce users, go to WooCommerce order rule actions.


Add secondary conditions

To add conditions, use Add rule and Add group. A group is a collection of multiple rules. Each group of rules can be set to either And or Or, but not both. The following example is broken down step by step, including steps 1 and 2 above.

  1. From steps 1 and 2 above, the action for this new order rule is Whitelist - accept
    . It has a price limit of less than or equal to $200.
  2. The condition for the next rule group is set to And.
  3. To create a second set of conditions related to the price limit, select Add group.
  4. To add customers to the whitelist, select Add rule, and then enter the last name for each customer using Or as the condition type.
  5. To create a rule group as an Or condition to the names listed, click Add group again.
  6. To prevent approvals in error and add a specific address to the positive list, create two rules. Set the condition for the Billing Address and Billing Postal Code to And.
  7. To create another Or condition, next to the first group, select Add rule. Now you can add another last name to the list of approved customers. This rule determines if the Customer Email is equal to [email protected]. To continue to add customers to this list, repeat this step. To create another group, go back to step 5.
  8. To save the new rule, select OK.

More examples

The following rule quarantines orders over $199 that are shipping outside the U.S. You can also use the condition for the Billing Address or User Country fields. User Country identifies where the customer's device was located when they placed the order, not the country where the order is being shipped.


The following order rule contains a list of customers that you have identified as bad actors for whom you do not want orders fulfilled. The fields used to identify the fraudsters do not have to be the same in the rule. Use the Or logic gate to make sure that only one condition needs to be met for the rule to run.


There are many ways to use multiple conditions to protect your orders. For more help with order rules, select Live support to contact us.