WooCommerce Loyalty Integration: Reward Online Orders on a Phone Wallet Card
A WooCommerce loyalty integration sends each completed order from your WordPress shop to a wallet card, so online spend earns the same stamps or points as a visit. MSTRMND connects through webhooks and the API on the Business plan. This page explains how, and where it stops.
Via API and webhooks, Business plan
Connect WooCommerce to a wallet card
- Decide which orders earn
- Add a webhook on completion
- Call the card API
- Test a refund
Check the refund path before you tell customers.
What does a WooCommerce loyalty integration do?
WooCommerce can tell another system when an order is created or changes status. MSTRMND can receive that message and add the order to a customer’s wallet card. The result is one card that counts the café visit and the online order, for a shop that sells in both places.
MSTRMND does not publish a WooCommerce plugin. The link is a webhook from the shop to a small automation or a script, which calls the MSTRMND API. The Business plan includes both the API and webhooks. New to wallet cards? Start with our guide to digital loyalty cards.
How an order reaches the card
WooCommerce webhooks fire on events such as an order being created, updated or deleted. For loyalty, the useful event is the order moving to the status “completed”, because that is the point at which the sale is real.
- Receive the order from the WooCommerce webhook, with the customer’s email or phone.
- Find or create the customer and issue a card if they do not have one.
- Add the order amount or one stamp to the card.
- Subtract if the order is refunded or cancelled.
A no-code tool in the middle, such as Zapier or Make, can receive the webhook and call the API without custom code.
Four WooCommerce events and the card action each one drives
Each row is one webhook rule.
| WooCommerce event | Sent to MSTRMND | Card action | Best for |
|---|---|---|---|
| Order completed | Email or phone, total | Add points or a stamp | Online spend |
| Order refunded | Email or phone, amount | Subtract the reward | Keeping balances honest |
| Customer created | Email or phone | Issue a wallet card | Welcome offers |
| Third order completed | Email or phone | Add a reward | Repeat purchase |
Which orders should earn
A shop has more order states than a till has sales. Decide in advance which ones count. Orders that are pending payment, on hold or failed should not earn. Completed orders should. Refunded orders should reverse what they earned.
Shipping and tax raise a second question. Rewarding on the product total is simpler to explain to customers, and it avoids rewarding the cost of postage. Whatever you choose, write it in one sentence on the card and in the shop’s terms.
Rules that suit an online shop
Points per pound spent
Send the order total and let a points card turn it into points. A larger basket earns more, which suits shops where order sizes vary a lot.
A stamp per order
A stamp card with one stamp per completed order suits a shop selling a regular repeat item, such as coffee beans or refills.
A reward for the third order
A reward on the third completed order encourages the second and third purchase, which is where most online shops lose customers.
A different path for guest checkout
A guest order may have no account. Match on email or phone, and decide whether a guest order can create a card at all.
API access by plan
The webhook needs the API, so it needs the Business plan.
Source: MSTRMND plan limits, checked 11 October 2026.
What you need before you start
- The Business plan, which includes API and webhooks.
- A WooCommerce shop where you can add a webhook, and a place to receive it.
- The API credentials from your MSTRMND account.
- A matching key: email or phone, collected at checkout.
- A written rule for which order states earn and reverse.
Where it stops
Because there is no plugin, someone has to build and monitor the link. Customers who check out with no phone number can only be matched by email. A webhook that fails will not retry forever, so add an alert. And if the shop also takes orders by another route, those need their own link or they will not earn.
A first-week plan for a WooCommerce loyalty integration
Start with one rule and one test order.
- Day one: decide which order states earn and which reverse, and write it down.
- Day two: collect your MSTRMND credentials and choose the matching key.
- Day three: add the webhook on order completion and route it to the card API.
- Day four: add the refund and cancellation path.
- Day five: place a real order, refund it, and check the card both times before you tell customers.
Put the reward rule on the shop’s checkout or account page in one sentence, so a customer knows what a purchase earns before they pay.
Questions to ask before you launch
A shop has more edge cases than a till does.
- What happens to the reward if only part of an order is refunded?
- Do discount codes reduce what an order earns?
- Can a customer change their email after ordering?
- Who is told when the webhook fails?
Answer each one in writing. A shop owner who knows the rule can explain it to a customer who writes in about a missing reward.
Frequently asked questions
Is there a WooCommerce plugin for MSTRMND?
No plugin is published. A WooCommerce webhook sends the completed order to a no-code tool or a small script, which calls the MSTRMND API. Both the API and webhooks are included on the Business plan, so the build is what takes the time, not a licence.
Can online and in-store spend share one card?
Yes, if both routes match the customer the same way. Use the same key, email or phone, in the shop and at the till, and both write to one card. If the keys differ, the customer ends up with two cards and two balances.
What about refunds and cancellations?
Build the reverse before you launch. A refunded order should subtract what it earned, using the same subtract actions the API provides. Test it with a real order, because a loyalty card that keeps rewards for refunded purchases costs real money.
What does it cost?
MSTRMND’s side is the Business plan, £115 a month billed annually, which includes API and webhooks. WooCommerce itself is free software, but hosting and any automation tool you add have their own costs. Check those against your order volume, since a busier shop needs a sturdier set-up than a quiet one.
Key takeaways
- A WooCommerce loyalty integration sends completed orders to a wallet card by webhook.
- No plugin is published, so the link is built with a webhook and the MSTRMND API.
- Reward completed orders only, and reverse refunds.
- Match customers by the same key online and in store, so one card holds both.
- Add an alert for failed webhooks.
