I run a couple of small Shopify stores. Last month I found three refunds I never noticed until payout day. Shopify does send an email, but it lands in the same pile as everything else.
So I built a workflow that does one thing: tell me in a channel I actually read whenever an order is refunded, with the order name and the refund total.
How it works:
Schedule trigger every hour (webhooks are nicer, but polling survives a store that reinstalls apps)
HTTP Request to the Shopify Admin API, orders.json filtered on financial_status and updated_at_min
IF the orders array is not empty
Slack message listing order names and refund totals
Two things that bit me:
updated_at_min has to be stored somewhere persistent if you want exact windows. Static data in n8n works, but a Sheet is easier to inspect.
Partial refunds show up as updates, not new refunds, so dedupe by order ID or you get pinged twice.
The basic version is in the JSON below, free to use (replace the store domain, token and Slack channel/credentials with your own):
I also cleaned up a fuller version with error handling, a daily summary and setup docs, plus a few siblings (low stock alert, daily sales digest, new order to Sheets). They’re on my store if you’d rather not build them yourself: https://jaygle888.gumroad.com
Curious how others handle dedupe for polling triggers. Sheet, static data, or something smarter?
Nice one, refunds are easy to miss. On your dedupe question, one thing to watch: deduping by order ID will also swallow a second partial refund on the same order. If a buyer gets $20 back on Monday and another $30 on Thursday, the Thursday one never pings.
What has worked better for me is deduping on the refund itself instead of the order. Every refund is its own object with an ID and a createdAt, so in the Admin GraphQL API you can ask for:
Orders with no refunds just come back with an empty refunds list, so a Code node can flatten all refunds and keep only those whose createdAt is after your last run. Because you filter on the refund timestamp, you don’t need a list of seen IDs at all, just the last-run time (static data is fine for that). Order updates for other reasons (tags, notes, fulfillment) no longer cause repeats either.
If you do want a stored list, use the refund ID as the key, not the order ID.
Two smaller notes:
orders.json is on the REST Admin API, which Shopify now marks as legacy, so it’s worth moving to GraphQL before it starts losing fields.
If you ever switch to webhooks, the topic is refunds/create (one event per refund). Polling as a safety net next to it is still a good idea, since webhooks can get dropped.
@TrenoxaHQ good catch on the partial-refund case. Order-id dedupe really does collapse a second partial on the same order; keying off the refund’s own id / createdAt is the right fix.
One small addition I’ve used when combining a poll with refunds/create: store the run’s start time (not the end) and keep a short overlap window, then still dedupe by refund id inside that window so a refund created mid-run isn’t dropped.
Also worth quoting the ISO timestamp with the Z in the search query — I’ve seen unquoted values match nothing.
Agree that polling stays useful as a safety net next to the webhook.
Good tips, thanks. Run start time plus an overlap window, deduped by refund ID, is the same pattern I ended up with for the missed-orders check (2-hour overlap, dedupe by order ID). And yes on quoting the timestamp; an unquoted created_at:>2026-10-27T00:00:00Z silently matching nothing is a nasty one to debug.