WhatsApp E-commerce API

Turn abandoned carts into completed orders. A WhatsApp message to a customer who agreed to hear from you is easy to act on. Results depend on your audience, timing and consent.

Why Use WhatsApp for Automation?

Discover the advantages of using WhatsApp as your communication channel

Abandoned Cart Recovery

Send timely, personalized WhatsApp reminders to shoppers who leave items in their cart.

Order Confirmations

Instantly confirm orders with item details, total, and estimated delivery. Reduce customer anxiety and support tickets.

Shipping & Delivery Updates

Keep customers informed with real-time shipping status, tracking numbers, and delivery notifications directly on WhatsApp.

Payment Alerts

Notify customers of successful payments, failed transactions, subscription renewals, and refund confirmations.

Upsell & Cross-sell

Send personalized product recommendations based on purchase history. WhatsApp's engagement rates make upsell campaigns highly effective.

Post-Purchase Reviews

Request product reviews and testimonials over WhatsApp within 48 hours of delivery when satisfaction is highest.

How It Works with QuackAPI

Get up and running in three simple steps

1

Connect Your WhatsApp Device

Add a business WhatsApp number to QuackAPI by scanning a QR code. Takes under 2 minutes — no Meta Business approval required.

2

Hook Into Your E-commerce Events

Trigger WhatsApp messages from your Shopify, WooCommerce, or custom backend when cart abandonment, order, or payment events occur.

3

Recover Carts & Delight Customers

Send a 3-step recovery sequence at 30 minutes, 24 hours, and 72 hours. Track recovery rates via webhooks and optimize your messaging.

Implementation Example

See how easy it is to implement with just a few lines of code

cart-recovery.js
// Shopify / WooCommerce abandoned cart webhook handler
app.post('/webhook/cart-abandoned', async (req, res) => {
  const { customer, cart, checkoutUrl } = req.body;

  // Wait 30 minutes before sending first message
  setTimeout(async () => {
    const items = cart.items.map(i =>
      `• ${i.name} x${i.quantity} — $${i.price}`
    ).join('\n');

    await fetch('https://quackapi.com/v1/messages/chat', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'x-api-key': process.env.QUACKAPI_KEY
      },
      body: JSON.stringify({
        deviceId: 1,
        to: customer.phone,  // e.g. "12025551234"
        body: `Hi ${customer.name}! You left items in your cart:\n${items}\n\nTotal: $${cart.total}\n\nComplete your order: ${checkoutUrl}`
      })
    });
  }, 30 * 60 * 1000);  // 30 minutes

  res.sendStatus(200);
});

Ready to Get Started?

Create your free QuackAPI account and start sending WhatsApp messages in minutes. No credit card required.

Related Tutorials