# Shopify Flow and Loyalty Events

> LoyalXP exposes loyalty events to Shopify Flow and signed webhooks, so you can automate follow-ups without custom code. Here is what that means.

By Smaran Challapalli. Updated for 2026, 2 Nov 2026. First published 18 Oct 2026.
Canonical: https://loyalxp.com/blog/shopify-flow-loyalty-triggers/

[LoyalXP](https://loyalxp.com/) does not send messages. When something happens in your loyalty program, it tells Shopify Flow, or a signed webhook you control, and you decide what follows. Every trigger is off until you switch it on in the Triggers tab. This post covers the events, the settings behind them and how to verify a webhook.

## What is Shopify Flow, and where do LoyalXP triggers appear?

Shopify's own definition is short: [a trigger is a task in Shopify Flow that starts the execution of a workflow](https://shopify.dev/docs/apps/build/flow/triggers). Apps can add triggers of their own, and LoyalXP's appear in the Flow editor under "LoyalXP", for example "LoyalXP: Points earned".

The Flow triggers to build on are: Points earned, Level up, Points expiring and Customer inactive. Build the workflow in Flow, pick a trigger, and add whatever action you want, such as tagging the customer or notifying your team. The [Shopify loyalty program guide](https://loyalxp.com/guides/shopify-loyalty-program/) shows where this fits.

## Which events does the Triggers tab list?

The tab lists these topics today:

1. **Points earned**
2. **Points converted** (points turned into store credit or a code)
3. **Points expired**
4. **Points expiring soon**
5. **Level up**
6. **Inactive customer**
7. **Balance threshold**

Each has a switch. Nothing is sent for a topic until you turn it on, so a new install fires nothing by accident.

## What data does a Flow trigger carry?

Every payload carries a reference to the customer, plus fields for the event:

- **Points earned:** Points, Order reference, Reason.
- **Level up:** Level, Previous level, Level points.
- **Points expiring:** Points expiring, Expires on, Days left, Balance.
- **Customer inactive:** Days inactive, Last purchase on, Balance.

The customer reference is the Shopify customer ID. Payloads carry no name, email or phone, so your workflow looks the customer up in Shopify, where those details already live.

## How do you set the timing for expiring, inactive and balance events?

Three events depend on numbers you choose in the Triggers tab. Each list holds up to six values.

- **Days before points expire:** for example 30, 7 and 1. One reminder event fires at each.
- **Days without a paid order:** for example 60, 90 and 180.
- **Balance thresholds (points):** for example 500 and 1,000.

These are EXAMPLE values, not recommendations. Here is a worked case. A customer holds 400 points that expire on 30 November. With 30, 7 and 1 set, "Points expiring soon" fires on 31 October, 23 November and 29 November, each with Days left and Expires on filled in. A Flow workflow could tag them "expiring" on the first, and your team can handle the nudge in whatever messaging tool you already use. LoyalXP itself sends nothing.

## How do webhooks work?

If you would rather receive events in your own system, the Webhook section has a "Webhook URL" field. LoyalXP shows a signing secret once, so copy it then. A "Rotate secret" button issues a new one, and the old secret keeps signing for 24 hours so you can switch over without dropping events.

Each request carries four headers:

- `x-loyalxp-topic`: the event name.
- `x-loyalxp-timestamp`: when it was sent.
- `x-loyalxp-signature`: `sha256=` followed by the hex HMAC of the timestamp, a full stop and the raw request body, using your secret.
- `x-loyalxp-delivery`: a delivery ID.

To verify: compute the HMAC over `timestamp.rawBody`, compare it to the signature, and reject anything whose timestamp is more than 300 seconds old. Use the raw body, not a re-serialised copy, or the signature will not match.

## What happens when your endpoint is down?

Answer with any 2xx to acknowledge a delivery. Anything else counts as a failure and is retried: up to eight attempts, starting at one minute and doubling up to six hours between tries, so a bad afternoon does not lose events. The "Recent deliveries" table shows When, Trigger, State (Waiting, Sent, Failed or Closed), Tries and Detail. A Redeliver button resends a single event once you have fixed the problem.

## What goes wrong?

- **Expecting an email.** LoyalXP triggers an action; it does not send the message. Wire the trigger to a tool you already use.
- **Forgetting the switch.** A topic that is off sends nothing, in Flow or by webhook.
- **Verifying a parsed body.** Sign-check the raw bytes.
- **Ignoring duplicates.** Retries can deliver an event again. Use the delivery ID to ignore repeats.

For cost context see [how much a loyalty program costs](https://loyalxp.com/blog/loyalty-program-cost/); every trigger is included in the $15 a month, with 250 paid orders included and each further 250 at $5 as a Shopify usage charge up to a cap you set. [Request early access](https://loyalxp.com/#early-access).

## Related guides and posts

- [Shopify loyalty program: how to set one up](https://loyalxp.com/guides/shopify-loyalty-program/)
- [How to set up a loyalty program on Shopify](https://loyalxp.com/blog/set-up-shopify-loyalty-program/)
- [Loyalty points expiry](https://loyalxp.com/blog/loyalty-points-expiry/)
- [Loyalty program software: what to look for](https://loyalxp.com/guides/loyalty-program-software/)
- [LoyalXP and Smile.io compared](https://loyalxp.com/compare/loyalxp-vs-smile-io/)

## Frequently asked questions

### Does LoyalXP integrate with email tools directly?

No. Use Shopify Flow or a webhook to hand the event to your own tools.

### Are webhooks signed?

Yes. Each request carries an HMAC signature and a timestamp you should check.

### Is Flow extra?

No. Triggers are part of the same $15 a month as every other feature.

## Related guides and posts

- [Shopify Loyalty Program: How to Set One Up](https://loyalxp.com/guides/shopify-loyalty-program/)
- [Backfill Points for Past Orders at Launch](https://loyalxp.com/blog/backfill-points-past-orders/)
- [Guest Checkout Points: How Order Claims Work](https://loyalxp.com/blog/guest-order-points-claims/)
- [How to Set Up a Loyalty Program on Shopify](https://loyalxp.com/blog/set-up-shopify-loyalty-program/)

[Request access](https://loyalxp.com/#early-access): 14 days free, then $15 a month with every feature.
