Skip to content

How to Integrate WhatsApp with Shopify for Order Updates, Customer Support and Repeat Sales

How to connect WhatsApp with Shopify: apps vs a custom build, which store events trigger which messages, COD confirmation, opt-in and support.

01

The short answer

To integrate WhatsApp with Shopify, connect Shopify's order, fulfilment and checkout events to the WhatsApp Business Platform through an app, a Business Solution Provider or a custom app. Each event sends a pre-approved template message (order confirmed, COD confirmation, shipped, delivered, reorder reminder) to customers who have opted in, and customer replies land in a shared inbox linked to the order. Shopify has no native WhatsApp messaging channel, so the choice is which integration layer to use and how much of it you control.

This is the technical companion to our WhatsApp commerce guide for D2C brands, which covers which journeys to build and why.

02

Three ways to connect the two

OptionWhat it isGood forWatch out for
Click-to-chat buttonA link or widget that opens WhatsApp with your numberLetting shoppers ask questionsNo automation, no link to orders
Shopify WhatsApp app or providerAn app that listens to Shopify events and sends templates through the PlatformStandard order updates, COD confirmation, cart recovery, shared inboxPer-message and subscription costs; limits on custom logic; another app on the store
Custom integrationYour own app or service using Shopify webhooks and APIs and the WhatsApp Cloud APIUnusual flows, several systems, data control, high volumeYou own the build, hosting, monitoring and template management
03

Which Shopify events trigger which messages

Most integrations come down to a mapping between store events and message templates. Write this table for your own store before choosing a tool; it becomes the specification.

Shopify eventMessageTemplate categoryNotes
Order createdOrder confirmation with summaryUtilitySend once; avoid duplicating the email if customers find both noisy
Order created, COD paymentPlease confirm your order (optionally: pay online)UtilityReply updates the order with a tag or note
Checkout abandoned (opted-in customers)Reminder with link back to checkoutMarketingRespect per-user marketing limits; one reminder is often enough
Fulfilment createdShipped, with tracking linkUtilityUse your branded tracking page if you have one
Courier status updatesOut for delivery, delivery failed, deliveredUtilityUsually from your shipping platform, not Shopify itself
Refund createdRefund issued and how long it takesUtilityReduces follow-up questions
Days since delivery, by productReorder or review requestMarketingTime it to the product's usage cycle
04

How the integration works underneath

Shopify sends webhooks when orders, fulfilments, checkouts and refunds change. The integration layer receives them, decides whether a message should be sent (has this customer opted in, is this a COD order, has the message already been sent), fills in a template with order data and sends it through the WhatsApp Cloud API or a provider's API. Delivery and read receipts come back as webhooks from WhatsApp, and customer replies arrive the same way.

Build for the failure cases. Webhooks can arrive late, twice or out of order, so record which messages have been sent for each order and make sending idempotent. Template sends fail when templates are paused, numbers are invalid or a customer has hit Meta's marketing limit, so log failures and retry or fall back to SMS or email where it matters. Our guide to receiving ecommerce webhooks reliably covers the patterns.

05

Capturing opt-in on Shopify

WhatsApp requires opt-in before you message customers. On Shopify, the common places to collect it are a checkbox at checkout (through checkout extensibility, or the phone-marketing consent field where it fits your use), your account area, and the moment a customer starts a chat. Be clear about what they are agreeing to: order updates and promotions are different, and many customers will accept the first but not the second.

Store consent with a timestamp and source against the customer record, and make opting out work from inside WhatsApp. If you also collect SMS or email consent, keep the three separate.

06

COD confirmation and prepaid nudges

For Indian stores, COD confirmation is often the integration that pays for itself first. When a COD order is created, send a utility template asking the customer to confirm. Offer a "pay online" button that opens a payment link for the same order, perhaps with a small prepaid benefit if your margins allow. Record the reply on the order as a tag so your warehouse or shipping platform can ship confirmed orders, follow up unconfirmed ones by phone, and cancel those that never respond after your chosen window.

Shopify does not charge its third-party transaction fee on manual payment methods such as COD, but failed COD deliveries cost you shipping both ways, so a confirmation step that prevents some of them is usually worth the message cost. Measure it: compare delivery success on confirmed and unconfirmed orders.

