Chat with us
Up to 60% OFF with Recurring Discounts on Premium Upgrades & Whitelabel FlexUp to 60% OFF on Premium Upgrade & Whitelabel02:00:00:00 Claim
Blogs/Uncategorized

Verify Shopify cash on delivery orders by WhatsApp with Webhook Workflow.

  • 22 Feb 2026
  • 5 min read
Verify Shopify cash on delivery orders by WhatsApp with Webhook Workflow.
TL;DR:
You can verify Cash on Delivery (COD) orders from Shopify via WhatsApp using BotSailor's Webhook Workflow.

Basic flow:

1. Create a WhatsApp template (ProductList, TotalPrice, Confirm & Cancel buttons).

2. Create a Webhook Workflow in BotSailor.

3. Connect Shopify's Order Creation webhook to the BotSailor URL.

4. Map phone, products, and total price.

5. Set postbacks + Callback API to tag confirmed/ canceled orders.


Customers instantly receive a WhatsApp message to confirm or cancel their COD order. 

In this article, I will show you how to verify Shopify cash on delivery orders by WhatsApp with the BotSailor webhook workflow. 

Webhook workflow is an advanced feature of BotSailor, and you will get greater control of your campaign. However, there is another straightforward way to verify Shopify cash on delivery orders via WhatsApp. This is BotSailor's default system to integrate Shopify Automation. Read details here about easy method to setup Shopify cash on delivery order confirmation campaign.

We have also created a video tutorial on How to verify Shopify cash on delivery orders by WhatsApp with BotSailor. 

You can watch the video tutorial.

First, you have to create a message template in BotSailor. 

Read the blog to know how to create a message template by BotSailor:

How to create a Message Template for WhatsApp by BotSailor

In the message template, you have to use two templates -- ProductList and totalPrice.

Also, in the message template, you have to configure two postbacks -- Confirm Order and Cancel Order.

You have created two quick reply buttons. Therefore, you have to create two postbacks for two quick reply buttons -- one for confirming the order and the other for canceling the order. 

Now you need to create a webhook workflow. Follow the instructions below to create a webhook workflow:

Instantly, WhatsApp Webhook(In-bound) Workflow will appear with a create button. 

  1. Click on the Webhook workflow menu in the WhatsApp section at the left sidebar of the dashboard.
  2. Click on the Create button.
  3. Provide a name in the Webhook Workflow button.
  4.  In the message template field, select the message template you have created. 
  5. Click on the Create workflow button.

Image

 

Image

  • Now you have to copy the URL. 

Image

 

  1. Now go to your Shopify Orders page.
  2. Click on Settings -> Now click on Notifications menu.
  3. Scroll down to the bottom of the page.
  4. Now click on the Create Webhook button.

Image

 

Image

 

Image

Instantly, a modal form called add webhook will appear with some fields – Event, Format, Url, and Webhook API version.  

Now you have to fill out the form:

  1. In the Event field, select order creation.
  2.  In the Url field, put the Webhook callback Url you copied from the BotSailor. 
  3. Then click on the Save button.

Then return to BotSailor and click on the Capture Webhook response button.

Image

Now you have to send an order. You can send an order from Shopify for testing purposes. To send an order, follow the instructions below:

  1. Go to Shopify and click on the orders menu.
  2. Now click on the Create Order button.
  3. From the Product fields, select a product.
  4. Click on the Add button.

Image

 Instantly, a create order page will appear with the Products field.

Image

Image

 

  • Then create a customer or select a customer from a predefined customers list.

Image

 

  1. Then enable the payment due later option.
  2. Then click on the Create Order button. 

Image

 

  1. In the Expected payment method, select the Cash on delivery option and click on the
  2. Click on the Create Order button

 

Image

Now return to BotSailor and wait for a moment.  In a moment, you will get a webhook response. 

Now you have to fill out the webhook response mapping form. 

  1. In the phone number field, select billing address phone number.
  2. In the PRODUCTLIST variable field, you have to select line_items.
  3. Now you have to select total_price in the TOTAL PRICE field.

Image

Then you have to create a data formatter for line_items. 

To create a data formatter follow the instructions below:

  1. Click on the new button in the data formatter section. 
  2. Provide a name in the name field.
  3.  In the Action field, select Contact List Items.
  4.  In the Glue field, provide a comma. 
  5. In the position field, provide name. 
  6. Then click on the Save Formatter button.

Image

Now you have to select the formatter for the product list.

Image

 

Now you have to fill out Confirm order and Cancel order field with two postbacks -- one for confirming the order and other for canceling the order. 

 

  • Now create a postback for confirming the order on Shopify. 

Image

 

  • Likewise, create another postback for canceling the order on Shopify. 

 

Image

 

  1. In the confirm order field, select Shopify Confirm Order postback. 
  2. Likewise, in the cancel order field, select Shopify Cancel Order Postback.

 

Image

Now you need to create a callback API. When a user clicks on Confirm Order or Cancel Order button, what will  happen will be defined in the callback API. 

Now you have to create callback API. 

To create a callback API, follow the instructions bellow: 

  1. Click on the New button in the Callback APIs section.
  2. Provide a name in the Name field.
  3. In the API action field, select Shopify order tag update option. 
  4. In the Select Store Api field, select an integrated Shopify store.
  5. In the Tag field, write a tag.
  6. Then click on the Save Callback API button.   

     

Image

 

Image

 

  • Select the Callback API in the Confirm Order Button field.

 

Image

 

 

Related Articles:

Send WooCommerce Abandoned Cart Recovery Message to WhatsApp by BotSailor/

Send Automated WhatsApp message from Google Sheets by Using BotSailor

How to Integrate Shopify for WhatsApp Automation in BotSailor

How to Send Shopify Order Notification to WhatsApp with BotSailor

How to Verify a Shopify Cash on Delivery Order by WhatsApp with BotSailor

How to Recover Shopify Abandoned Cart by WhatsApp with BotSailor

How to Send Shopify Order Notifications to WhatsApp by BotSailor Webhook Workflow

 

 

Kamrul Hasan

Kamrul Hasan

FAQ

Frequently Asked Questions

Find answers to common questions about this topic

To reduce fake orders, lower return costs, and confirm buyer intent before shipping.

More control over data mapping, postbacks, and order tagging than the default automation method.

A postback triggers a Callback API that updates the Shopify order (e.g., adds a tag).

Product list (line_items via formatter)

Total price

Confirm & Cancel quick replies

Yes. Create a test COD order in Shopify and capture the webhook response in BotSailor.