Scope Wiser

Verifying Cash-on-Delivery Orders Over WhatsApp

Confirm COD orders before dispatch with a Store Automation campaign: Confirm/Cancel buttons, the COD rule, billing-field mapping and a test order.

Last updated Nov 15, 2026

What you'll do: send every cash-on-delivery (COD) customer a WhatsApp message with Confirm Order and Cancel Order buttons, so you know whether to dispatch.

Time: about 20 minutes, plus a test order.

For the wider picture of how payment works across the product β€” catalogue orders, manual payment, in-chat payment β€” read Cash on Delivery & Online Payments in Chat.

Before you start

  • ☐ A connected store. See Connecting WooCommerce or Connecting Shopify.

  • ☐ A WhatsApp bot selected. Commerce is a WhatsApp-only tab.

  • ☐ The system template system_cod_order_verification_new is approved (section 1).

  • ☐ Your checkout asks for a phone number with the country code (for example +968 9xxx xxxx).

Where things live. The Commerce tab shows two sub-tabs: Store Automation and Product Catalog. COD verification is set up as a campaign in Store Automation.

1. Get the COD template approved

  1. Go to Chatbot Manager β†’ Automation β†’ Message Templates.

  2. Open the Create dropdown and choose Default Template. It creates the system templates, including system_cod_order_verification_new with Confirm Order and Cancel Order buttons.

  3. Click Sync Templates to refresh approval status from Meta.

  4. You should now see the COD template with an approved status.

2. Rewrite the replies the buttons produce

Two system flows decide what the customer reads after tapping a button.

  1. Go to Chatbot Manager β†’ Automation β†’ Quick Actions β€” a page headed Action Buttons.

  2. Click the Confirm Order card ("Send order confirmation messages.").

  3. You should now see a prebuilt flow with a Text node holding placeholder wording.

  4. Rewrite the Text node and save.

  5. Do the same for Cancel Order ("Send order cancellation messages.").

Tip: rewrite both before you launch. These are the two messages every COD customer reads.

Automation β†’ Quick Actions showing the Confirm Order and Cancel Order cards

3. Create the COD campaign

  1. Go to Chatbot Manager, select your WhatsApp bot, then open Commerce β†’ Store Automation.

  2. Click Create. The WooCommerce/Shopify/Salla Automation form opens.

  3. Fill it in:

    • CAMPAIGN NAME *: for example COD verification.

    • STORE TYPE *: WooCommerce (or Shopify).

    • SELECT STORE API *: your connected store.

    • ACTION *: COD Verification.

    • MESSAGE DELAY (MINUTES) *: 0 to send straight away.

    • MESSAGE TEMPLATE *: system_cod_order_verification_new.

    • COUNTRY CODE: choose your country (for example Oman +968). It is added to phone numbers that customers type without a country code.

  4. Click Save. The campaign appears in the list.

  5. On the new row, click Edit. You should now see the Webhook Workflows editor, starting with Workflow Details β€” "Name the workflow and choose the WhatsApp message template to send". This is where you link each part of the message to an order field.

  6. WORKFLOW NAME *: keep or change the name, for example COD verification.

  7. MESSAGE TEMPLATE *: check it shows system_cod_order_verification_new.

  8. Check TEMPLATE PREVIEW. You should now see the message with the Confirm Order and Cancel Order buttons.

Store Automation create form with ACTION set to COD Verification and a delay of 1 minute

4. Map the phone number and variables

  1. PHONE NUMBER *: map it to billing > phone.

  2. Map each variable:

    Variable

    Map it to

    USER-NAME

    billing > first_name

    SYSTEM-CART-PRODUCT-LIST

    line_items (the product list)

    SYSTEM-CART-TOTAL-PRICE

    total

    SYSTEM-SHIPPING-ADDRESS

    billing > address_1

    SYSTEM-DELIVERY-DATE

    date_created (with a days-to-add formatter for an estimate)

Important: use billing fields, not shipping fields. Many customers leave the shipping address empty β€” WooCommerce then shows "No shipping address set" on the order. A variable mapped to an empty field makes WhatsApp reject the message with "Parameter of type text is missing text value". Map every variable to a field that is always filled.

