How do I confirm or cancel Cash-on-Delivery orders in Shopify via interactive WhatsApp messages using MyOperator?
⚡ Quick answer - Turn on the COD Order Confirmation or Cancel workflow inside MyOperator ➜ Ecomm+ ➜ Workflow.
Pick your approved COD template (with “Approve” and “Cancel” buttons), map the Shopify variables ({{name}}, {{orderid}}, {{link}}), test the message, and click Update workflow.
Each time a shopper places a COD order, they’ll instantly receive a WhatsApp prompt to confirm or cancel with one tap—helping you filter out non-serious buyers.
When should I use this guide?
Use these steps if you already have:
- The MyOperator ↔ Shopify plugin installed and connected
- A verified WhatsApp Business Account (WABA) linked to MyOperator
- At least one Meta-approved COD confirmation template in the Utility category
Prerequisites checklist
What you need | Why it matters |
|---|---|
MyOperator account with Ecomm+ | Gives access to the Workflow tab |
Shopify store admin rights | Lets the plugin read order data |
Verified WhatsApp Business Account | Required for sending official messages |
1 × approved Utility template for COD confirmation | Powers the Approve / Cancel buttons |
Create your COD WhatsApp template
- In MyOperator, go to WhatsApp → Create Template.
- Name it clearly (e.g.,
cod_approval). - Pick Utility as the category.
- Add interactive Quick Reply buttons:
- Button 1 label =
Approve COD - Button 2 label =
Cancel Order
- Use exactly three variables:
Placeholder | Maps to Shopify | Example fallback |
|---|---|---|
| Customer first name | Customer |
| Order ID | — |
| Custom link powering both buttons | — |
- For the buttons to function, embed these dynamic links in your template body:
- Approve:
https://shopify.myoperator.com/order-confirmation/{{approve}} - Cancel:
https://shopify.myoperator.com/order-confirmation/{{cancel}}
- Wait until the template status shows Approved before continuing.
Step-by-step setup
- Navigate ➜ MyOperator ➜ Ecomm+ ➜ Workflow.
- Scroll to Cash-on-Delivery (COD) Management and locate COD Order Confirmation or Cancel.
- Toggle the flow ON, then click its name to open Edit workflow.
- Select Template: choose
cod_approvalfrom the dropdown. - Map Variables - Connect the variables from your template to the correct Shopify data.
- Map
{{name}}to the customer's Name. - Map
{{orderid}}to the Order ID. - Map
{{link}}to the Custom Link. This variable is used to power the confirmation buttons. - Provide a Fallback value for each variable, like "Customer" or a default order number, in case the data isn't available.
- Send Test: click Test, enter a 10-digit mobile number, and press Send Message.
- Review the live preview on the right; if everything looks good, click Update workflow to activate.
Expected outcome & how to test
Outcome:
- Every new COD order triggers a WhatsApp message with Approve COD and Cancel Order buttons.
- Shopper tap = immediate status update in MyOperator and Shopify.
Testing steps:
- Place a test COD order in your store.
- Wait a few seconds; confirm the WhatsApp message arrives.
- Tap Approve COD; order status should update to “Confirmed.”
- Repeat test and tap Cancel Order; order should be marked “Cancelled.”
When this won’t work
- Template is still Pending or Rejected.
- Buttons fail if you didn’t use the exact dynamic link format.
- Customer has opted out of WhatsApp messages.
- Any required variable left unmapped → workflow error, message not sent.
Troubleshooting
Issue: “Template variable missing”
- Re-open the workflow and map every
{{variable}}; add fallbacks.
Issue: Buttons do nothing
- Verify the template links match the exact URLs shown above.
Issue: Message not delivered
- Check MyOperator ➜ WhatsApp Logs for failure reason.
- Confirm recipient number includes country code and is WhatsApp-enabled.
Keywords: COD confirmation WhatsApp, MyOperator COD workflow, Approve Cancel COD order, Shopify WhatsApp COD
Updated on: 01/12/2025