Order rules

An overview of our order rules.

Our order rules are highly customizable. You can use them to automatically process orders in the NS8 platform. Order rules perform specific actions when an order meets the criteria that you outline. For example, you can create an order rule to cancel any order that has a score below 200. Or create a rule that changes the risk level for orders placed by anyone whose last name is Bluth.

Create custom order rules based on what your storefront needs and its risk tolerance. Combine multiple order rules to create entire workflows so most of your orders are automatically processed.

Options

  1. Insert Rule - Add an order rule to your workflow.

  2. Active toggle - Turn individual order rules on or off. When an order rule is turned off, it is not added to your processing workflow.

  3. Name - Shows the name of the order rule, if applicable. When you create order rules, give each one a descriptive name that's easy to recognize.

  4. Rule Syntax - Shows the logic that governs each rule. To view all the logic for a rule, under Manage, select the pencil icon.

  5. If Yes/No - Shows the action that we'll take depending on whether the order rule is met. Note: Order rules act on the first rule that has its conditions met, and then leave the order rule workflow.

  6. Manage - Manage each order rule. To edit an order rule, select the pencil icon. To remove an order rule, select the trash can icon. To change the sequence in which the order rules run, drag the arrow icon.

Create order rules

  • Name - Shows the name of the order rule, if applicable. When you create order rules, try to give each rule a descriptive name that's easy to recognize.

  • Active - Turn individual order rules on or off. When an order rule is turned off, it is not added to your order processing workflow.

  • And/Or - Choose the relationship between conditions in a group. For more information about and/or logic, go to NS8 operators.

  • Add Group - Add a subgroup of rules to an order.

  • Add Condition - Add a condition to a group or subgroup of rules. Conditions are the criteria that identify when an order rule should run. These conditions are based on information like customer identity, score, dollar amounts, shipping location, and so on. To prevent confusion, we recommend creating separate rules for each workflow.

  • If Yes - Select an action for us to take if an order rule meets all the required conditions. Each order rule only triggers one action. 

  • Notes (optional) - Leave notes to explain the logic behind a rule or the rule’s intended function. If multiple people manage your storefront, leave detailed notes to help prevent confusion.

Actions

If an order meets all the conditions, we'll run the action that you choose. Each order rule can trigger one of several actions, but it cannot trigger more than one action per rule.

Available actions:

  • Set NS8 Risk to High Risk: Changes an order’s NS8 Risk to High. An order is not automatically approved or canceled. The order stays in Merchant Review.

  • Set NS8 Risk to Medium Risk: Changes an order’s NS8 Risk to Medium. An order is not automatically approved or canceled. The order stays in Merchant Review.

  • Set NS8 Risk to Low Risk: Changes an order’s NS8 Risk to Low. An order is not automatically approved or canceled. The order stays in Merchant Review.

  • Verify Customer: Starts customer verification for an order. An order can automatically be canceled or approved based on the verification results and your custom settings.

  • Set NS8 Status to Canceled: Cancels an order.

  • Set NS8 Status to Approved: Approves an order.

  • Run Ekata Identity Check: Runs Ekata Identity Check for an order. An order is not canceled or approved. This is only available for Ekata Pro users.

Hierarchy

The hierarchy in which you arrange order rules will affect your order process. We compare new orders against all the active order rules. When an order is processed, we'll run the first order rule whose conditions are met, then the order rule process is complete. Any other order rules won't run.

We recommend that you arrange your order rules in a logical hierarchy. Most order rules fit into one of four categories. Arrange rules that belong to one category so they're relative to rules in other categories. If your needs vary, plan carefully.

  1. Positive list - Build rules that identify known “good customers” whose orders have been caught by your fraud filter in the past. To make sure that orders placed by these customers aren't affected by other order rules, put positive list rules at the top of your hierarchy.

  2. Negative list - Build rules that block or flag orders that have specific risk factors. These risk factors can be based on the order’s score, shipping address, customer name, or another condition. To make sure that suspicious orders are blocked or flagged, put negative list rules directly after positive list rules. Good customers who have been approved by your positive list rules won't be affected.

  3. Verification - Build rules that try to verify customers who meet your conditions. To help verify customers in edge cases without affecting orders identified as valid or invalid, put verification rules after negative and positive lists.

  4. Logic - Build any other rules that meet conditions that are not already listed. To make sure that remaining order rules only affect orders for which other conditions have not been met, put logic rules after positive lists, negative lists, and verification rules.

Variables

You can enter a string of custom text in certain order rule conditions. You can use variables instead of specific values. For example, to verify that a customer’s billing address is the same as their shipping address, use variables that correspond to the relevant information for an order:

Billing Country equals {{ Shipping Country }}

Enter variables exactly as they appear, using brackets. The variables that are compatible with our order rules appear in the following table.

Variables

{{ Billing Address }}

{{ Shipping Address }}

{{ Billing City }}

{{ Shipping City }}

{{ Billing Country }}

{{ Shipping Country }}

{{ Billing Country Code }}

{{ Shipping Country Code }}

{{ Billing First Name }}

{{ Shipping First Name }}

{{ Billing Last Name }}{

{{ Shipping Last Name }}

{ Billing Postal Code }}

{{ Shipping Postal Code }}

{{ Billing State/Province }}

{{ Shipping State/Province }}

{{ Billing State/Province Code }}

{{ Shipping State/Province Code }}

{{ Customer First Name }}

{{ User Country Code }}

{{ Customer Last Name }}