Shopify Webhooks: Setup, HMAC Verification and Recipes
Shopify webhooks tell your systems the moment an order, customer or stock level changes. Here's how to subscribe, verify every delivery, handle retries and duplicates, and wire five recipes for sales, CS and ops.
Shopify webhooks are HTTP POST requests Shopify sends to your URL when something happens in a store, like orders/paid or customers/update. You subscribe to a topic, verify each delivery with an HMAC signature, return 200 within 5 seconds, and handle retries and duplicates. They're the fastest way to get store events into your CRM, Slack and ops tools.
For a GTM team, webhooks are how a store stops being a black box. Sales hears about a big wholesale order in seconds. CS sees a first order and sends a welcome. Ops gets a ping before a best seller sells out.
This post covers how Shopify webhooks work, the two ways to create them, the topics worth subscribing to, the headers, HMAC verification in Node, retries, duplicates and ordering, the privacy webhooks public apps need, cloud delivery options, and five recipes you can build in Zapier, Make, n8n or code.
Key takeaways
- Subscribe in config. Shopify recommends app subscriptions in shopify.app.toml, and those aren't deleted when deliveries fail.
- Verify the raw body. HMAC-SHA256 over the unparsed body, base64, compared with a timing-safe check, or you'll accept fake orders.
- Respond fast, work later. Return 200 inside 5 seconds and push the real work to a queue.
- Expect duplicates and gaps. Dedupe on X-Shopify-Webhook-Id, sort by trigger time and run a daily reconciliation.
- Start no-code, graduate to code. Alerts live fine in Zapier, Make or n8n. Money-critical syncs earn real code.
What are Shopify webhooks?
A webhook is a message one system sends another when an event happens. Shopify's webhooks overview describes them as a way to receive near-real-time data about shop events. Each subscription names a topic, like orders/create, and a destination. The destination can be an HTTPS URL, a Google Cloud Pub/Sub topic or an Amazon EventBridge source.
The alternative is polling, which means asking the API "anything new?" over and over. Polling is simple but slow and wasteful. A webhook sends the change once, when it happens. I explain the general pattern in webhooks for GTM. This post is the Shopify version.
What can't webhooks do?
Shopify is blunt about this. Its docs say webhook delivery isn't always guaranteed and that your app shouldn't rely only on webhooks. Handlers fail. Servers go down. Retries run out.
So treat webhooks as the fast path, not the only path. Pair them with a reconciliation job that pulls recent changes from the API on a schedule. Shopify recommends this too, using updated_at filters to fetch what changed since the last run.
How do you create a Shopify webhook?
There are two routes. Which one you use depends on whether you're wiring one store or building an app.
| Route | Where | Best for | Failing subscriptions |
|---|---|---|---|
| Store admin | Settings > Notifications > Webhooks | One store, quick alerts, no app | Deleted after repeated non-200 responses |
| App config (TOML) | shopify.app.toml, deployed with Shopify CLI | Public or Partner apps on many stores | Not deleted |
| Admin API (GraphQL) | webhookSubscriptionCreate mutation | Custom apps, per-shop settings | Deleted after 8 failures in a row |
Create one in the Shopify admin
Shopify's help page on creating webhooks gives this path as of November 2026:
- In the Shopify admin, go to Settings, then Notifications.
- Click Webhooks, then Create webhook.
- Pick an Event. You can't change the event after you save.
- Pick a Format: JSON or XML. Use JSON.
- Enter the URL. Localhost, URLs ending in "internal", custom store domains and Shopify domains aren't allowed.
- Pick the Webhook API version.
- Click Save. Use Send test in the row's menu to check it.
Shopify says these webhooks are signed with a key unique to your store. You'll use that key in the HMAC check below. One catch from the same page: if your URL keeps returning non-200 responses, Shopify deletes the webhook from your admin. Failure emails only go to webhooks created by apps, so an admin webhook can vanish quietly.
Subscribe from an app with TOML or GraphQL
Shopify's subscription guide recommends app-specific subscriptions in shopify.app.toml. They apply to every shop that installs the app. Here's the shape, with a made-up URL:
[webhooks]
api_version = "2026-10"
[[webhooks.subscriptions]]
topics = ["orders/paid", "customers/update"]
uri = "https://hooks.example.com/shopify"
[[webhooks.subscriptions]]
topics = ["inventory_levels/update"]
uri = "pubsub://example-project:shopify-inventory"
You deploy it with shopify app deploy. During development, shopify app dev updates subscriptions on your dev store when you save the file.
The GraphQL route uses the webhookSubscriptionCreate mutation with enum topics like ORDERS_CREATE. Use it when each shop needs a different URL or filter. Custom apps can't use the TOML route, per the same guide, so they must use the API.
The most important difference is what happens on failure. Shopify doesn't delete failing app-specific subscriptions, but it does delete failing shop-specific ones. If you migrate from API to TOML, remove the old subscriptions first, or you'll get every event twice.
Which Shopify webhook topics matter for GTM?
Shopify has hundreds of topics. Most GTM work uses a dozen. Here are the ones I'd start with, with scopes from the WebhookSubscriptionTopic reference:
| Topic | Fires when | Scope | Typical use |
|---|---|---|---|
| orders/create | An order is created | read_orders | First order alerts, fraud checks |
| orders/paid | An order is paid | read_orders | CRM revenue, high-value alerts |
| orders/fulfilled | An order is fulfilled | read_orders | Review requests, CS check-ins |
| orders/updated | An order changes | read_orders | Refunds, edits, tag changes |
| customers/create | A customer is created | read_customers | New lead in CRM |
| customers/update | A customer changes | read_customers | Consent, address, tag sync |
| customer.tags_added | Tags are added to a customer | read_customers | Wholesale or VIP routing |
| carts/update | An online store cart changes | read_orders | Browse and cart signals |
| checkouts/create | A checkout is created | read_orders | Abandoned checkout flows |
| inventory_levels/update | A stock level changes | read_inventory | Low stock alerts |
| products/update | A product or its variants change | read_products | Feed and catalog sync |
| app/uninstalled | A shop removes your app | None listed | Clean up tokens and billing |
Two notes from that reference. carts/update covers only carts in the online store, not custom storefronts. And from December 1, 2026 for public apps, or January 1, 2027 for custom apps, checkouts/create drops abandoned_checkout_url for apps without access to all four protected customer fields.
What is protected customer data?
Names, emails, phone numbers and addresses are protected customer data. Shopify's protected customer data page says apps must request access to those fields, and unapproved fields are redacted. Public apps need review. Custom apps have access by default, though admin-created custom apps vary by plan for the more sensitive level.
This catches people. Your orders/paid handler runs fine, but the email field is empty, so the CRM match fails. Check your access before you blame your code.
Use filters and include_fields to cut noise
Shopify's delivery filtering docs let you add a filter to a subscription. Shopify checks it against the payload and skips the delivery if it's false. The docs show examples like variants.price:>=10.00 and combined rules with AND and OR.
A few rules apply. Filters need API version 2024-07 or later. Matching is case-sensitive. A field name that doesn't exist creates the subscription but sends nothing. And any field the filter uses must also be in include_fields, which trims the payload to the fields you list. Test a new filter on a dev store before you trust it.
What does a Shopify webhook delivery look like?
Each HTTPS delivery is a POST with a JSON body and a set of headers. Shopify's delivery structure page lists them:
| Header | What it holds | Use it for |
|---|---|---|
| X-Shopify-Topic | The topic, like orders/paid | Routing to the right handler |
| X-Shopify-Hmac-Sha256 | Base64 HMAC signature | Proving it came from Shopify |
| X-Shopify-Shop-Domain | The store's myshopify.com domain | Picking the right shop and secret |
| X-Shopify-API-Version | API version of the payload | Catching version drift |
| X-Shopify-Webhook-Id | Unique key per delivery | Deduping retries |
| X-Shopify-Triggered-At | When Shopify triggered it | Ordering events |
| X-Shopify-Event-Id | Shared by all deliveries from one action | Deduping across subscriptions |
| X-Shopify-Name | Your subscription name, if set | Telling subscriptions apart |
The body is the full REST resource for the topic by default. Here's a trimmed orders/paid example with fake data. Real orders carry many more fields.
{
"id": 5801234567890,
"admin_graphql_api_id": "gid://shopify/Order/5801234567890",
"name": "#1042",
"email": "jane.doe@example.com",
"created_at": "2026-11-28T10:14:03-05:00",
"updated_at": "2026-11-28T10:14:09-05:00",
"currency": "USD",
"total_price": "642.00",
"subtotal_price": "600.00",
"financial_status": "paid",
"tags": "wholesale",
"customer": {
"id": 7301234567890,
"email": "jane.doe@example.com",
"first_name": "Jane",
"last_name": "Doe"
},
"line_items": [
{ "id": 1401, "sku": "ESC-HWT-BLK-L", "title": "Heavyweight Cotton T-Shirt", "quantity": 20, "price": "30.00" }
]
}
Note that total_price is a string, not a number. Parse it before you compare it. And tags is one comma-separated string, not an array.
How do you verify the Shopify webhook HMAC?
Every HTTPS delivery carries an X-Shopify-Hmac-Sha256 header. Shopify's HTTPS delivery docs explain the check. You compute an HMAC-SHA256 of the raw request body with your secret, base64 encode it, and compare it with the header.
The secret is your app's client secret for app subscriptions. For webhooks made in the store admin, it's the store's own signing key. After you rotate a client secret, Shopify says the new one can take up to an hour to be used.
The number one bug is parsing the body first. If a JSON parser runs before you check the signature, the bytes change and every check fails. Capture the raw body.
The Node handler
Here's an Express handler that verifies, dedupes and queues. The queue and store calls are placeholders for whatever you use, like Redis, Postgres or a cloud queue.
import express from "express";
import crypto from "node:crypto";
const app = express();
const SECRET = process.env.SHOPIFY_WEBHOOK_SECRET; // app client secret or admin signing key
// Raw body only on this route, so the bytes match what Shopify signed.
app.post("/shopify", express.raw({ type: "application/json" }), async (req, res) => {
const header = req.get("X-Shopify-Hmac-Sha256") || "";
const digest = crypto.createHmac("sha256", SECRET).update(req.body).digest("base64");
const a = Buffer.from(digest, "base64");
const b = Buffer.from(header, "base64");
// timingSafeEqual throws on different lengths, so check that first.
if (a.length !== b.length || !crypto.timingSafeEqual(a, b)) {
return res.status(401).send("bad hmac");
}
const webhookId = req.get("X-Shopify-Webhook-Id");
const topic = req.get("X-Shopify-Topic");
const shop = req.get("X-Shopify-Shop-Domain");
const triggeredAt = req.get("X-Shopify-Triggered-At");
// Dedupe: if we've seen this delivery, say OK and stop.
const isNew = await store.setIfAbsent(`shopify:wh:${webhookId}`, "1", { ttlDays: 7 });
if (!isNew) return res.status(200).send("dup");
// Queue the work and answer inside Shopify's 5 second limit.
await queue.add({ topic, shop, triggeredAt, body: req.body.toString("utf8") });
return res.status(200).send("ok");
});
app.listen(3000);
That handler does four things and nothing else. It checks the signature, dedupes, queues and answers. All CRM calls, Slack posts and lookups happen in a worker that reads the queue. A serverless function works fine for this as long as it can reach a queue.
Shopify's own docs show a manual check and a library check through its app package. If you build with Shopify's app template, use shopify.webhooks.validate and skip the hand-rolled version.
How do Shopify retries and timeouts work?
Shopify's HTTPS docs set tight limits as of November 2026. The connection must open within 1 second. The whole request must finish within 5 seconds. Any response outside the 200 range counts as a failure, including a 3XX redirect.
When a delivery fails, Shopify retries 8 times over the next 4 hours, per the same page and the troubleshooting guide. The gap between retries grows each time. After 8 failures in a row, a subscription made through the Admin API is deleted. Warning emails go to the app's emergency developer email.
| Scenario | What Shopify does | What you should do |
|---|---|---|
| Handler takes 7 seconds | Counts a failure and retries | Queue first, answer 200, work later |
| Endpoint returns 301 | Counts a failure | Point the subscription at the final URL |
| Endpoint down for 30 minutes | Retries catch up | Make sure dedupe handles the burst |
| Endpoint down for 6 hours | Retries run out, events lost | Run reconciliation for that window |
| API subscription fails 8 times in a row | Deletes it | Alert on missing traffic, recreate it |
Your own retry logic matters on the other side too. If your worker fails to write to the CRM, retry from your queue, not by making Shopify resend.
How do you handle duplicates and ordering?
Shopify's HTTPS docs say it tries to avoid duplicates but that retries and timeouts can still cause them. They give two answers. Make your processing idempotent, which means running it twice has the same effect as once. Or store each X-Shopify-Webhook-Id, skip ones you've seen and return 200.
I do both. The handler dedupes on webhook ID. The worker writes to the CRM with an upsert keyed on the Shopify order ID, so a second write changes nothing.
X-Shopify-Event-Id solves a different problem. If you have two subscriptions on the same topic, each delivery gets its own webhook ID but they share one event ID. Dedupe on event ID when you want one action per merchant action, not per subscription.
Ordering is not guaranteed
Shopify's overview says it doesn't guarantee ordering within a topic, or across topics for the same resource. A products/update can arrive before its products/create. An orders/updated can land before orders/paid.
The fix is a simple guard. Store the last updated_at you processed for each record. When a new event arrives, compare. If it's older, skip it. If you can't trust the payload, fetch the current record from the API and write that.
on event(order):
last = db.get("order:" + order.id + ":updated_at")
if last and order.updated_at <= last: skip
crm.upsert(order) # keyed on Shopify order id
db.set("order:" + order.id + ":updated_at", order.updated_at)
This is standard event-driven architecture. The same pattern runs the billing sync in Stripe to CRM with webhooks.
Which privacy webhooks do public apps need?
If your app is in the Shopify App Store, you must support three compliance topics. Shopify's privacy compliance page lists them:
| Topic | Sent when | Your job |
|---|---|---|
| customers/data_request | A customer asks the store for their data | Send the store what you hold on that customer |
| customers/redact | A store asks to delete a customer's data | Delete it; Shopify sends this 5 days after the request |
| shop/redact | 48 hours after a store uninstalls your app | Delete that store's data |
Each one must return a 200-series response, return 401 on a bad HMAC and finish the action within 30 days, unless law requires you to keep the data. Apps that skip them are rejected. A store-level admin webhook doesn't need these, but you still owe customers the same care with their data.
Should you use Pub/Sub or EventBridge instead of HTTPS?
Shopify supports two cloud destinations besides HTTPS. Its subscription guide calls Google Cloud Pub/Sub its recommended cloud option. The URI looks like pubsub://{project-id}:{topic-id}. For Amazon EventBridge, the URI is the event source ARN from the EventBridge console.
| Destination | You run | HMAC check | Good for |
|---|---|---|---|
| HTTPS | A web endpoint and queue | Required | Small builds, no-code tools, one store |
| Google Cloud Pub/Sub | A subscriber that reads the topic | Not required | Apps on Google Cloud, high volume |
| Amazon EventBridge | Rules that route to Lambda, SQS and more | Not required | Apps on AWS, fan-out to many targets |
Both cloud options take the hardest part off your plate. You don't need to answer in 5 seconds, because the cloud service accepts the message for you. Your workers pull at their own pace. Metadata like the topic travels in the message instead of headers.
My rule: if you're building an app for many stores, use Pub/Sub or EventBridge from day one. If you're wiring one store to a CRM and Slack, HTTPS is fine.
Recipes: five Shopify webhooks for sales, CS and ops
Each recipe below gives the topic, the logic and where it can live. I mark which ones are safe in no-code tools and which I'd move to code.
Recipe 1: paid order to CRM
Topic: orders/paid. Goal: every paying customer is a contact with order count, lifetime value and last order date.
- Match the contact on
customer.email, then oncustomer.idstored as a CRM property. - Upsert the contact. Set first order date only if empty.
- Create or update an order or deal record keyed on the Shopify order ID.
- Roll up lifetime value from the API, not by adding totals, so refunds don't drift.
orders/paid
-> verify + dedupe
-> find contact by email (fallback: shopify_customer_id)
-> upsert contact {shopify_customer_id, last_order_at, orders_count, lifetime_value}
-> upsert order record by shopify_order_id {name, total_price, currency, tags}
For HubSpot CRM, the Shopify and HubSpot integration guide covers when the native app is enough and when a webhook build pays off.
Recipe 2: first order to Slack
Topic: orders/create. Goal: CS sees every first-time buyer and can send a personal thank you.
The order payload doesn't tell you cleanly if it's a first order. Ask the GraphQL Admin API for the customer's numberOfOrders, which the Customer object defines as the number of orders in their lifetime. If it's 1, post to Slack.
{
"text": "First order from Jane Doe (jane.doe@example.com): #1042, $642.00 USD. Tags: wholesale"
}
Post that body to a Slack incoming webhook URL. Slack's rate limit docs cap incoming webhooks at 1 per second, with short bursts allowed. On a big launch day, send from your queue at a steady pace instead of all at once. The same Slack pattern is in form to CRM and Slack.
Recipe 3: high-value order alert
Topic: orders/paid. Goal: a rep or founder calls any order over a set amount, like a wholesale or gift order.
Parse total_price as a number and compare it with your threshold. Route by tag too, since a "wholesale" tag often means a business buyer worth a call. Send to a sales channel with the customer, the items and a link to the order in admin.
You can cut noise with a subscription filter. Filters support comparisons, but test one on a dev store first, since a filter on a field Shopify can't match sends nothing at all.
Recipe 4: customer tag sync
Topic: customer.tags_added, or customers/update for the full tag list. Goal: tags like VIP, wholesale or subscriber land in the CRM as properties you can segment on.
Treat Shopify as the source of truth for tags. On each event, read the full tag string, split it on commas, trim spaces and write it to a multi-select property. Don't sync tags the other way in the same flow, or you'll build a loop that fires forever.
This feeds lifecycle work like repeat purchase rate plays and the segments behind e-commerce email and SMS flows.
Recipe 5: low inventory alert
Topic: inventory_levels/update. Goal: ops and marketing hear before a best seller sells out, and ads stop pushing it.
The payload is small. It holds inventory_item_id, location_id, available, updated_at and an admin GraphQL ID. It doesn't carry the SKU or product name. Look those up from the inventory item through the API, then compare available with your threshold.
{
"inventory_item_id": 271878346596884015,
"location_id": 65616216276,
"available": 4,
"updated_at": "2026-11-28T10:20:00-05:00",
"admin_graphql_api_id": "gid://shopify/InventoryLevel/99953246420?inventory_item_id=271878346596884015"
}
Alert once per item per day, not on every change, or the channel turns to noise. The same event can flip a low-stock label in your Shopify product feed so ad spend shifts away from items about to run out.
Zapier, Make, n8n or code: where should the recipes live?
All three no-code tools have Shopify triggers. Zapier lists triggers like New Paid Order, New Customer, New Tag Added to Customer and Updated Inventory on its Shopify integration page, and marks Shopify as a premium app. Make lists Watch orders and Watch events triggers on its Shopify app page. n8n has a Shopify Trigger node. Their Shopify connections handle auth for you, so you skip the endpoint and HMAC work.