Need WhatsApp flows your current app cannot handle?

ZSpace Labs builds custom Shopify integrations that connect WhatsApp to your orders, shipping platform and support tools, with consent, retries and reporting built in.

Start a Project
07

Support: one inbox with the order attached

Replies need somewhere to go. A shared inbox (in the WhatsApp app you choose, or a helpdesk that supports WhatsApp) lets several people answer, see the customer's orders alongside the chat, and hand conversations between a bot and a person. Route by intent where you can: delivery problems to the operations team, product questions to customer care, refunds to whoever can approve them.

If you use an AI assistant, ground it in your catalogue, policies and order data, and have it hand over on refunds, complaints and anything it cannot answer. See AI customer support for ecommerce.

08

Order status page and tracking

Many stores add a "Questions? Chat on WhatsApp" button and tracking details to the order status page. In 2026 Shopify removed script tags from that page, so older widgets injected by scripts stop working. Use customer account UI extensions for visible elements and web pixels for tracking. If you rely on an app for this, check it has moved to the supported approach. For the tracking experience itself, see ecommerce order tracking.

09

Choosing an app or provider

  • Which Shopify events it supports out of the box, including COD confirmation and refunds.
  • Whether replies can update the Shopify order (tags, notes, cancellations).
  • Shared inbox, routing and handover to people, and whether it connects to your helpdesk.
  • How it collects and stores opt-in, and how opt-outs are handled.
  • Pricing: its subscription, any markup on Meta's per-message charges, and costs at your expected volume.
  • Template management and reporting by journey, not just by message.
  • Data access: can you export conversations and consent records if you move?
10

When a custom integration makes sense

A custom build is worth considering when messages depend on data outside Shopify (courier platforms, an OMS or ERP, subscription tools), when you need logic no app supports, such as COD rules by pincode or risk score, when several brands share one integration, or when app fees at your volume clearly exceed the cost of running your own service. It means owning template approval, webhook handling, monitoring and changes when Meta or Shopify update their platforms. See when a custom Shopify app makes sense.

11

Hypothetical example: from app to custom

This example is hypothetical. A D2C apparel brand starts with a Shopify WhatsApp app for order updates and COD confirmation. A year later it ships through two courier aggregators, runs an exchange-first returns process and wants COD confirmation only for orders above a risk threshold. The app cannot read the courier and returns data or apply the risk rule, so the brand builds a small service that listens to Shopify, courier and returns webhooks, applies its rules and sends templates through the Cloud API, while keeping the app's shared inbox for support.

12

Getting it live

List your events and messages, decide what each reply should change in Shopify, set up consent capture, and choose an app or a custom route based on that list. Launch the utility journeys first, check delivery rates and costs for a few weeks, then add marketing journeys carefully.

Planning your WhatsApp and Shopify setup?

Share your event list with ZSpace Labs and we will recommend an app, a provider or a custom integration, and estimate the build and messaging costs.

Start a Project
FAQ

Common questions.

Not a native one for automated messaging. Stores add WhatsApp through Shopify apps or WhatsApp Business Solution Providers, or through a custom app that connects Shopify's webhooks and APIs to the WhatsApp Business Platform. A simple chat button linking to your WhatsApp number needs no integration at all.

Start with an established app if your needs are standard: order updates, COD confirmation, cart recovery and a shared inbox. Consider a custom integration when you need logic the apps do not support, data from systems beyond Shopify (an OMS, ERP or courier platform), strict control over data, or when app costs at your volume exceed the cost of running your own.

When an order with a cash-on-delivery payment method is created, the integration sends a utility template asking the customer to confirm, often with an option to pay online instead. The reply updates the order, for example with a tag, so your fulfilment process can ship confirmed orders and follow up the rest.

Yes, but use the supported extension points. Shopify removed script tags from the order status page in 2026; customisations there now use customer account UI extensions, and tracking uses web pixels. Older script-based widgets need replacing.

Get in touch

Have a project in mind?

Whether you're building a new digital product, improving an existing website, or looking to automate part of your business — let's talk.