Platform
Chatbot Builder Bulk Messaging Team Inbox Mini CRM API & Webhooks AI Integration WhatsApp Flows
Industries
E-commerce & D2C Real Estate Education Healthcare Finance & BFSI Logistics Hospitality Retail
Integrations 📚 Learn 🗂 Codex Compare Pricing About Contact Start Free Trial →
HomeIntegrations › Connect WooCommerce to WhatsApp API
WhatsApp API · WooCommerce Integration · WA.Expert

🛒 Connect WooCommerce to WhatsApp API
Connect WooCommerce to WhatsApp API

WooCommerce powers over 40% of Indian WordPress e-commerce stores. This guide covers the complete technical integration — from WooCommerce action hooks to WA.Expert API calls — for order confirmations, abandoned cart recovery, delivery updates, review requests, and reorder reminders. Both plugin and custom webhook approaches covered.

Start Free Trial on WA.Expert → ← All Guides
What you can automate

What this integration enables

📦 Full order lifecycle

Order placed → confirmed. Payment received → receipt. Shipped → tracking. Delivered → review request. All 4 messages automated from WooCommerce order hooks.

🛒 Abandoned cart recovery

Customer adds to cart, doesn't checkout → WA.Expert detects via scheduled job → 3-touch recovery sequence over 24 hours.

💰 COD to prepaid conversion

COD order placed → instant WhatsApp with prepaid incentive and Razorpay payment link. Typical prepaid conversion: 15–25% of COD orders.

📣 Product back-in-stock

Customer clicks 'Notify Me' on out-of-stock product → WhatsApp sent automatically when stock replenished.

🔁 Reorder reminder

30–90 days after purchase of consumable → WhatsApp reorder reminder. Calculated from product average repurchase interval.

💬 Customer support routing

Customer messages WhatsApp with order query → chatbot extracts order ID → routes to relevant department in WA.Expert inbox.

Setup guide

How to connect WooCommerce to WA.Expert

// WooCommerce custom webhook — functions.php add_action('woocommerce_order_status_changed', function($order_id, $old_status, $new_status) { if ($new_status === 'processing') { $order = wc_get_order($order_id); $phone = $order->get_billing_phone(); $name = $order->get_billing_first_name(); wp_remote_post('https://api.wa.expert/v1/messages', [ 'headers' => ['Authorization' => 'Bearer YOUR_API_KEY'], 'body' => json_encode([ 'to' => '91' . $phone, 'template_name' => 'order_confirmed', 'variables' => [$name, $order->get_order_number(), $order->get_total()] ]) ]); } }, 10, 3);
FAQ

Common questions

What WooCommerce plugin does WA.Expert provide?
WA.Expert's WooCommerce plugin is available in the WordPress plugin directory. It provides a no-code interface for mapping WooCommerce order statuses to WA.Expert templates, abandoned cart detection, and bulk messaging to customers. For more customised setups — custom order statuses, custom fields, complex conditional logic — use the WordPress functions.php webhook approach shown in this guide.
How does abandoned cart recovery work technically in WooCommerce?
WooCommerce saves cart data per session and per user (for logged-in customers). The WA.Expert plugin checks every 10 minutes for carts older than your configured threshold (default: 30 minutes) that have not converted to an order. It cross-references the cart session with the customer's phone number (from billing data if they've registered) and triggers the recovery sequence. Anonymous carts without a saved phone number cannot be recovered.
Can I send WhatsApp messages for custom WooCommerce order statuses?
Yes — the webhook approach in functions.php supports any WooCommerce order status string, including custom statuses added by WooCommerce extensions. Replace 'processing' in the code example with your custom status slug. Multiple status triggers can be set in the same function with if/elseif logic, each mapping to a different WA.Expert template.

Shopify + WhatsApp Advanced Guide

Similar integration guide for Shopify stores.

Read →

WhatsApp Abandoned Cart Recovery

Full cart recovery playbook — 3-touch sequence strategy.

Read →

Razorpay + WhatsApp Integration

Payment confirmation and COD recovery via Razorpay webhook.

Read →

Connect your WooCommerce store to WA.Expert

Plugin install + API key = all order messages automated. Live in under 30 minutes.

Start Free Trial → Talk to an Expert