A COD confirmation flow sends the customer one WhatsApp message the moment an order is placed. They tap Confirm or Cancel. Your store reads the tap and moves the order to the right status. If they stay silent, a reminder goes out, then a person steps in. This guide shows the exact steps, the message copy in English and Urdu, and the status rules.

Quick answer: For WooCommerce COD confirmation on WhatsApp, hold each new COD order, send an approved template with Confirm and Cancel quick-reply buttons, and receive the tap on a webhook. Confirm moves the order to processing, Cancel moves it to cancelled, and no reply after one reminder goes to a person, not to shipping.
This is the build guide. For why fake and careless COD orders happen and how to measure the effect, read our post on reducing fake COD orders in Pakistan with WhatsApp. Here we only cover how to put the flow together.
COD is still the main way Pakistan buys online. Estimates range from about 74% to 95% of orders depending on the source and year (ProPakistani, ECDB). DHL Pakistan’s own article puts COD returns at roughly one in five parcels. A short confirmation step before you pack is cheap next to a parcel that travels and comes back.
In this guide
What you need before you start COD confirmation
- A WhatsApp Business Platform (API) number. Setup and costs are in our WhatsApp Business API guide for Pakistan.
- WooCommerce REST API keys (WooCommerce > Settings > Advanced > REST API, read/write).
- A webhook receiver: a small endpoint on your server, a workflow tool, or a plugin that does this for you.
- Customer consent at checkout for order updates on WhatsApp.
We use the official WhatsApp Business API only. No unofficial gateways, because one ban takes your number and your confirmations with it.
Step 1: Trigger on order creation, then hold the order
Trigger when a WooCommerce order is created with payment method cod. The standard WooCommerce hook is woocommerce_new_order, or a webhook set to “Order created” under WooCommerce > Settings > Advanced > Webhooks.
Set the order to on-hold straight away. This keeps it out of your packing list until the customer answers. Do this only for COD. Prepaid orders skip the flow.
Two things to know. On-hold orders still reduce stock in default WooCommerce, so a pile of unanswered orders can show items as sold out. Cancelling restores the stock. And do not build a custom status unless you have a developer: standard statuses are easier to keep working with couriers and reports.
Step 2: Write the COD confirmation template with quick-reply buttons
Create one utility template. Keep it to order facts only: no discount, no upsell. Promotional wording can push the template into the marketing category, which costs more and invites complaints. Check Meta’s current rate card for what each category costs. For the wider template rules, see our guide to WhatsApp message templates for WooCommerce.
Submit English and Urdu as two separate templates in the same category. Each has three quick-reply buttons.
Template cod_verify_en
Hi {{1}}, thank you for ordering from {{2}}. Order #{{3}}: {{4}} Pay Rs. {{5}} in cash when it arrives at {{6}}. Please tap a button below so we can pack it.
Buttons: Yes, send it | Cancel order | Change address
Template cod_verify_ur
السلام علیکم {{1}}، {{2}} سے خریداری کا شکریہ۔ آرڈر نمبر {{3}}: {{4}} ڈیلیوری پر {{6}} میں آپ کو Rs. {{5}} نقد ادا کرنے ہوں گے۔ پیک کرنے سے پہلے نیچے دیے گئے بٹن میں سے ایک دبا دیں۔
Buttons: جی، بھیج دیں | آرڈر کینسل کریں | پتہ بدلنا ہے
Variables: {{1}} first name, {{2}} store name, {{3}} order number, {{4}} item summary, {{5}} amount due, {{6}} city. Keep {{4}} short, such as “2 items”. Meta rejects templates where a variable sits at the very start or end of the text or where variables are crowded together, so test wording in the template manager.
Choose the language per order from the checkout language, or from a checkout field. If you do not know, send the language your site is in. Many customers switch between Urdu and English in the same chat, so understand both replies.
Button labels are limited in length (25 characters at the time of writing; check Meta’s docs). When you send the template, give each button a custom payload that carries the order: CONFIRM:1234, CANCEL:1234, ADDRESS:1234. That way a late tap on an old message still points to the right order.
Step 3: Send the message and log the message ID
Send through the Cloud API. Save the returned message ID against the order as order meta, along with the time sent. You need it for matching, reminders and audit.
Add a private order note: “WhatsApp COD verification sent.” Your team will read these notes later, so plain wording helps.
Step 4: Receive the tap on a webhook
When a customer taps a quick-reply button, WhatsApp posts a button message to your webhook. According to Meta’s webhook reference (button messages), it carries button.payload, button.text and context.id, the ID of the message that held the button.
A simplified example:
{
"from": "923001234567",
"type": "button",
"button": { "payload": "CONFIRM:1234", "text": "Yes, send it" },
"context": { "id": "wamid.XXXX" }
}
Your handler should:
- Verify the webhook signature from Meta.
- Read the payload and split action and order ID.
- Check the order exists, is still on-hold, and that
frommatches the billing phone on that order. - Run the action in Step 5.
- Reply with a short confirmation. Replies inside the customer’s open service window are free-form, so no new template is needed. Check Meta’s docs for the current window and pricing rules.
Item 3 in that list is the safety check. Ignore taps on orders that are already shipped, completed or cancelled, so a customer cannot reopen a finished order.
To change status, call the WooCommerce REST API with PUT /wp-json/wc/v3/orders/{id} and a JSON body like {"status": "processing"}, using your read/write keys. See the WooCommerce REST API docs for authentication.
Step 5: Map COD confirmation replies to order statuses
This is the table to build your handler from.
| Customer action | Order status | Order note | What happens next |
|---|---|---|---|
| Order placed (COD) | on-hold | “Awaiting WhatsApp confirmation” | Template sent, timer starts |
| Taps Yes / جی، بھیج دیں | processing | “Confirmed by customer on WhatsApp” | Packing list, courier booking |
| Taps Cancel / آرڈر کینسل کریں | cancelled | “Cancelled by customer on WhatsApp” | Stock restored, polite reply |
| Taps Change address / پتہ بدلنا ہے | on-hold (unchanged) | “Customer wants to change address” | Ask for the new address, then person confirms |
| Types free text | on-hold (unchanged) | “Free-text reply: [text]” | Goes to human inbox |
| No reply after reminder | on-hold, then your rule | “No reply after 2 messages” | Call, then cancel or hold per rule |
| Both Yes and Cancel tapped | status of the latest tap, unless already shipped | “Conflicting taps” | Staff checks if the earlier one acted |
Use standard WooCommerce statuses only: on-hold, processing, cancelled. Do not use “failed” for customer cancellations. It is meant for payment failures and confuses reports.
Step 6: COD confirmation timeouts and one reminder
Decide your clock before you launch, and write it down for your team.
A sensible default for a store that ships in 24 to 48 hours:
- Message 1: immediately at order creation.
- Reminder: about 4 hours later, or next morning if the order came in at night. Never message at 2 a.m.
- Deadline: 24 hours after message 1. Then a person calls once.
- After the call: confirm by phone and set to processing, or cancel.
Send one reminder only. A second nudge feels like pressure, and it increases blocks and reports against your number. For high-value orders, a phone call is better than a third message.
Reminder template cod_reminder_en
Hi {{1}}, your order #{{2}} from {{3}} is still waiting for your OK. Tap below and we will pack it today.
Buttons: Yes, send it | Cancel order
Reminder template cod_reminder_ur
السلام علیکم {{1}}، {{3}} سے آپ کا آرڈر {{2}} ابھی آپ کی تصدیق کا انتظار کر رہا ہے۔ نیچے بٹن دبائیں، ہم آج ہی پیک کر دیں گے۔
Buttons: جی، بھیج دیں | آرڈر کینسل کریں
Run the timer with a scheduled job in WooCommerce (Action Scheduler is built in) or your workflow tool. Check at send time that the order is still on-hold, so a customer who tapped Yes five minutes ago never gets the reminder.
Step 7: Handle COD confirmation edge cases
Wrong replies. Customers type “ok”, “haan”, “ji”, “theek hai” or send a thumbs-up. Do not guess. If you map “ok” to confirm automatically, you will also confirm “ok, but call me first.” Reply once: “Please tap Yes or Cancel on the message above” and flag the chat for a person.
Address change. Treat “Change address” as a handoff, not an automation. Reply with a free-form message asking for the full new address, landmark and phone number. When it arrives, a person updates the shipping fields and confirms the order. Automatic address parsing from free text causes wrong-parcel errors that cost more than the manual step.
Duplicate and old taps. Customers tap twice or tap an old message days later. The payload carries the order ID, and your handler checks the current status first. If the order is processing and they tap Yes again, answer “Already confirmed, thank you” and do nothing else.
Phone number mismatch. If the sender is not the billing phone, do not change the order. Log it and send to a person. Someone’s relative may be replying from another number.
No reply at all. Silence does not mean fake. Some customers are asleep, on mobile data with WhatsApp restricted, or the number is wrong. A phone call settles most of these. Auto-cancelling silent orders is a business choice. Make it deliberately, not by default.
Customer blocks or reports. Keep the template to order facts. Include your store name. Do not send marketing in the same thread right after a cancel.
Step 8: Human handoff in COD confirmation
COD confirmation automation covers the plain case. People cover everything else. Send these to a human inbox (or a shared number with the WhatsApp Business app, see Coexistence):
- free-text replies
- address changes
- conflicting taps
- orders over a value you choose
- anything after the deadline
Give staff one view: orders on-hold with a WhatsApp note, newest first. Each row shows the order, the last message and the time waiting. If staff must open five tabs to act, the flow will rot within a month.
Where plugins fit in COD confirmation
Several WooCommerce plugins and SaaS tools offer COD confirmation buttons, such as CODZap, BotSailor and WhatChimp. They suit a store that wants a quick start and accepts the tool’s fixed logic. Their pages describe the same pattern as above. Note that some only notify and do not write the status back to WooCommerce, so check that the tool changes the order status before you rely on it. We compare the options in WhatsApp plugin for WooCommerce vs done-for-you.
Testing your COD confirmation before launch
Run ten COD confirmation test orders with your own numbers:
- Tap Yes on both languages. Check status and note.
- Tap Cancel. Check stock is restored.
- Tap Yes after Cancel.
- Type “ok” and a Urdu reply.
- Place an order and wait for the reminder.
- Reply from a different phone.
Then watch the first 50 live orders by hand.
Want COD confirmation built for your store?
We build and run this flow for Pakistani WooCommerce stores on the official API, including templates in Urdu and English, the webhook, the status logic and a human inbox. See our WhatsApp automation for WooCommerce service, compare packages, or request a free review of your current checkout and order flow.
Frequently asked questions
Do I need a custom order status for “awaiting confirmation”? No. On-hold works with WooCommerce, courier plugins and reports without extra code. Add a private order note so your team can tell on-hold-for-confirmation from on-hold for other reasons.
Can the customer reply in Roman Urdu? Yes, and they will. Buttons avoid the problem for the main answer. For free text, send it to a person instead of matching words.
Should COD confirmation auto-cancel orders with no reply? Only after a reminder and a phone call, and only if your margins justify it. A fixed rule such as “cancel after 24 hours with no answer and no answer to the call” is fine. Write it down.
Will the buttons work with Urdu script? Yes. Button labels and message text accept Urdu script. Submit the Urdu template separately and check the preview on a phone before launch.
Does the COD confirmation message count as marketing? If it only states the order and asks for confirmation, it is a utility message. Adding offers or “shop more” lines can change that. Check Meta’s current category rules and rate card.
What if the courier already picked up an on-hold order by mistake? That is a process gap, not a WhatsApp one. Make packing and courier booking read from processing only.