Skip to content
SmartFACT HelpHandbooksWatch and practise
Handbooks: SmartFACT Data

Give a shop connection its webhooks

Have the paired shop plugin make a WooCommerce connection's four webhooks, or rotate the webhook secret and create them by hand, as a configuration plan or Connect with WooCommerce leaves to the Owner.

Review edition · 1 December 2026 · For Owner

On this page

A WooCommerce connection tells SmartFACT Data about each order through four webhooks in the shop, each signed with the connection's webhook secret. Data shows that secret once, on the page, when the connection is made by hand with a Read key or its secret is rotated, and never again.

When the shop has the SmartFACT plugin

Connecting the shop's plugin makes the four webhooks for you, named SmartFACT Data - Order created and so on, and each check of the plugin puts them right again. The connection's WooCommerce webhook setup says when the plugin last made them. After you rotate the secret, press Recheck after updating on the connection's SmartFACT plugin panel and the plugin updates all four.

Then change one order's status in the shop and press Update, so the shop sends a signed webhook. A private note sends nothing.

When the connection was made with Connect with WooCommerce, without the plugin

Connect with WooCommerce gets the Read key by WooCommerce's own approval and shows no webhook secret. Without the plugin, give the connection its webhooks as below.

When a configuration plan made the connection

A connection made by a configuration plan has a secret nobody has seen: a plan never receives one. So the plan lists this as your step, and only the connection's Check waits for it: its mapping is drafted and activated, and the connection is offered to StoresFlow, without it. Where the shop has the SmartFACT plugin, the plan lists connecting it as a step of its own, and the plugin makes the webhooks as above; only the changed order is left. Otherwise follow the steps below, which also serve a connection made with Connect with WooCommerce.

  1. Open Settings › Shop connections and choose the connection.
  2. In its Connection section, press Rotate the webhook secret. Before the connection has started no reason is asked. The new secret is shown once: copy it now.
  3. In WooCommerce, open Settings › Advanced › Webhooks and create four Active webhooks, order.created, order.updated, order.deleted and order.restored, each with the connection's delivery address (under WooCommerce webhook setup on the same page) and the secret you copied.
  4. Change one order's status in the shop and press Update, so the shop sends a signed webhook. A private note sends nothing.

Data records the first signed webhook it receives, and the plan's step is then done: the plan carries on with the connection's Check. The Check waits for StoresFlow's approval of the connection, which the same plan can carry, and the connection starts once it has passed and its mapping is active.

When the webhooks arrive late

WooCommerce sends each webhook as one of WordPress's scheduled jobs, so the shop's scheduled jobs must run. On a shop with DISABLE_WP_CRON set, or with few visitors, they run only when a server cron starts them, and until then each order reaches Data late. With the plugin connected, the connection's SmartFACT plugin panel and Connection health say so: "This shop's webhooks are delayed: its scheduled jobs aren't running." In the shop, the plugin's Status screen and WordPress's Site Health say the same.

The fix is for whoever looks after the shop's server: add a server cron that runs wp cron event run --due-now every minute, or loads wp-cron.php.

Rotating the secret later

Rotate the webhook secret gives a new secret at any time. The previous one stays valid for up to one day while you update the four webhooks, or while the connected plugin does at its next check. Once the connection has started, rotating it asks a reason.