Webhooks & Real-Time Sync

Real-time sync keeps both stores aligned without manual imports. It has two halves: webhooks (Shopify telling WooCommerce about changes) and the auto-sync settings that decide what to do with those events — plus automatic pushes from WooCommerce to Shopify when you save products.

Generate and Manage Webhooks

Open the store workspace and go to Account Settings → Webhooks.

Webhooks tab

Select Generate Webhooks. The connector registers eight essential webhook subscriptions on your Shopify store:

Shopify eventTopicWhat the connector does with it
Order createdORDERS_CREATEAutomatically imports the new order (when Auto Import Order is enabled).
Order fulfilledORDERS_FULFILLEDWrites carrier tracking company, number, and tracking URL onto matching WooCommerce order items.
Order updatedORDERS_UPDATEDSynchronizes order status changes, address updates, and line item modifications from Shopify.
Product createdPRODUCTS_CREATEImports newly created products into WooCommerce (when Auto Import Product is enabled).
Product updatedPRODUCTS_UPDATEUpdates linked WooCommerce products according to configured Fields to Sync.
Product deletedPRODUCTS_DELETERemoves or unlinks WooCommerce products when deleted on Shopify.
Inventory level updatedINVENTORY_LEVELS_UPDATESynchronizes stock quantities in real-time when stock levels change on Shopify (e.g. physical store POS sales, manual inventory adjustments, or fulfillments).
Customer updatedCUSTOMERS_UPDATESynchronizes customer profile information, contact details, and billing/shipping addresses in real time when modified on Shopify (when Customer Updates from Shopify is enabled).

On success, you will see "Webhooks registered successfully." (or "All webhooks are already registered." on a repeat run). The table lists each webhook's ID, Topic, callback Address, and creation timestamp.

Real-Time Inventory Level Synchronization (INVENTORY_LEVELS_UPDATE)

A critical challenge in multi-channel selling is overselling when inventory changes directly on Shopify (such as brick-and-mortar POS sales or Shopify dashboard adjustments). Version 5.0.0 integrates the INVENTORY_LEVELS_UPDATE webhook to keep stock balanced across channels:

  1. HMAC-Protected Ingress: Shopify posts an INVENTORY_LEVELS_UPDATE event containing the inventory_item_id, location_id, and updated available count to /?wk_woo_shopify=wk_shopify_inventory_levels_update. The connector verifies the payload signature against the store's shared secret.
  2. Location & Variant Resolution: The connector queries Shopify GraphQL to map inventory_item_id to its corresponding variant_id and ensures the change occurred at your connected stock location.
  3. Non-Blocking Asynchronous Processing: Instead of delaying the webhook response, the handler dispatches an asynchronous background action (wkwooshopify_queue_stock_sync) via WooCommerce ActionScheduler.
  4. Delta Calculation: Stock adjustments are exchanged using deltas rather than blunt overwrites, safeguarding ongoing WooCommerce checkouts from race conditions.

Real-Time Customer Profile Synchronization (CUSTOMERS_UPDATE)

Keeping customer records synchronized across both storefronts prevents shipping errors, duplicate user records, and fulfillment delays. The CUSTOMERS_UPDATE webhook ensures that profile and address modifications made on Shopify reflect instantly in WooCommerce:

  1. HMAC-Verified Ingress: Shopify delivers a CUSTOMERS_UPDATE payload to /?wk_woo_shopify=wk_shopify_update_customer. The connector verifies the HMAC signature using your store's credentials.
  2. Account Resolution: The connector locates the corresponding WooCommerce customer account by matching the linked Shopify customer ID or registered account email address.
  3. Profile & Address Sync: Customer details (first name, last name, email, phone) and default billing/shipping address fields are updated automatically in WooCommerce (wkwooshopify_update_customer_from_shopify).
  4. Asynchronous Background Processing: Webhook notifications are saved and processed asynchronously via the background request runner, maintaining ultra-fast webhook acknowledgement response times.

Webhook Health Diagnostics and 1-Click Repair

To ensure continuous real-time synchronization, the connector includes an automated diagnostic and self-healing engine:

  • Health Status Badge — Displays a real-time status pill at the top of the Webhooks tab:
    • 🟢 Healthy — All 8 required Shopify webhooks are actively registered and pointing to valid callback URLs on your site.
    • 🔴 Action Required (X Issues) — One or more required webhooks are missing, deleted on Shopify, or point to an outdated callback URL.
  • Run Diagnostic — Select this button to query Shopify's GraphQL API and test the live validity of all registered webhook endpoints.
  • 1-Click Repair — When issues are detected, clicking 1-Click Repair automatically re-registers missing topics and corrects stale endpoint URLs without requiring manual Shopify app adjustments.

Your site must be publicly reachable

Shopify delivers webhooks over the public internet. On a local or password-protected site the callbacks can't arrive, and real-time sync will silently do nothing. Ensure your WordPress domain is publicly accessible over HTTPS.

Choose the sync direction

In General Configuration, the Shopify Auto-Syncing Settings control what flows automatically:

  • Product Auto-Sync — Shopify To WooCommerce applies product update/delete webhooks; WooCommerce To Shopify pushes WooCommerce product saves to Shopify; Both Way does both; Disable turns product auto-sync off.
  • Auto Import Product — Enable to create WooCommerce products from products newly created on Shopify.
  • Auto Import Order — Enable to create WooCommerce orders from new Shopify orders.
  • Auto Export Order — export WooCommerce orders at checkout, for all or selected statuses.

Field-level control

The Real-Time Sync – Fields to Update lists in General Configuration decide which product fields an automatic update may change, per direction:

  • WooCommerce → Shopify: Title, Description, Images, Price, Weight, Barcode.
  • Shopify → WooCommerce: those plus Categories.

Deselect any field you curate manually on the receiving side; real-time updates will leave it alone.

How events are processed

Incoming webhook events are queued and processed in the background within moments — you don't need to keep any admin page open. If a background job stalls, the connector detects it and restarts the queue automatically. Every processed event is recorded, and the results feed the Sync Performance Dashboard.

Verifying real-time sync

Change a product title on Shopify, wait a few seconds, and reload the WooCommerce product. If nothing arrives, check the Webhooks tab (are the eight topics listed?), your Product Auto-Sync direction, and the dashboard's error table.