Important: the phone number needs the country code. Set COUNTRY CODE on the campaign, and make the checkout phone field ask for it too, for example +968 9xxx xxxx.

5. Add the COD rule

Under "Send message only if any / all of the following rules satisfy", add:

  • payment_method Β· Equal Β· cod

Without this rule, customers who paid online are asked to confirm a cash order.

6. Check what the buttons do

On the COD campaign, the buttons are already linked to store actions:

Button

What happens in WooCommerce

Confirm Order

A private order note order-confirmed is added to the order (Woocommerce Order Note Update)

Cancel Order

The order is cancelled (Woocommerce Order Cancel)

7. Choose what happens afterwards (optional)

You can assign the conversation to a group or user, Assign / Remove Label and Assign / Remove Sequence. A label such as cod-pending plus a reminder sequence helps you chase people who never tap a button.

8. Save

  1. Click Save Workflow.

  2. You should now see "Workflow data has been mapped and saved successfully. You will be able to see it working from next webhook call."

9. Test it

  1. Open your store in a private (incognito) window, so you are not logged in as admin.

  2. Place a COD order as a guest, using your own WhatsApp number with the country code.

  3. Wait a couple of minutes. In our test the message arrived about 2 minutes after the order.

  4. You should now see the COD message with your name, the product, the total, the address and the Confirm Order / Cancel Order buttons.

  5. Tap Confirm Order.

  6. In WooCommerce, open the order. You should now see a private note order-confirmed, added within seconds.

  7. Cancel the test order in WooCommerce.

10. Read the report

  1. In Store Automation, click View on the COD campaign.

  2. You should now see the Automation Report: Total, Processed, Delivered and Failed, then one row per phone number with STATUS, times and RESPONSE.

Tip: why so many "failed"? If you also run an order-notification campaign with the rule payment_method Not equal cod, each campaign counts the other's orders as not sent. That is expected. Read RESPONSE to find the real errors.

Which setup for a COD-only shop?

If almost every order is cash on delivery:

  • Keep the COD campaign as your "order received" message. It already shows the order details, and it asks the customer to confirm.

  • The order-notification campaign only fires for non-COD orders while it has the rule payment_method Not equal cod. Keep it for the occasional online payment, or remove the rule if you want every customer to get both messages.

βœ… Done when…

  • ☐ system_cod_order_verification_new is approved

  • ☐ Confirm Order and Cancel Order carry your own wording

  • ☐ The campaign has the rule payment_method Equal cod and billing-field mappings

  • ☐ A guest test COD order brought the message within a few minutes

  • ☐ Tapping Confirm Order added the order-confirmed note to the order

If something doesn't work

Problem

What to check

RESPONSE says "Parameter of type text is missing text value"

A variable is mapped to an empty field, usually a shipping field. Remap it to the billing field and save.

No WhatsApp message at all

The COD rule (is the payment method really cod?), the phone number's country code, and the RESPONSE column in the report.

Prepaid customers get the COD message

The rule payment_method Equal cod is missing.

Many rows show as failed

Normal when two campaigns split orders by payment method. See step 10.

Tapping a button sends nothing back

The Confirm Order / Cancel Order flows under Automation β†’ Quick Actions are empty.

Confirming does not add the order note

Reconnect the store at Connect Account β†’ WooCommerce β†’ Manage β†’ Reconnect.

Checkout shows "There was an error processing your order"

Try again as a guest in a private window. See Fixing WooCommerce API Errors.

Reference

Store actions the buttons can run

API Action

What it does

Woocommerce Order Note Update

Adds a note to the WooCommerce order

Woocommerce Order Cancel

Cancels the WooCommerce order

Shopify Order Tag Update

Tags the Shopify order

Shopify Order Cancel

Cancels the Shopify order

Offering payment now instead

If you would rather offer the customer a way to pay now instead of on delivery, see Payment Gateways: TAP, Instamojo & Razorpay.

What to do next

Abandoned Cart Recovery is the other half of the same problem β€” orders that never became orders.

Next: Abandoned Cart Recovery

Was this helpful?
Edit this page