Shopify webhooks: verify, monitor and replay
Shopify webhooks drive orders, fulfilment, inventory and the mandatory privacy topics for apps. Relaya receives them, verifies the HMAC, drops the duplicate deliveries Shopify can send, records every event and forwards it to your services with retries and replay.
Why route Shopify webhooks through Relaya
A missed orders/paid means an order that never ships. Shopify can deliver the same event more than once, and app updates can rename fields like total_price. Relaya catches both: duplicates are dropped by event ID, and a missing critical field opens an incident listing every affected order, so you can fix and replay just those.
What Relaya checks on every request
| Shopify | |
|---|---|
| Signature header | X-Shopify-Hmac-Sha256 |
| Algorithm | Base64 HMAC-SHA256 of the raw body, keyed with your app’s API secret key (or the webhook signing key Shopify shows) |
| Freshness | Shopify sends no signed timestamp; duplicates are caught by event ID |
| Duplicates | X-Shopify-Event-Id, else X-Shopify-Webhook-Id |
| Event type | X-Shopify-Topic header, e.g. orders/paid |
| Secret to enter | Your app’s API secret key, or the signing key shown in Settings → Notifications |
POST https://api.relaya.sbs/v1/in/in_7Kq…
X-Shopify-Topic: orders/paid
X-Shopify-Hmac-Sha256: 8m3V…Zk=
X-Shopify-Event-Id: 98880550-7158-44d4-b7cd-2c97c8a091b5
{ "id": 5100000012345, "order_number": 18427, "total_price": "2499.00", "currency": "INR", … }Set up Shopify webhooks in about 15 minutes
- 01In Relaya, create a webhook and pick Shopify. Copy its URL.
- 02In Shopify admin → Settings → Notifications → Webhooks → Create webhook (or register it through the Admin API), paste the URL and choose JSON.
- 03Enter your app's API secret key, or the webhook signing key Shopify shows, in Relaya.
- 04Add your order service, warehouse or ERP as destinations. Each one gets every event, signed by Relaya, with its own retries.
Then verify Relaya's signature in your endpoint and answer 2xx. The docs show how, with SDKs for Node, Python, PHP, Go and Java.
Shopify events teams route through Relaya
| Event | What you usually do with it |
|---|---|
orders/create | A new order: reserve stock, start fulfilment. |
orders/paid | Payment confirmed: hand the order to the warehouse. |
orders/fulfilled | Shipped: notify the customer. |
refunds/create | Update accounting and inventory. |
products/update | Sync catalogue changes to other channels. |
app/uninstalled | Clean up the shop’s data in your app. |
Included for every Shopify webhook
Verified on arrival
Every event on record
Forwarded with retries
Contract checks
Safe replay
Alerts
Shopify webhooks: common questions
Does Shopify send webhooks more than once?
It can, for example after a timeout. Relaya keeps the first delivery of each X-Shopify-Event-Id (or webhook ID) and marks the rest as duplicates, so your services process each order once.
Can one Shopify webhook feed several systems?
Yes. Add several destinations, say your order service and your warehouse system; each receives every event, signed by Relaya, with its own retries and health.
What happens to forged Shopify requests?
A request whose HMAC doesn’t match is rejected and stored as evidence, never forwarded. The overview shows signature failures per webhook, and you can be alerted when they start.
Does it work for public and custom apps?
Yes. Use the API secret key of the app that registered the webhook, or for webhooks created in the admin, the signing key Shopify shows there.
Keep reading
Never miss a Shopify event again.
Point your first webhook at Relaya today. Try the Team plan free for 7 days.