Shopify Flow Integration - Loyalty
Shopify made Flow available in any paid Shopify plan. It's an excellent tool for businesses of all sizes that allows automating tasks without any coding required.
Our Loyalty Program features an integration with Shopify Flow, so you can create simple or conditional workflows to reward your customers with loyalty points or store credit for a variety of actions, including new orders, customer creation, and even form submissions. The same actions can also remove points or store credit.
Installation
- Subscribe to any Loyalty plan that includes Integrations (500 orders and above) in the Subscriptions page
- Navigate to Loyalty ➜ Integrations
- Enable Shopify Flow integration. No additional setting is required here.

Available actions
Froonze provides two actions in Shopify Flow:
- Adjust loyalty points: adds or removes loyalty points for the customer
- Adjust store credit: adds or removes store credit for the customer
Both actions accept positive and negative values, so a single action covers both earning and spending. They also accept Shopify variables and formulas, which means the amount doesn't have to be a fixed number, you can calculate it from order value, tags, or any other variable available in your workflow.
Creating a workflow
- Go to Shopify Flow ➜ Workflows
- Click Create a custom workflow
- Start the workflow by adding a Trigger element. This can be any trigger that involves a single customer, such as Customer Created, Order Created, Customer Tagged, Customer Submitted Form (if you are using our Custom Forms integration) or any other custom trigger provided by apps (like review or subscriptions apps)
- If you want to add conditions to the workflow, you could do it now. In the example in the screenshot below, the workflow starts with a Customer tags added action, which is conditioned on the names of the tags that you want to use to continue the workflow.
- Once you have set up all of the middle steps, click Then > Action, and select Froonze > Adjust loyalty points or Froonze > Adjust store credit
- To set up the action, select the Customer the action applies to, then fill in the parameters described below. Use a positive value to add and a negative value to remove.
- Once you are done, Save and Turn On the workflow

Adjust loyalty points: action parameters
- Customer: The customer the points are applied to, selected from the variables available in your workflow. For example, if the workflow trigger regards an order, this would be order.customer.id. If the trigger regards the customer directly, it would be the customer variable from that trigger.
- Points: The number of points to adjust. Use a negative number to remove points. You can enter a fixed number, a Shopify variable, or a formula, for example
{{ order.subtotalPrice }} * 0.1 + 2. This makes it possible to build rules such as double points on a specific day, or points calculated from the order subtotal. - Customer facing note: The note shown to the customer. It appears in the customer's loyalty widget alongside the activity, so use a short descriptive text. Variables work here too, and it is good practice to include the order so the customer can see what the points were for, for example
Reward points for order {{order.name}}. - Internal note: An optional note for admins only, visible in the Activity Log in the dashboard. It is not shown to the customer.
Adjust store credit: action parameters
- Customer: The customer the store credit is applied to, selected from the variables available in your workflow, for example order.customer.id.
- Store credit amount: The amount of store credit to adjust. Use a negative number to remove store credit. As with points, you can use a fixed number, a Shopify variable, or a formula such as
{{ order.subtotalPrice }} * 0.1 + 2. - Expires after (days): The number of days after which this store credit expires. Leave blank or use
0for store credit that never expires. - Currency: The 3-letter currency code to issue or remove store credit in, for example USD, CAD, EUR. Leave blank to use the store's default currency. It must be a currency enabled for the store. You can also use a variable to match the order, for example
{{ order.presentmentCurrencyCode }}, which is the currency the customer used when placing the order. - Customer facing note: The note shown to the customer.
- Internal note: An optional note for admins only, visible in the Activity Log in the settings.
Using variables and formulas
The Points and Store credit amount fields accept plain numbers as well as Shopify variables, so the amount does not have to be a fixed value, it can be calculated from the order, the customer, or anything else available in your workflow.
Flow variable paths follow the Shopify Admin API naming, which is camelCase and often nested, for example order.subtotalPriceSet.shopMoney.amount. They are not the same as the variable names used in themes. Always insert variables with the Add variable link next to the field so the path is correct for your trigger.
Calculating the amount with Liquid filters
The recommended way to calculate an amount is with Liquid filters, which Shopify Flow resolves before sending the value to Froonze. To award 0.3 points per unit of order value plus a 5 point bonus:
{{ order.subtotalPriceSet.shopMoney.amount | times: 0.3 | plus: 5 }}On an order of 100, Flow works this out and sends 35. The common filters for this are times, divided_by, plus and minus, and they can be chained in any order. Flow supports the full set of standard Liquid filters.
Writing the calculation as a formula
You can also write the arithmetic directly in the field:
{{ order.subtotalPriceSet.shopMoney.amount }} * 0.3 + 5Here Flow only replaces the variable and sends 100 * 0.3 + 5 to Froonze as text, and Froonze calculates the result. Both approaches give the same outcome, but the Liquid filter version is more reliable because the calculation is finished before it reaches Froonze.
Things to keep in mind
- Every variable you use must resolve to a number. Variables that return text or come back empty will not be calculated.
- If the amount cannot be calculated, the action returns an error and no points or store credit are adjusted. Nothing is awarded partially.
- Use the Test results tab in the action to check that the amount resolves as expected before turning the workflow on.
Example: removing store credit when an order is cancelled
If your loyalty program awards store credit through the Place an order earning rule, that credit is not removed automatically when the order is later cancelled. Points behave differently, they are deducted automatically on cancellation, so this applies to store credit only.
You can close that gap with a workflow that removes the credit for you:
- Create a custom workflow with a trigger for a cancelled order
- Add the Froonze > Adjust store credit action
- Set Customer to the customer from the order
- Set Store credit amount to a negative value that matches what the order originally awarded. If your earning rule awards a percentage of the order value, mirror that calculation with a negative multiplier, for example
{{ order.subtotalPrice | times: -0.05 }} - Set a Customer facing note such as
Store credit removed for cancelled order {{order.name}} - Save and turn the workflow on
Updated on: 09/09/2026
Thank you!