A webhook is a message your store sends automatically the moment something happens — an order is placed, a subscription renews, a refund goes through — to a URL you choose. In marketing automation, you point that URL at your email/SMS tool (or a small script in between), and the event becomes a trigger: tag the contact, start a flow, update a field, fire an SMS. Webhooks are how you wire up behavior that no native integration or Zapier template covers, usually cheaper and faster than a connector once volume climbs. This guide covers when to use them, the events worth listening for, how to set one up without breaking things, and the failure modes that catch people out.
If you haven’t yet decided whether you even need this route, read how to choose between native integrations and Zapier first — webhooks are the answer to a specific gap, not the default for every store.
What a webhook actually is, in store terms
Think of the difference between calling a supplier every hour to ask “any new orders?” and the supplier calling you the second an order lands. The first is polling: constant checking, mostly for nothing. The second is a webhook: the event pushes itself to you, instantly, only when it happens.
Your store fires a small packet of data (usually JSON) at a URL. That packet says what happened and carries the details — order ID, customer email, line items, total. Something at the other end receives it and does the work. No hourly checking, no delay, no wasted requests.
That immediacy is the whole point for marketing. A cart-recovery or order-confirmation flow that fires the instant the event happens beats one that waits for the next sync cycle, and for time-sensitive messages the gap is money.
When a webhook is the right tool
Webhooks make sense in three situations, and they overlap with — but aren’t identical to — the case for Zapier.
- No native integration exists, and volume is high. Zapier would work, but at thousands of orders a month its per-task pricing gets expensive. A webhook straight into your email tool’s API has no per-event cost beyond your existing plans.
- You need an event a native connector ignores. Your platform syncs orders but not, say, “subscription paused” or “warranty registered.” If your store can emit a webhook for it, you can act on it.
- You’re on a custom or headless build. There’s often no connector to buy, so you’re sending events yourself anyway. See how to connect a custom ecommerce store to Omnisend and how to use Omnisend with an API-based store for the store-to-platform specifics.
If none of those describe you, a native integration is less work and you should stop here. Webhooks trade setup effort and a little technical comfort for control and cost — a fair trade only when you actually need what they give.
🥇 Get more revenue from the traffic you already have.
The events worth listening for
You don’t want a webhook for everything. Noise creates work. Pick the events that map to a marketing decision.
- Order created / paid — the backbone. Feeds order-confirmation, cross-sell, and replenishment flows, and updates lifetime-value fields.
- Order fulfilled / shipped — powers shipping and delivery updates, the highest-open messages most stores send.
- Refund / return created — you almost certainly want to suppress a review-request or cross-sell flow for these customers. Firing a “how did you like it?” email at someone who just returned the item is the kind of mistake webhooks let you avoid.
- Subscription renewed / paused / cancelled — for consumable and subscription stores, these drive the entire retention cadence.
- Customer created / updated — keeps contact fields and consent in sync.
Notice that half of these exist to stop the wrong message, not send one. Suppression is the underrated half of automation, and event data is how you do it well.
Setting one up without breaking your flows
The mechanics vary by platform, but the shape is the same everywhere.
- Find where your store emits webhooks. Most platforms have a Notifications or Webhooks settings area (Shopify, WooCommerce via a plugin or core, BigCommerce, and others). You choose an event and paste in a destination URL.
- Decide the destination. Two options. Point directly at your email tool’s event or custom-event API endpoint if it accepts inbound events. Or point at a thin middle layer — a small serverless function, or a no-code tool — that reshapes the data and forwards it. Direct is simpler; a middle layer buys you filtering and transformation.
- Map the payload to fields your email tool understands. The webhook sends the store’s field names; your email tool expects its own. This mapping is where things quietly go wrong — an unmapped field just arrives empty, and the email that depends on it renders blank.
- Test with a real event before trusting it. Place a genuine test order. Watch the contact and event appear on the other side. Check every field you plan to use in a message actually populated.
- Then, and only then, switch on the flow that consumes the event.
That order matters. Turn the flow on before you’ve confirmed the data lands correctly and you’ll send broken emails to real customers on day one.
The failure modes nobody warns you about
Webhooks are simple until they aren’t. Four things bite people, and knowing them up front saves days.
Retries and duplicates. If your endpoint is slow or returns an error, most platforms retry — which means the same event can arrive twice or five times. Without protection, a customer gets tagged, or emailed, more than once. Handle this by treating each event’s unique ID as a key and ignoring repeats (this is called idempotency). If you’re wiring events straight into a flow, at least confirm the flow won’t re-trigger on a duplicate.
Silent failures. A native integration that breaks often shows an error in a dashboard. A webhook that stops firing just… goes quiet. No orders sync, no alarm rings, and you notice a week later when someone asks why confirmations stopped. Build a check: does the number of order events arriving roughly match the orders you actually took today?
Order-of-arrival. Events don’t always arrive in the order they happened. A “fulfilled” webhook can land before the “created” one under load. Don’t build logic that assumes strict sequence unless you’re checking timestamps.
Missing data. The webhook fires, but a field you needed is empty or formatted oddly, so downstream personalization breaks. If your product blocks or order details show up blank in the email, start with how to troubleshoot missing order data in email platforms — most of it traces back to the payload or the field mapping.
A concrete example: suppressing the wrong review request
Here’s a real pattern from my own stores, described so you can copy the logic.
The problem: our post-purchase flow sent a review request 14 days after delivery. Good idea, except customers who’d returned the product were getting asked to review something they’d sent back. Awkward, and it made us look like we weren’t paying attention.
The fix used a refund/return created webhook. When it fired, it tagged the contact returned-recent. The review flow had one added condition: skip anyone with that tag. No native integration offered that specific suppression; the webhook took an hour to set up and the awkward emails stopped. (Illustrative of the approach — your platform’s exact event names and setup will differ.)
That’s the everyday value of webhooks. Not a grand new automation — a small, precise piece of behavior that makes an existing flow smarter.
How to measure whether it’s working
- Event match rate. Events received vs. events that should have fired (orders taken, refunds issued). A gap means the webhook is dropping or failing silently.
- Latency. Time from the store event to the action landing. Webhooks should be near-instant; seconds, not minutes.
- Duplicate action rate. How often the same customer got the same tag or message twice. Above zero means your dedupe isn’t holding.
- Downstream flow performance. The real test: did the flow the webhook feeds actually perform — recovered carts, review submissions, fewer wrong-audience sends?
Where Omnisend fits
I use Omnisend across my stores, and for webhook work the part that matters is its custom-events and API support: you can fire a store event at it and trigger a flow, set a field, or add a tag, which is exactly what these use cases need. For the common platforms you won’t need webhooks at all — the native integration already carries orders, carts, and browse events. Webhooks come in for the events outside that standard set, the return-suppression and subscription-status cases above.
Omnisend is an affiliate partner of Shopimation; I recommend it from real use. Honest caveat: sending events into any tool is the easy half. Making sure they arrive reliably, aren’t duplicated, and carry clean data is the work, and no platform does that part for you. If your store runs on a platform without a native connector, connecting Shopware to Omnisend without a native integration walks through a webhook-style setup end to end.
Your next step
Pick one event you can’t currently act on — a return, a subscription pause, a warranty registration — and wire a single webhook for it this week. Test it with a real event, confirm the data lands, then add the one flow condition it enables. One precise automation beats a dozen half-working ones. When you’re ready to audit the whole stack for gaps like this, run auditing ecommerce marketing integrations.
