> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatflows.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cash on delivery (COD) orders on WhatsApp

> Send WhatsApp order and shipping updates to cash-on-delivery buyers, and a message when a COD payment is received.

Many stores sell with cash on delivery (COD). COD buyers get the same WhatsApp order and shipping updates as every other buyer, and you can send a message when their COD payment is received. This page explains how it works.

## How ChatFlows spots a COD order

An order counts as COD when its payment method in Shopify has **cash on delivery** or **COD** in its name.
In your messages, the **Payment Method** merge field then shows **Cash on Delivery**.

## What COD buyers get

A COD order gets the same updates as any other order. Use the Shopify events in your automations:

| Event | When it runs for a COD order |
| - | - |
| **Order placed** | The order is placed. |
| **Order shipped** and **Order partially shipped** | The order, or part of it, ships. |
| **Order out for delivery** and **Order delivered** | The courier is delivering it, or it arrived. Only if your carrier sends tracking to Shopify. |
| **COD payment received** | The COD order is marked as **paid** in Shopify, after the buyer pays the courier. |
| **Order cancelled** | The order is cancelled. |

See [Send order updates](https://docs.chatflows.io/shopify/order-updates.md) to set these up.

> [!NOTE]
>
> **COD payment received** runs after payment, not before the order ships.
> Use it to thank the buyer once they have paid.

## What ChatFlows doesn't do yet

ChatFlows doesn't ask buyers to confirm or cancel a COD order before it ships.
It also doesn't change or cancel orders in Shopify. ChatFlows only reads your store.

An automation can't send COD orders down a different path from prepaid orders.
If you want a different message for COD buyers, use the **COD payment received** event, or add the **Payment Method** merge field to your order message.

## Example messages

For ready-to-use wording, see the COD and order templates in [Template examples](https://docs.chatflows.io/messaging/template-examples.md).

## Common questions

> [accordion] Can ChatFlows cancel or edit a COD order in Shopify for me?
>
> No. ChatFlows only reads your store and never changes or cancels orders. You manage COD orders in Shopify as usual.

> [accordion] Will ChatFlows recognize my cash on delivery payment method?
>
> Yes, if its name in Shopify contains **cash on delivery** or **COD**. A payment method without either wording isn't treated as COD.
> See [How ChatFlows spots a COD order](#how-chatflows-spots-a-cod-order).

> [accordion] Will a COD buyer without a phone number get a WhatsApp message?
>
> No. ChatFlows finds the customer by the phone number on the order, and orders without one don't get a message.
> See [Send order updates](https://docs.chatflows.io/shopify/order-updates.md#how-chatflows-finds-the-customer).

> [accordion] Do I need to change my Shopify theme to handle COD orders on WhatsApp?
>
> No. ChatFlows doesn't add anything to your storefront or theme. It reads your orders from Shopify.

## Where to next

> [card] [Send order updates](https://docs.chatflows.io/shopify/order-updates.md)
>
> Set up order, shipping and delivery messages.

> [card] [Template examples](https://docs.chatflows.io/messaging/template-examples.md)
>
> Copy-ready wording for order and COD messages.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.