Find Shopify orders your n8n workflow missed (webhooks fail silently)

If you run a Shopify order workflow in n8n (alerts, invoices, CRM/ERP sync), it only runs when Shopify’s webhook arrives. When n8n restarts for an update, an execution times out, or Shopify removes a webhook after repeated failures, the order is simply never processed. No error anywhere, and the log just looks like a quiet day.

I built a small daily check for this:

  1. Schedule (7:00) → Settings
  2. Shopify Admin GraphQL orders for the last N full days, 250 per page, with an explicit cursor loop (Code + IF). n8n’s built-in HTTP pagination failed for me with the Shopify OAuth2 credential (“refreshToken is required”), so the loop is manual.
  3. Google Sheets: read the order log your main workflow writes to
  4. Code: match on the order column. #1001, 1001, the numeric ID and the GID all count, because different workflows log orders differently.
  5. Switch: email a report of missed orders (with admin links), and append them to the sheet so each is reported once
  6. Error outputs on every Shopify / Sheets / Code / email node → one alert email, so the check itself can’t fail silently

It only checks full days (yesterday and earlier), so a webhook that’s merely slow isn’t reported. Needs only the read_orders scope. One execution a day.

Tested on a Shopify dev store: 14 orders over 10 days, 5 missing from a log that only records wholesale orders → report + 5 rows appended; the next run reported nothing.

Walkthrough and free download (link in the video description): https://youtu.be/9G5w1tWDmUk

Curious how others handle this. Do you reconcile against Shopify, or rely on webhook retries?

The wholesale-only log is the part I’d double-check. If the main workflow intentionally processes only wholesale orders, the Shopify query needs the same filter before you start comparing IDs. Otherwise regular retail orders can show up as missed webhooks even though nothing actually failed

I’d also keep “reported as missing” separate from “processed.” Adding an order to the log just to stop repeat alerts shouldn’t make an unresolved order disappear from the next reconciliation

Good points, both already handled: the query takes the same tag filter as the main workflow (orderTag in Settings), so retail orders never get compared against a wholesale-only log. And appended rows get backfilled in the status column instead of looking processed, so you can filter for them and work them off. They stop the repeat email, not the follow-up.