Shopify integration

WhatsApp Shopify integration for order updates and COD confirmation

Connect Shopify with an access token and ReploChat sends your approved WhatsApp templates when an order is placed, fulfilled or cancelled, or a checkout is left behind. Cash-on-delivery orders get Confirm and Cancel buttons that write the answer back to the order.

What the WhatsApp Shopify integration does

The ReploChat WhatsApp Shopify integration listens to your store's order and checkout webhooks and answers each one with a WhatsApp template you picked, sent from your own WhatsApp Business number. There is no app to install from the Shopify App Store: you create a small custom app in your own Shopify admin, paste two keys, and ReploChat sets up and verifies the webhooks for you.

Every message is a normal chat in your shared team inbox, labelled Shopify, so when a customer replies "can you change the size?" an agent picks it up in the same thread. It is built for Pakistani cash-on-delivery stores first, but works the same for prepaid stores anywhere.

AutomationShopify triggerTypical template category
Order confirmationOrder created (prepaid)Utility
COD confirmationOrder created with Cash on DeliveryUtility
Order shippedOrder fulfilledUtility
Order cancelledOrder cancelledUtility
Abandoned cart reminderCheckout created or updated, not completed after your delayMarketing

Setup

Connect Shopify to WhatsApp in four steps

You need a connected WhatsApp number and at least one approved template. No developer required.

01

Create an app for your store

In Shopify admin open Settings → Apps → Develop apps and create an app in the Dev Dashboard. Give it the read_orders, write_orders and read_fulfillments scopes, then install it on your store.

02

Paste two keys

In ReploChat open Integrations → Connect a store → Shopify. Enter your your-shop.myshopify.com domain and the app's client ID and client secret. ReploChat keeps the access token renewed for you.

03

Map each event

For every automation choose the WhatsApp number and an approved template, then map each variable to an order field: customer name, order number, total, items, tracking, checkout link or store name.

04

Send a test

Use Send test with your own number and pick the event. A sample order goes out so you see the real message, without touching any real Shopify order.

Shopify signs every webhook with your API secret key and ReploChat checks that signature, so nobody can fake an order to trigger messages. Each event is remembered per store and order, so a webhook Shopify redelivers never sends a second message.

Cash on delivery

COD order confirmation on Shopify with one tap

The customer confirms or cancels inside WhatsApp, and the answer is written back to the Shopify order.

Hi Ayesha, thanks for your order #1042 from Lawn & Co..

Items: Printed lawn 3-piece × 1
Total: PKR 4,850 (cash on delivery)

Please confirm so we can dispatch it.
✅ Confirm order❌ Cancel order
✅ Confirm order
Thank you Ayesha! Your order #1042 is confirmed and will be on its way soon.

How the answer updates Shopify

  • ReploChat spots COD orders from the payment gateway (for example "Cash on Delivery (COD)") and sends the COD confirmation template instead of the plain order confirmation.
  • The template needs two quick-reply buttons: the first means Confirm, the second means Cancel. You write the button text yourself.
  • Confirm adds the tag cod-confirmed and an order note saying the customer confirmed on WhatsApp.
  • Cancel adds cod-cancelled and a note. Tick "Also cancel the order on Shopify when the customer taps Cancel" to cancel it as well; stock is restocked, no refund is issued and Shopify sends no email.
  • The customer gets your Reply after Confirm or Reply after Cancel text, which can use {name}, {order_number}, {total} and {store}.
  • A second tap changes nothing, and only the number the confirmation went to can answer it.

Your team can then filter Shopify orders by the cod-confirmed tag before booking couriers.

Why COD confirmation cuts fake orders and RTO for Pakistani stores

In Pakistan most online orders are still paid in cash on delivery. That is good for conversion and painful for margins: some orders are placed with a wrong address, by someone testing the checkout, by a competitor, or by a buyer who changes their mind before the rider arrives. Each of those parcels is booked, packed, shipped and then returned to origin (RTO), and you pay the courier both ways.

A WhatsApp confirmation before dispatch filters most of that out cheaply:

  • A real, reachable number. If the number is not on WhatsApp the message fails, and you see that under Recent events before you book a courier.
  • An explicit yes. Dispatch only orders tagged cod-confirmed. Unanswered ones get a call from your team, not a parcel.
  • Cancellations happen before shipping. A buyer who changed their mind taps Cancel instead of refusing the parcel at the door.
  • No call-centre load. Manually calling every COD buyer takes hours each day; the buttons do it in the background.
  • Address fixes in the same chat. If the customer replies "please deliver to my office", an agent sees it in the inbox and edits the order.

