Integrations · Shopify

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 headerX-Shopify-Hmac-Sha256
AlgorithmBase64 HMAC-SHA256 of the raw body, keyed with your app’s API secret key (or the webhook signing key Shopify shows)
FreshnessShopify sends no signed timestamp; duplicates are caught by event ID
DuplicatesX-Shopify-Event-Id, else X-Shopify-Webhook-Id
Event typeX-Shopify-Topic header, e.g. orders/paid
Secret to enterYour app’s API secret key, or the signing key shown in Settings → Notifications
A Shopify webhook arriving at Relaya
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

  1. 01
    In Relaya, create a webhook and pick Shopify. Copy its URL.
  2. 02
    In Shopify admin → Settings → Notifications → Webhooks → Create webhook (or register it through the Admin API), paste the URL and choose JSON.
  3. 03
    Enter your app's API secret key, or the webhook signing key Shopify shows, in Relaya.
  4. 04
    Add 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

EventWhat you usually do with it
orders/createA new order: reserve stock, start fulfilment.
orders/paidPayment confirmed: hand the order to the warehouse.
orders/fulfilledShipped: notify the customer.
refunds/createUpdate accounting and inventory.
products/updateSync catalogue changes to other channels.
app/uninstalledClean up the shop’s data in your app.

Included for every Shopify webhook

Verified on arrival

Forged or stale requests are rejected and kept as evidence, never forwarded.

Every event on record

Headers, payload and signature result, searchable by type or provider event ID, with secrets masked.

Forwarded with retries

Signed with Relaya-Signature, retried with backoff, with an Idempotency-Key that never changes.

Contract checks

A renamed, removed or retyped critical field opens an incident with every affected event.

Safe replay

Preview exactly what will be resent, then replay only the affected events.

Alerts

Slack, email, Jira or your own webhook when signatures fail or a destination goes down.

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.

Never miss a Shopify event again.

Point your first webhook at Relaya today. Try the Team plan free for 7 days.