WooCommerce webhooks: configure and verify delivery

Set up a supported WooCommerce event and destination, then check signatures, retries and the resulting record using fictional data.

WooCommerce webhooks send store events to another system over HTTP. To set one up, pick the event that should change a record, configure a signed delivery to the receiving system and check the record after a test event. An HTTP success response tells you the receiver accepted the request. Check the record to find out whether it applied the change.

Choose the event and destination outcome

Start with the change you want in the receiving system. For example, when a test order enters Processing in WooCommerce, a warehouse system should mark the matching dispatch record Ready to pick. Identify that record by store and order ID so two stores can use the same order number without updating each other’s records.

  1. Check the installed WooCommerce version under WooCommerce → Status. In WooCommerce → Settings → Advanced → Webhooks, check the topics available on that store. WooCommerce lists core topics for orders, products, customers and coupons. Extensions can add topics. See the WooCommerce webhook setup instructions.
  2. Choose the topic that matches the event. In the warehouse example, select Order updated (order.updated) and make the receiver check the order status. That topic can fire for other order edits too, so changing an order note should leave the dispatch state alone.
  3. Confirm that the destination accepts an HTTPS POST for the topic and can verify the signature. Compare its required fields with a fictional order payload from the installed version. The WooCommerce developer reference describes the standard headers and how core resource payloads follow the corresponding REST API representation. For the warehouse rule, check that the receiver can read the order ID and status and use them to update the intended dispatch record.

Configure safe authentication and delivery

Use a dedicated webhook secret shared between WooCommerce and the receiver. Set up the receiver before you activate the webhook so it can handle the first delivery.

  1. Store the secret in the receiver’s secure settings. Restrict the receiving service to the destination records it needs to change. If it must look up the current WooCommerce order as well, give it a separate Read credential for a user with access to those orders. The WooCommerce REST API authentication guide explains how the credential’s access depends on the user’s permissions.
  2. For event deliveries, configure the receiver to check X-WC-Webhook-Signature. Calculate HMAC-SHA256 over the original request body with the shared secret, Base64-encode the binary result and compare it with the supplied signature using a constant-time comparison. Verify the event’s signature before parsing its body or changing a record. Then check the expected topic and the fields your workflow needs. Keep secrets, credentials and full order payloads out of application logs.
  3. In Webhooks, select Add webhook. Set Name, Topic, Delivery URL and Secret, choose Active and save. Use the final HTTPS address. WooCommerce sends a ping the first time you save it as Active. The default activation ping is unsigned and requires HTTP 200. Treat it only as a connectivity check. Never queue an order update or change a record from a ping.
  4. Decide when the receiver acknowledges a delivery. If it uses a queue, return a 2xx response after the verified event is safely stored. Give transient processing failures a bounded retry schedule and keep failed work for review. Make the destination update safe to repeat, for example by setting a specific status on the existing record and guarding any side effects against duplicates. A WooCommerce delivery ID can help trace a request, while the store and order ID identify the business record.

Check receipt and the resulting record

Trigger a fictional order update in a test store. In WooCommerce → Status → Logs, filter for webhooks-delivery and check the response. Then use the receiver’s processing history to find the matching order and open the dispatch record itself. Log only the information needed to trace the result, such as the delivery ID, processing outcome and a permitted record reference.

Use a test order with ID 8104 and a dispatch record that starts at Awaiting order. Run these cases before enabling the workflow on live orders.

Test deliveryExpected destination result
Order 8104 changes to ProcessingThe dispatch record moves to Ready to pick.
The Processing delivery is repeatedThe same record stays Ready to pick with one picking task.
An older Processing update arrives after a cancellationThe receiver checks the current WooCommerce order before writing. The dispatch record stays Cancelled.
The dispatch write fails after the receiver queues the eventThe record stays in its previous state and the receiver shows work pending retry.
A request fails signature verificationThe receiver rejects it before creating or changing any dispatch record.

If WooCommerce shows a delivery failure, check connectivity and the response before touching the order. A signature rejection calls for checking that both sides use the same secret and that the receiver verifies the original body. If WooCommerce shows success but the record is stale, start with the receiver’s queue and destination permissions.

Repeated delivery failures can disable a WooCommerce webhook. Fix the cause and return it to Active if it was disabled. Reactivation resumes future deliveries.

Replay a missed event only if the receiver stored it and has a documented replay feature. If the receiver never stored the event or replay is unavailable, reconcile the affected record from the current WooCommerce order through your approved import or repair process. After recovery, check the affected record and confirm that a fresh test event produces one update.

Give your store its own shopping agent

Customers ask in their own words. Your agent finds, compares and checks out from your catalogue, right on your site.

See it in actionFree trial · Simple setup