> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://myoperator.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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

1. In MyOperator, go to WhatsApp → Create Template.
1. Name it clearly (e.g., `cod_approval`).
1. Pick Utility as the category.

![Creating a new WhatsApp template](https://content.api.getguru.com/files/view/ec0b5a69-f656-46a3-8409-abf2eef49376)

1. Add interactive Quick Reply buttons:

   1. Button 1 label = `Approve COD`
   1. Button 2 label = `Cancel Order`

1. Use exactly three variables:

| Placeholder | Maps to Shopify | Example fallback |
| --- | --- | --- |
| `{{name}}` | Customer first name | Customer |
| `{{orderid}}` | Order ID | — |
| `{{link}}` | Custom link powering both buttons | — |

1. 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}}`

1. Wait until the template status shows Approved before continuing.

---

## Step-by-step setup

1. Navigate ➜ MyOperator ➜ Ecomm+ ➜ Workflow.
1. Scroll to Cash-on-Delivery (COD) Management and locate COD Order Confirmation or Cancel.
1. Toggle the flow ON, then click its name to open Edit workflow.

![Open and edit the COD workflow](https://content.api.getguru.com/files/view/bb359a1d-a012-411f-959f-dbd1cae2fa4c)

1. Select Template: choose `cod_approval` from the dropdown.
1. 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.

1. Send Test: click Test, enter a 10-digit mobile number, and press Send Message.
1. Review the live preview on the right; if everything looks good, click Update workflow to activate.

![Configure the confirmation message](https://content.api.getguru.com/files/view/a4c93896-9a6c-4223-b9c9-80ec9aec566e)

---

## 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:

1. Place a test COD order in your store.
1. Wait a few seconds; confirm the WhatsApp message arrives.
1. Tap Approve COD; order status should update to “Confirmed.”
1. 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