Skip to main content

Automate Memberships and Earn Rules with Shopify Flow

How to use Shopify Flow to trigger point awards and membership enrolment in Influence.io — covering nth-order bonuses, wholesale exclusions, and newsletter signups.

Written by Leila Fatehi

Shopify Flow lets you automate actions in Influence.io based on events in your Shopify store. This guide covers the most common use cases: awarding points on a customer’s nth order, auto-enrolling wholesale customers into a Membership, and rewarding newsletter signups.

Requirements

  • Influence.io Plus plan (for General Purpose earn rules via Flow)

  • Shopify Flow app installed (free via the Shopify App Store)

  • Memberships feature enabled (Starter plan or above, for the enrolment use case)


Use Case 1: Award points on the customer’s nth order

There is no native nth-order earn rule in Influence. Use Shopify Flow’s order count condition as a workaround.

Step 1 — Create the General Purpose earn rule

  1. Go to Loyalty Program → Earn & Redeem → Add option to earn and select General Purpose.

  2. Set the point value (e.g. 50 points) and give it a descriptive name (e.g. “5th Order Bonus”).

  3. Set Reward Behaviour to Once per customer (so it only fires once, not on every order).

  4. Save the rule and copy the Earn Rule ID from the rule’s settings page.

Step 2 — Set up the Shopify Flow

  1. In Shopify, navigate to Apps → Shopify Flow and create a new workflow.

  2. Set the trigger to Order paid.

  3. Add a condition: Customer → Orders count → equals → 5.

  4. Add an action: Influence.io → Award General Purpose Earn Rule.

  5. Paste in the Earn Rule ID copied in Step 1.

  6. Turn on the workflow.

To reward on every 5th order instead (10th, 15th, etc.), set the rule to Multiple times and use a remainder equals 0 condition on the order count if your Flow version supports it, or contact our team for guidance.


Use Case 2: Auto-enrol wholesale customers into a Membership

This is the recommended way to exclude wholesale or B2B customers from your standard earn rules. The Flow handles new customers automatically; use a CSV import for existing ones.

Step 1 — Create the Wholesale Membership

  1. Go to Memberships in your Influence dashboard and create a new group (e.g. “Wholesale”).

  2. Go into each earn rule, scroll to the Memberships setting, and set it to exclude the Wholesale membership.

  3. Enable the membership.

Step 2 — Automate enrolment via Shopify Flow

  1. In Shopify Flow, create a new workflow.

  2. Set the trigger to Customer tag added.

  3. Add a condition: Tag equals “Wholesale” (or whichever tag identifies your wholesale accounts).

  4. Add an action: Influence.io → Assign Membership → Wholesale.

  5. Turn on the workflow.

For existing customers who already have the Wholesale tag, use a bulk CSV import instead — prepare a file with EMAIL and MEMBERSHIP columns and send it to us via Live Chat.


Use Case 3: Award points for newsletter signup

There is no native newsletter earn rule. Choose the option that matches your email platform.

Option A — Via Klaviyo

  1. Create a General Purpose earn rule (e.g. “Newsletter Sign-up”, 50 points, Once per customer). Copy the Earn Rule ID.

  2. In Klaviyo, create a Flow triggered by the Subscribed to List event.

  3. Add a Webhook action to call the Influence API endpoint /v1/customers/{customerId}/points, passing the customer’s email and Earn Rule ID.

Option B — Via a Shopify customer tag

  1. Configure your newsletter signup form to apply a Shopify customer tag (e.g. “newsletter-subscriber”) on submission.

  2. In Shopify Flow, create a workflow with the trigger: Customer tag added.

  3. Add a condition: Tag equals “newsletter-subscriber”.

  4. Add an action: Influence.io → Award General Purpose Earn Rule. Paste in the Earn Rule ID.

  5. Turn on the workflow.

Set the earn rule to Once per customer in both options to prevent duplicate point awards.


Troubleshooting

Issue

Likely cause

Fix

Flow runs but no points awarded

Wrong Earn Rule ID pasted, or rule is disabled

Double-check the ID in Influence and confirm the rule is enabled

Customer not assigned to Membership

Customer tag was applied before the Flow was turned on

Use the CSV import method for pre-existing tagged customers

Points awarded multiple times

Earn rule set to “Multiple times” instead of “Once per customer”

Edit the earn rule and change Reward Behaviour to Once per customer

Did this answer your question?