> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user-documentation/integrations/shopify/configure-cod-confirmation-and-cod-to-prepaid-automation.md).

# Configure COD Confirmation and COD to Prepaid Automation

### Step 1: Open COD Manager

1. Open the **WA Official API + AI** app.
2. Navigate to the **COD Manager** section.
3. Enable the **COD Confirmation** option.

Once enabled, customers placing a **Cash on Delivery (COD)** order will receive a WhatsApp message asking them to **Confirm** or **Cancel** their order.

### Step 2: Create the COD Confirmation Template

Before enabling the automation, create a WhatsApp utility template.

1. Copy the **COD Confirmation URL** provided in the COD Manager.
2. Login to your CRM portal.
3. Navigate to **CRM Channels → Template Manager**.
4. Click **Create Template**.

Configure the template as follows:

* **Category:** Utility
* **Template Name:** (e.g., COD Confirmation)
* **Language:** English

#### Template Body

* Add only plain text.
* **Do not add any variables** in the message body.

#### Button Configuration

1. Add **one URL button**.
2. Select **Dynamic URL**.
3. Paste the copied COD Confirmation URL.
4. Add **{{1}}** as the dynamic value at the end of the URL.
5. Enter any numeric sample value.
6. Save the template and submit it for approval.

> **Note:** The COD Confirmation template must contain **only one dynamic URL button**.

### Step 3: Configure the COD Confirmation Flow

Once the template is approved:

1. Return to the **COD Manager**.
2. Select your approved **COD Confirmation** template.
3. Set the **Confirmation Window** (for example, 24 hours).

Customers can confirm or cancel their order within the selected time period.

### Step 4: Configure Follow-up Messages

You can define different WhatsApp messages based on the customer's response.

#### If the Customer Confirms the Order

Select a WhatsApp template to send after the customer confirms the order.

Examples include:

* Order Confirmation
* Product Information
* Shipping Updates
* Promotional Messages

#### If the Customer Cancels the Order

Select a different WhatsApp template to send after cancellation.

You may use this opportunity to:

* Offer a discount coupon
* Share promotional offers
* Encourage the customer to reorder

Multiple follow-up messages can be added using additional actions.

After configuring the flows, click **Save All Settings**.

The COD Confirmation automation is now active.

***

### **Configure COD to Prepaid Conversion**

#### **Step 1: Enable COD to Prepaid**

1. In the **COD Manager**, enable **COD to Prepaid**.
2. Specify the delay after order confirmation.

For example:

* Send the prepaid conversion message **5 minutes** after the customer confirms the COD order.

#### Step 2: Create the COD to Prepaid Template

Create another WhatsApp utility template for prepaid conversion.

Configure the template as follows:

* **Category:** Utility
* **Language:** English

#### Button Configuration

1. Copy your Shopify store URL.

Example:

```
https://yourstore.com
```

2. Add a **Dynamic URL Button**.
3. Configure the URL in the following format:

```
https://yourstore.com{{1}}
```

4. Add a numeric sample value for **{{1}}**.
5. Save the template and submit it for approval.

> **Note:** Replace `https://yourstore.com` with your own Shopify store URL.

#### Step 3: Select the COD to Prepaid Template

After the template is approved:

1. Return to the **COD Manager**.
2. Select the approved **COD to Prepaid** template.
3. Click **Save All Settings**.

The automation is now ready.

### Additional Automation&#x20;

You can continue the workflow by adding more actions after the COD to Prepaid message.

Available actions include:

* Send Additional WhatsApp Messages
* Add Delay
* Apply Conditions
* Trigger Webhooks

This allows you to build complete post-order automation journeys based on customer responses.

{% embed url="<https://youtu.be/FdNXoUo2rHo>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpdocumentation.gitbook.io/user-documentation/integrations/shopify/configure-cod-confirmation-and-cod-to-prepaid-automation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
