Skip to content
EarnKit
Browse docs

Use EarnKit with Shopify Flow

Use loyalty points changes to start Shopify Flow workflows.

Last reviewed

What it does

EarnKit provides one Shopify Flow trigger: Loyalty points changed. A workflow receives the customer, Points delta, Previous balance, New balance, Classification with change type and earning reason, Earning rule identifier, Qualifying earning, and Occurred at.

EarnKit does not provide Flow actions. A workflow cannot change a customer’s points.

Before you start

Install Shopify Flow. To send an email, also install Shopify Messaging.

There is nothing to switch on in EarnKit. EarnKit sends points changes while a workflow using Loyalty points changed is turned on. In EarnKit, go to Integrations to see whether it is sending.

Tag customers who earn 100 points or more from a purchase

  1. In Shopify Flow, create a workflow.
  2. Choose Loyalty points changed as the trigger.
  3. Add a condition with these three criteria, joined by AND:
    • Qualifying earning is equal to true.
    • Earning reason is equal to PURCHASE.
    • Points delta is greater than or equal to 100.
  4. Add the Add customer tags action and choose the tag to add.
  5. Turn on the workflow.

Send an email with Shopify Messaging

On some stores, Send marketing email is not offered in the action list for a blank workflow. Start from Shopify’s Welcome new subscribers with a discount email template instead.

  1. Open that template in Shopify Flow.
  2. Replace its trigger with Loyalty points changed.
  3. Replace its condition with the three criteria above.
  4. Keep its Send marketing email step, then choose your own email template in that step.
  5. Turn on the workflow.

Choose an email template before you run a test. Flow will not run a test while that step has no template.

What to know about the email

This is a marketing email, so it reaches only customers who are subscribed to email marketing. Its content comes from the Shopify email template and cannot show the points figure from the event.

Filter ideas

Filter Use it for
PURCHASE Points earned from a purchase
BIRTHDAY A birthday reward
REFERRAL A referral reward
SOCIAL A social follow reward
ACCOUNT_CREATION A first-visit reward
Qualifying earning is false Reversals, redemptions, compensation and staff adjustments

To act when a customer crosses a threshold of N points, set Previous balance to less than N and New balance to greater than or equal to N.

Troubleshooting

Problem Check
The workflow did not run Confirm it is turned on, the Integrations page says it is sending, and the points change met every criterion.
The workflow is turned on but Integrations says it is not sending Turn the workflow off, then turn it on again.
An email was not received Confirm the customer is subscribed to email marketing.