| Need | Zapier | Make | n8n | Code |
|---|---|---|---|---|
| Slack alerts | Great | Great | Great | Overkill |
| Simple CRM upsert | Good | Good | Good | Good |
| Dedupe across retries | Limited | Possible with a data store | Possible with a database | Full control |
| Ordering guard by updated_at | Hard | Possible | Possible | Easy |
| API lookups mid-flow | Steps add up | Fine | Fine | Fine |
| High volume | Costs scale with tasks | Costs scale with credits | Self-host to cap cost | Cheapest at scale |
My default: alerts in a no-code tool, money-critical syncs in code. If a flow writes revenue to the CRM, it needs dedupe and an ordering guard, and those are easier to trust in a hundred lines of code. The broader trade-off is in build vs buy for GTM tools.
Those plan numbers come from n8n's pricing page and Zapier's pricing page as of November 2026. Run your own volume through the GTM stack cost calculator before you pick.
How do Shopify webhook builds break?
Most failures fall into a short list.
- Body parsed before HMAC. A global JSON parser runs first, every signature fails, and someone turns the check off to "fix" it.
- Slow handler. CRM calls run inside the request, a slow API pushes it past 5 seconds, and Shopify retries into a growing pile.
- Redirects. The URL moved and returns a 301. Shopify counts that as a failure.
- Silent deletion. An Admin API or store admin subscription fails 8 times and disappears. Nobody notices for a week.
- No dedupe. A retry creates a second deal or a second Slack post. Reps stop trusting the channel.
- Out-of-order writes. An old update lands after a new one and rolls a field back.
- Missing email. Protected customer data isn't approved, so email is redacted and CRM matching fails.
- Duplicate subscriptions. Both TOML and API subscriptions exist for the same topic after a migration.
- No reconciliation. An outage longer than the 4 hour retry window leaves a permanent gap.
Step by step: build and launch a Shopify webhook
Here's the order I'd follow for a single store wiring orders to a CRM and Slack.
- List the jobs. Write each recipe as "when topic, do action, owned by person".
- Pick the route. Store admin for one store, TOML for an app, API for a custom app.
- Check access. Confirm scopes and protected customer data so email and name come through.
- Build the endpoint. Raw body, HMAC check, dedupe on webhook ID, queue, 200.
- Build the worker. Upsert by Shopify ID, ordering guard on
updated_at, retries from your queue. - Test with real events. Use a dev store, or
shopify app webhook triggerfor synthetic payloads. - Add monitoring. Log every delivery with topic, webhook ID and result. Alert on silence.
- Add reconciliation. A daily job fetches orders and customers updated in the last 48 hours and fixes gaps.
- Launch one recipe. Watch it for a week before you add the next.
How do you test webhooks before launch?
You have three ways to fire test events, and each tests something different.
- Send test in the admin. For store-level webhooks, the row menu has a Send test option. It proves your URL is reachable and returns 200.
- The Shopify CLI trigger. Shopify's getting started guide describes
shopify app webhook trigger, which sends a synthetic payload to an address you give it. The guide notes it tests your processing logic, not your subscription settings. - Real events on a dev store. Place a test order and watch it arrive. This is the only way to test scopes, filters and protected data together.
For local work, a tunnel or a mock receiver lets you see payloads on your laptop. Shopify's guide names webhook.site, Hookdeck and Beeceptor as fine for development but not recommended for production. Note that customers/redact and shop/redact don't fire right away, so test those with the CLI.
Test the unhappy paths on purpose. Send the same payload twice and confirm the second does nothing. Change one byte and confirm you get a 401. Make your worker sleep for 10 seconds and confirm the handler still answers fast.
What should the reconciliation job do?
Reconciliation is the safety net for everything webhooks miss. Once a day, query the Admin API for orders and customers with updated_at in the last 48 hours. Compare each with what your CRM holds. Write any that are missing or older.
Run the window longer than one day on purpose. The overlap catches events from an outage that crossed midnight. Because your writes are upserts keyed on Shopify IDs, running over the same records twice is safe.
Log how many records the job fixed. If it fixes more than a few each day, your webhook path has a leak, and the count tells you where to look.
Pre-launch checklist
[ ] HMAC verified on raw body; bad signature returns 401
[ ] Handler answers 200 in under 1 second in testing
[ ] Duplicate delivery (same X-Shopify-Webhook-Id) does nothing
[ ] Older updated_at than stored value is skipped
[ ] Email present in payload (protected data access checked)
[ ] No redirect on the endpoint URL
[ ] Alert fires if a topic goes quiet
[ ] Daily reconciliation job scheduled and tested
[ ] Only one subscription per topic per destination
[ ] Secret stored in env vars, not in code
What to do this week
List every place your team checks Shopify by hand today: new wholesale orders, first-time buyers, low stock. Pick the one that costs the most when it's missed and build it as a webhook. Start in a no-code tool if it's an alert, or in code if it writes revenue.
Then add the boring parts: dedupe, an alert on silence and a daily reconciliation. Those three are what make the build trustworthy. If you'd rather have it built and handed over with docs, that's the work we do in GTM engineering.
FAQ
What is the difference between a Shopify webhook and the Shopify API?
The API is something you call to read or change data. A webhook is Shopify calling you when something happens, such as an order being paid. Most good builds use both. The webhook tells you that something changed, and the API fills in details the payload left out or catches events a webhook missed.
How long does Shopify wait for my endpoint to respond?
Shopify's HTTPS delivery docs give a 1 second connection timeout and a 5 second total timeout. Any response outside the 200 range, including a redirect, counts as a failure. So your handler should verify the signature, save the payload to a queue and return 200 right away, then do the slow work later.
What happens if my webhook endpoint is down?
Shopify retries a failed delivery 8 times over the next 4 hours. Subscriptions created through the Admin API are deleted after 8 failures in a row, and admin-created webhooks are removed after repeated failures too. App subscriptions defined in the app's TOML file are not deleted. Anything past the retry window is lost, so run a reconciliation job.
Do I need to verify the HMAC signature?
Yes, for every HTTPS delivery. Without it, anyone who finds your URL can post fake orders into your CRM or Slack. Compute an HMAC-SHA256 of the raw request body with your secret, base64 encode it and compare it to the X-Shopify-Hmac-Sha256 header with a timing-safe check. Pub/Sub and EventBridge deliveries don't need this step.
Can Zapier, Make or n8n replace custom webhook code?
For alerts and simple CRM syncs, yes. Their Shopify triggers connect through an app install and handle auth for you. They get harder to trust when you need dedupe across retries, joins with other data or high volume. A common path is to start in one of them and move a flow to code when it breaks twice or costs too much.
Are Shopify webhooks delivered in order?
No. Shopify's docs say it doesn't guarantee ordering within a topic or across topics for the same resource, so an update can arrive before its create. Sort by the X-Shopify-Triggered-At header or the payload's updated_at, and skip any event older than what you already stored for that record.
Which Shopify webhooks do public apps have to support?
Apps in the Shopify App Store must handle three privacy compliance topics: customers/data_request, customers/redact and shop/redact. Each must return a 200-series response, reject bad HMACs with a 401 and finish the requested action within 30 days. Apps that skip them are rejected at review.
More like this
E-commerceAI and automation