Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 Webhooks: Send Events Reliably to External URLs

Magento 2 Extension Hyvä Ready Magento 2.4.x

SKU: WEBHOOKS1

  • order, customer and stock events to your own URLs
  • signature in the header, verified by the receiver
  • automatic retry with growing wait times
  • delivery log with status code and manual resend
Auf Lager
€149.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

6 features

Magento 2 webhooks: your shop reports events instead of being polled

With the Magento 2 webhooks module from Mironsoft your shop automatically sends a message to an external URL when an event occurs. A new order, a changed stock figure or a customer registration reaches your inventory system, carrier or chat channel at the moment it happens. Delivery runs through a queue and does not slow down checkout. You maintain endpoints, events and signature in the admin.

Choose events

Order created, status changed, invoice, shipment, credit memo, customer registered or stock changed.

Own endpoints

Any number of target URLs, each endpoint with its own event selection, secret and store scope.

Signature

Every message carries a signature in the header. The receiver uses it to verify that it comes from your shop.

Retry

If the receiver answers with an error, the module tries again with growing wait times.

Delivery log

Every attempt is stored with time, status code and response and can be resent.

Decoupled

Sending runs in the background through the queue, so the customer does not wait for external systems.

Why webhooks

Why Magento 2 webhooks beat constant polling

The REST API of Magento is a retrieval path: the external system asks at fixed intervals whether anything is new. That creates load even when nothing happens and delivers news only on the next run. Merchants therefore look for Magento 2 webhooks, for a way to set up a Magento 2 order webhook, or for a way to send events to a URL.

With Magento 2 webhooks the direction reverses. The shop speaks up when something happens. Your warehouse sees the order immediately, your team gets the message in chat and the newsletter service knows new customers without delay. At the same time the polling job that strains the system disappears.

01Endpoints and events

Set up Magento 2 webhooks: endpoints and events in the admin

An endpoint consists of a URL, an event list and optional extra headers, for instance a token. Per endpoint you choose which events are sent and restrict them to one store view if only part of your shop is affected. A test send checks whether the receiver answers. Endpoints can be deactivated individually without deleting the configuration.

  • Event selection per endpoint, optionally per store view
  • Additional headers, for example for access tokens
  • Test send and single activate or deactivate
Admin › Webhooks › Endpoint
URL
https://example.invalid/hook (example)
Events
order.created, stock.changed
Status
active
Admin › Webhooks › Message
Event
order.created (example)
Fields
increment_id, status, total
Identifier
random value per message
02Message and privacy

Define the message content of Magento 2 webhooks

The message is a JSON document with event name, time, a unique identifier and the data of the object. You decide which fields are included: whoever needs only the order number and status sends no address. The unique identifier helps the receiver to detect duplicate deliveries. Which personal data you may transmit to which service is for the shop owner to assess legally.

  • JSON with event name, time and identifier
  • Fields selectable per endpoint, data minimisation possible
  • Unique identifier against duplicate processing
03Signature and security

Verify the signature of Magento 2 webhooks

Every message carries a signature in the header, calculated from the content and a secret key. The receiver recalculates it on its side and thereby knows that message and sender are genuine. The secret is stored per endpoint and can be renewed at any time. The header also contains a timestamp so that old messages cannot be replayed. The target address must use HTTPS.

  • Signature from content and secret key
  • Timestamp against replay of old messages
  • Key renewable per endpoint, HTTPS required
Admin › Webhooks › Security
Signature header
X-Signature (example)
Timestamp
in the header
Secret
per endpoint, renewable
Admin › Webhooks › Log
Attempt 1
500 · error (example)
Attempt 2
after 1 minute · 200 OK
Retention
30 days (example value)
04Retry and log

Retry and delivery log for Magento 2 webhooks

External systems are not always reachable. If a receiver answers with an error or not at all, the module tries the delivery again after growing wait times until the maximum you set is reached. After that the message is marked as failed and appears in the log. There you see time, status code and a response excerpt and can resend the message with one click. A cron job cleans up old entries after your retention period.

  • Retry with growing wait times, maximum adjustable
  • Log with status code, time and response excerpt
  • Resend by click, automatic cleanup by cron
Use cases

Where Magento 2 webhooks help in daily shop work

Typical connections that work without a polling job.

Inventory system and ERP

With Magento 2 webhooks new orders reach the inventory system at the moment they are created. The polling job disappears.

Shipping and warehouse

A carrier receives the order immediately and a changed stock figure goes to the warehouse system.

Chat and notification

The team sees large orders or low stock directly in a chat channel without checking a mailbox.

Marketing and newsletter

New customers and changed order statuses flow into a newsletter or automation system as soon as they arise.

Comparison

Magento 2 webhooks compared: without and with the module

The difference to retrieval via REST API.

TopicWithout the moduleWith Mironsoft Webhooks
DirectionExternal system asks at intervalsShop reports the event itself
TimelinessOnly at the next retrievalSeconds after the event
LoadRequests even without newsMessage only on event
Receiver outageData gets lost in the retrievalRetry and resend
EvidenceHard to traceLog with status code
Setup

How we set up Magento 2 webhooks for you

The process after your order.

1

Agreement

You name the target systems and the events that should arrive there.

2

Installation

We install Magento 2 webhooks and set up the queue with cron.

3

Endpoints

We create endpoints, fields, signature and retry rules together with you.

4

Test

We send test messages, verify the signature at the receiver and simulate an outage.

5

Handover

Your team gets an introduction to log and resend.

Scope

Scope: REST API and ready-made integrations

The REST API of Magento remains the right path when a system should fetch data itself or write data into the shop. Magento 2 webhooks complements it with the opposite direction: the shop reports events. It is not a ready-made connection to a particular ERP or carrier. The receiver has to be able to process the message or an intermediate step translates it.

Configuration happens in the admin, without frontend output. The Hyvä theme and its Alpine.js components remain untouched and no script is loaded in the shop.

05How the purchase works

No download, but personal setup

Webhooks is not listed here as a finished download file for self-installation. The purchase is a commission: after the purchase we get in touch, install the module in your shop and set up the first endpoints together with you.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

Frequently asked questions

Everything important about events, signature, retry and how the purchase works.

How can I set up webhooks in Magento 2?
With Magento 2 webhooks you create an endpoint with URL and events in the admin. A test send shows whether the receiver answers.
Which events can I send by webhook in Magento 2?
Order created, status changed, invoice, shipment, credit memo, customer registered and stock changed.
How can I secure webhooks in Magento 2?
Every message carries a signature from content and secret key plus a timestamp. The receiver verifies it. Only HTTPS is allowed as a target.
What happens if the receiver does not answer?
The module repeats the delivery with growing wait times up to the maximum set. After that the message appears as failed in the log.
Do Magento 2 webhooks slow down checkout?
No. Sending runs in the background through the queue, the customer does not wait for external systems.
Can I resend a message?
Yes, in the delivery log you resend any message with one click.
How can I control which data a webhook contains in Magento 2?
You select the fields per endpoint. Whoever needs only the order number and status sends no address data.
Do Magento 2 webhooks work with Hyvä?
Yes. The module works in the background and in the admin and loads no script in the frontend.
Does the module replace the REST API?
No. The REST API remains for retrieval and write access, the webhooks report events in the opposite direction.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 Webhooks – Mironsoft
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 Webhooks – Mironsoft

Magento 2 Webhooks – Mironsoft

€149.00