Quick summary
- Choose the event that corresponds to the team’s next action.
- Match orders by store and order ID, including guest purchases.
- Recover the current order state before releasing downstream actions.
WooCommerce order webhooks send order changes to a customer relationship management (CRM) system as they happen. For a merchant connecting checkout to a sales or fulfillment team, the reliable setup is to verify each delivery, save it, and update one CRM order identified by the originating store and order ID.
Choose WooCommerce order webhooks for a specific handoff
Ask sales what should appear on the morning call list. A new cash-on-delivery order may need an address confirmation even though nobody has collected payment. A card order waiting for authorization may need no call at all. Write those rules down before choosing the event that starts the integration.
What the order created topic tells you
Use the order created topic to discover a purchase and the order updated topic to refresh its record. The topic describes what happened to a resource. It does not authorize an invoice or a shipment. Read the current order status and payment method, then apply the merchant’s agreed rule for that combination.
In WooCommerce’s webhook settings, open WooCommerce > Settings > Advanced > Webhooks, choose Add webhook, and set the topic, delivery URL, secret, and status. WooCommerce documents one ping on the first save with Active selected. Let the receiver acknowledge that setup request separately so it never appears as a sale.
Verify and save the incoming delivery
Give each store its own subscription configuration and receiving secret. Verify the signature against the exact bytes received before parsing the JSON. The WooCommerce REST reference specifies a Base64-encoded HMAC using SHA-256, a 256-bit hash. A receiver that rebuilds the body from parsed fields can change whitespace or encoding and reject a genuine order.
Once the signature matches, store the delivery reference and order key in a durable inbox, then return success. Let a separate worker contact the CRM. If the CRM is slow at lunchtime, the inbox can absorb that delay and show the operator which accepted deliveries still need processing.
What a successful response proves
A successful response from your endpoint proves only the work you completed before sending it. If the endpoint promised to save an event, acknowledge it after the save succeeds. Track CRM completion separately so an empty sales queue cannot hide a worker failure.
For an acceptance check, pause the CRM worker in staging while leaving the receiver available. Create a guest order and change its address before restarting the worker. You should find both notifications in the inbox, one order in the CRM, and the revised address on that order. Record receipt time and application time separately so the support team can tell delay from loss.
Match an order separately from its customer
Use the authenticated store identity and WooCommerce order ID as a unique external key. Store the CRM record ID alongside it. If two workers receive the same order together, enforce uniqueness at the database or CRM boundary. A search followed by an unprotected create can let both workers find nothing and both create a sale.
Keep a guest purchase attached to its own order
The WooCommerce REST reference assigns customer ID 0 to guest orders. Two purchases with that value can belong to entirely different people. Keep each order under its own external key and use the team’s contact-matching policy to suggest a customer. A shared family phone number is a reason to review a match.
Map the currency with the order total, keep the delivery address on the order, and preserve the difference between billing and shipping details. A repeat buyer may send a gift to another city. Replacing the customer’s address book with the latest shipping address would change the next call an agent makes.
Make a repeated update harmless
Think of CRM order matching and issuing a business instruction as separate operations. Replacing the current status on an existing order is usually repeatable. Sending a confirmation message or asking a courier to collect a parcel has an external effect. Give each such instruction a stable reference and record the result returned by its destination.
| Incoming situation | CRM decision | Operator check |
|---|---|---|
| Same order and unchanged status | Update the existing record if needed | Check the prior action receipt |
| Older snapshot after a refund | Read the current order | Keep the refund visible |
| Order exists but shipment receipt is missing | Hold the shipment instruction | Look up the merchant reference with the carrier |
WooCommerce exposes a delivery ID and a webhook ID in separate headers. A delivery ID helps trace a particular transmission. A different delivery can still describe the same order and request the same business action. If several integrations also change stock, document which one owns the movement in your inventory sync design.
Agree on what happens when a cancellation reaches the CRM after a courier has collected the parcel. Retain the tracking number and open a carrier follow-up task. The order’s commercial status and the parcel’s physical status can legitimately disagree at that point. Clearing the shipment details would remove exactly the evidence the operator needs to intercept the delivery.
Recover a missed update from the delivery log
Start at WooCommerce > Status > Logs and select the webhook delivery log source. Look up the destination, timestamp, and response, then find the corresponding inbox entry. The WooCommerce guide says more than five consecutive failures disable delivery by default. It counts responses outside HTTP 2xx, 301, and 302 as failures. Prefer a direct destination to make redirects easier to diagnose.
Reconcile the interruption by order ID
Record the last verified processing time and allow an overlap when selecting changed orders around the outage. Page through the affected interval using the WooCommerce REST API with read access. For each candidate, retrieve its current state and compare the CRM entry and action receipts. Record the IDs examined so an interrupted repair can resume.
An update may arrive while the repair runs. Process both through the same order-level write path and serialize changes for that order. If timestamps tie or you cannot establish which snapshot is newer, fetch the current order again. Rechecking a handful of uncertain records costs less than calling shoppers about orders they already canceled.
When the destination is healthy, reactivate a disabled subscription and observe a fresh delivery. Re-enabling it and repairing the historical gap are separate steps. In an n8n automation workflow, keep an explicit count of inbox entries still awaiting a CRM receipt and give the oldest unresolved one an owner.
Release the sales queue after a traceable purchase
Before letting agents act on WooCommerce order webhooks, follow a guest purchase, a payment status change, and a repeated delivery through the staging queue. Ask one person to find the store order and another to find the corresponding CRM entry from its external key. They should agree on the next action even when the events arrive in a different order.
Keep the handoff short enough for the evening shift to use. Write down where the delivery log lives, which screen proves a CRM write succeeded, and who can release held shipments. Those three details make a far better systems integration brief than a screenshot of a green response beside an order nobody can find.
Should an order update create a new CRM order?
An update should normally modify the record identified by the store and WooCommerce order ID. If that key is missing, fetch the current order and create its CRM record once under a uniqueness rule. Check any previous confirmation or shipment receipts before allowing the repaired record to trigger work.
How can I recognize a repeated delivery?
Use the webhook and delivery identifiers to trace transmissions, then check the order’s external key and the reference for the intended business action. Two different delivery identifiers may carry the same business state. A stored CRM or carrier receipt can tell you whether that action already succeeded.
Where can I investigate failed deliveries?
Open WooCommerce, then Status and Logs, and select the webhook delivery source. Match the destination and time to the receiver’s inbox. If the receiver acknowledged the notification, inspect its processing records and the CRM response to locate the failure after the initial delivery.



