Handle idempotent Shopify order webhooks with fast 200 OK responses
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Calculate Signature (Crypto): hashes or encrypts values
- Signature Valid? (If): checks a condition and branches into true / false
- Respond 200 OK (Respond to Webhook): sends the response back to the webhook caller
- Reject (401) (Respond to Webhook): sends the response back to the webhook caller
- Drop Already Seen Events (Remove Duplicates): removes duplicate items
- Settings (Edit Fields (Set)): sets 4 fields: spreadsheetUrl, slackChannel, highValueThreshold…
- Enrich & Flag Order (Code): runs custom JavaScript code
- Log Order to Sheet (Google Sheets): append
- Needs Review? (If): checks a condition and branches into true / false
- Alert on Slack (Slack): uses Slack
Services it uses
Other Google Sheets + Slack templates (1,314)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Crypto
n8n-nodes-base.crypto - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Remove Duplicates
n8n-nodes-base.removeDuplicates - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack
From the author
Quick overview Shopify retries a webhook when it doesn't get a fast response, so the same order can arrive twice. This workflow answers 200 OK right away, drops repeated events using the X-Shopify-Webhook-Id header, and passes only new orders on. How it works…