We don't publish RTO percentages because results depend on your products, price points and courier. The mechanism is simple: fewer unwanted parcels leave the warehouse. For a longer walk-through, see the WhatsApp for ecommerce playbook.

Message examples

Order confirmation, shipping, cancellation and abandoned cart messages

Sample copy you can adapt for your own templates. Variables are filled from the Shopify order.

Order confirmation (prepaid)

Hi Sara, we've received your order #1043 for USD 64.00 (2 items). We'll message you here as soon as it ships. Questions? Just reply to this chat.
Can I add one more scarf?

Order shipped

Good news Ayesha! Your order #1042 is on its way. Tracking number: LE7781234. Track it here: https://yourcourier.example/track/LE7781234 . Please keep PKR 4,850 ready for the rider.

Sent when the order is fulfilled; tracking comes from the latest fulfillment.

Order cancelled

Hi Bilal, your order #1039 has been cancelled. If you didn't request this or want to reorder, reply here and our team will help.

Abandoned cart reminder

Hi Hina, you left Embroidered kurta × 1 in your cart at Lawn & Co.. Your items are saved. Complete your order here: https://yourstore.example/checkout

Sent after your delay (5 minutes to 7 days); skipped if the checkout is completed first.

WhatsApp template requirements for Shopify automations

WhatsApp only lets a business start a conversation with an approved message template. You create the templates in ReploChat, they are submitted to Meta, and once approved they appear in each automation's template list.

  • Utility for order updates. Order confirmation, COD confirmation, shipped and cancelled messages are tied to a specific order, which is what Meta's Utility category is for. Keep them free of promotions; a discount line can get a template re-categorised as Marketing.
  • Marketing for abandoned carts. Meta's guidelines list cart reminders as Marketing because they encourage a purchase. Create that template in the Marketing category.
  • COD needs two quick-reply buttons. First button = Confirm, second = Cancel.
  • Variables with samples. Use {{1}}, {{2}} (or named variables) for name, order number, total, items and tracking, and give Meta realistic sample values.
  • Media headers. If a template has an image, video or document header, paste a link to the file in the automation.

Meta bills your own WhatsApp Business Account per message by category and country; ReploChat adds no markup. Templates are in English. See the templates guide for approval tips.

Good to know

  • Phone numbers. Local numbers like 0300 1234567 get the country code from the shipping address or the store's default country (Pakistan unless you change it).
  • Opt-outs. A customer who replied STOP is never messaged by any automation.
  • Recent events. Every webhook and its result (sent, skipped and why, or failed and why) is listed on the Integrations page.
  • Disconnecting removes ReploChat's webhooks from your store and stops its automations. Messages already sent stay in your inbox.
  • Custom checkout or headless store? Send the same events through the store-events API described in the store integrations guide.

Running WooCommerce as well? The WooCommerce integration works the same way. Ready to try it? Start a free trial, no card needed.

FAQ

Frequently asked questions

In Shopify admin open Settings → Apps → Develop apps and create an app in the Dev Dashboard with the read_orders, write_orders and read_fulfillments scopes, then install it on your store. Paste its client ID and client secret into ReploChat under Integrations → Connect a store → Shopify. ReploChat creates the order, checkout and fulfillment webhooks and renews the access token for you. Full steps are in the store integrations guide.
The order gets a cod-confirmed or cod-cancelled tag and a note saying the customer answered on WhatsApp. If you tick "Also cancel the order on Shopify when the customer taps Cancel", the order is cancelled too (restocked, no refund, no Shopify email). The customer then receives your thank-you or cancellation reply.
It reads the order's payment gateway. Orders paid with a gateway named Cash on Delivery (COD) get the COD confirmation template when that automation is on; prepaid orders get the normal order confirmation.
Only checkouts that have a phone number. The reminder waits for the delay you set (from 5 minutes up to 7 days) and is skipped automatically if the customer completes the order first. Customers who replied STOP are never messaged.
Order confirmation, COD confirmation, shipped and cancelled messages are transactional and normally fit Meta's Utility category. An abandoned cart reminder encourages a purchase, so Meta treats it as Marketing. Every template must be approved by Meta before it can be sent.
No. You connect through a custom app in your own Shopify admin, which takes a few minutes and keeps the access token under your control. Disconnecting removes ReploChat's webhooks from the store.
Meta charges your own WhatsApp Business Account per message, by template category and country. ReploChat adds no markup. See pricing for plan prices.

Ready to Grow Your Business on WhatsApp?

Team inbox, AI assistant, chatbots, Flows, campaigns and store automations on the official WhatsApp Business API.

No credit card • Setup in minutes • Cancel anytime

Chat with us 👋

Sales

+92 335 5265622

Support

+92 339 4683250