Skip to main content

Examples

Recipes for common verification policies. Each example lists the rule's group operator and conditions — recreate them in the rule editor with Add condition.

State-restricted products​

Goal: only verify customers when a regulated product ships to a state that restricts it — for example, ammunition shipping to Connecticut.

Rule: "CT ammunition" — Match ALL (AND)

  • Shipping to state/province — United States, Connecticut
  • Products in collection with a specific metafield — set the real_id.requires_verification metafield to true on your ammunition collection

Orders shipping ammunition anywhere else, or shipping other products to Connecticut, are not verified. Works in every flow.

If several states restrict different product sets, create one rule per state — rules combine with OR, so each policy triggers independently.

Province-restricted products (Canada)​

Goal: only verify customers when a regulated product ships to a Canadian province with a minimum age for it — for example, energy drinks shipping to Quebec, where sales to anyone under 16 are banned.

Rule: "Quebec energy drinks" — Match ALL (AND)

  • Shipping to state/province — Canada, Quebec
  • Products in collection with a specific metafield — set the real_id.requires_verification metafield to true on your energy drink collection

Then set your minimum age to 16 in Age verification. Customers in other provinces, and orders without energy drinks, check out as usual. Works in every flow.

The same pattern works for the other countries the Shipping to state/province condition supports: Australian states and U.K. nations.

Only some products need ID​

Goal: sell regulated products alongside products that don't need verification, like merchandise or accessories, without asking for ID on orders that only contain the unrestricted products.

Rule: "Restricted products" — Match ALL (AND)

  • Products in collection with a specific metafield — your restricted collection

Mark the products that need ID, not the ones that don't: orders with only unrestricted products never match. There's no "doesn't contain this product" condition, so put your restricted products in one collection and mark that collection.

To limit it to one place, add a Shipping to state/province or Shipping to country condition to the same rule.

See Selling age-restricted products for the full setup.

High-value, high-risk orders​

Goal: screen for fraud without verifying every large order — only orders that are both expensive and flagged by Shopify's fraud analysis.

Rule: "Large risky orders" — Match ALL (AND)

  • Cart total — is at least 500
  • Order risk level — Medium, High

This rule uses order risk, so it's after checkout only.

Card-not-present fraud screen​

Goal: verify orders that show a classic chargeback pattern — paid by credit card with a billing address that doesn't match the shipping address.

Rule: "Card + address mismatch" — Match ALL (AND)

  • Credit card payment
  • Billing/shipping address mismatch

Both conditions depend on order data, so this rule is after checkout only.

Everyone except wholesale accounts​

Goal: verify all orders, except from business customers you've already vetted and tagged wholesale in Shopify.

Rule: "All retail orders" — Match ALL (AND)

  • All orders
  • Customer tag — does not contain wholesale

Before checkout, the customer must be logged in for the tag to be read. After checkout, the order's customer is used directly.

tip

For customers who've completed a Real ID check before, use the Remember verified customers exception instead — it skips repeat verification automatically without tagging.

Mixed AND/OR logic with nested groups​

Goal: verify orders shipping to Connecticut that contain either ammunition or another regulated product line.

Rule: "CT regulated products" — Match ALL (AND)

  • Shipping to state/province — United States, Connecticut
  • Nested group — Match ANY (OR)
    • Products in collection with a specific metafield (ammunition collection)
    • Cart contains products (specific regulated SKUs)

Use Add nested group inside the rule editor to build the inner OR group. Groups can be nested up to two levels deep.