How to use Conversation Cost Deducted Webhook

Imagine running a marketing campaign on WhatsApp. You send 500 promotional templates on Monday. You send another 300 on Wednesday. By Friday, you have no idea how much you have actually spent or whether you are on track with your budget. You log into your DoubleTick wallet and see a number, but you do not know which templates consumed which amounts or when the costs were deducted.

Now imagine a different scenario: Every time a template is delivered to a customer, your accounting system automatically logs the cost. By the end of the week, you have a complete breakdown of spending by campaign, by template type, and by date. You know exactly where your budget went.

That is what the Conversation Cost Deducted Webhook does.


What Is the Conversation Cost Deducted Webhook?

In DoubleTick, every template that gets delivered to a customer has a cost. This cost is automatically deducted from your DoubleTick wallet — a prepaid balance that your business maintains to keep your WhatsApp communication running.

The Conversation Cost Deducted webhook fires at the exact moment this deduction happens — that is, when a template is successfully delivered to the customer's WhatsApp.

The templates that trigger this webhook include:

  • Marketing templates — promotional messages, offers, campaign broadcasts

  • Utility templates — order confirmations, delivery updates, payment reminders

  • Authentication templates — OTPs and verification messages

Every time any of these templates is delivered and a cost is deducted from your wallet, this webhook sends that information to your connected system instantly.

Think of it like a bank SMS alert. Every time money leaves your account, you get a notification with the amount and the reason. This webhook does exactly the same — but for your WhatsApp template spending.


When Does This Webhook Trigger?

This webhook activates when:

  • A template message of any type — Marketing, Utility, or Authentication — is delivered to the customer's WhatsApp

  • The corresponding cost is deducted from your DoubleTick wallet at the point of delivery

If a template is sent but not delivered, no cost is deducted and this webhook does not fire.


Step-by-Step Setup Guide

Step 1: Open Webhooks in DoubleTick

  1. Log in to your DoubleTick account

  2. Go to Settings

  3. Click on Webhooks

Step 2: Create a New Webhook

  1. Click New Webhook

  2. Give it a clear name — for example: Template Cost Tracker

Step 3: Get Your Webhook URL

You need a destination URL — this is where DoubleTick will send the cost data every time a template is delivered.

You can connect it to:

  • An accounting or finance tool like Zoho Books, QuickBooks, or Tally

  • An automation tool like Zapier, Make, or Pabbly

  • A spreadsheet like Google Sheets

  • Your own internal dashboard or backend system

For testing purposes, you can use DoubleTick's Bot Studio to capture and preview the data first:

  1. Open a new tab and go to Bot Studio

  2. Click Create New Bot

  3. Set the trigger to On Webhook

  4. Copy the webhook URL that appears

Step 4: Fill in Webhook Details

  1. Go back to the Webhooks page

  2. Paste the webhook URL

  3. Select your API Number (your WABA/WhatsApp Business number)

  4. Click Continue

Step 5: Choose the Event

  1. Select Conversation Cost Deducted from the event list

  2. Click Create Webhook

Your webhook is now live and tracking every delivery.


How to Test It

  1. Send any template message from your DoubleTick account to a customer number

  2. Once the message is delivered, go to Bot Studio → Capture Response → View Response Data

You will see the webhook data that was triggered at the moment of delivery and cost deduction.


What Data Do You Receive?

When this webhook fires, it sends the following information to your system:

Field
What It Tells You

Template Name

Which template was delivered

Template Type

Whether it was Marketing, Utility, or Authentication

Customer Phone Number

Who the template was delivered to

Cost Deducted

The amount charged for that delivery

Wallet Balance After Deduction

Your remaining wallet balance at that moment

WABA Number

Which WhatsApp Business number was used

Timestamp

The exact date and time of delivery and deduction

This gives you a real-time, transaction-by-transaction record of your WhatsApp spending.


Real-Life Business Use Case

A D2C Brand Managing WhatsApp Spending Across Multiple Campaigns

The Situation

A direct-to-consumer skincare brand runs their customer communication entirely through WhatsApp. They send marketing templates for new product launches and seasonal sales, utility templates for order confirmations and delivery updates, and authentication templates for account logins. At any given point, multiple campaigns are running simultaneously and templates are being delivered to thousands of customers every week.

Their marketing team, operations team, and finance team all use the same DoubleTick account, and all of them trigger template sends in the course of their daily work.

The Problem

At the end of every month, the finance team would look at the total wallet deductions in DoubleTick and have no way to split costs by department. The marketing team's campaign spending was mixed in with the operations team's order update messages and the authentication costs from the product team. Budgets were being exceeded without anyone realising it mid-month. There was no way to tell which campaign had consumed the most money, or whether the cost per delivery was consistent across different template types.

The finance head raised a concern: they were spending a significant amount on WhatsApp every month but had zero visibility into where exactly that money was going. There was no audit trail, no department-wise breakdown, and no early warning system when spending crossed a threshold.

How the Conversation Cost Deducted Webhook Solves This

The brand connects this webhook to Google Sheets via Zapier.

Every time a template is delivered and a cost is deducted, a new row is automatically added to a shared Google Sheet with the template name, template type, cost deducted, remaining wallet balance, and timestamp.

They set up a simple logic in the sheet: Marketing templates are tagged to the marketing budget, Utility templates are tagged to the operations budget, and Authentication templates are tagged to the product budget.

Additionally, they set up a Zapier alert that notifies the finance team on WhatsApp itself whenever the wallet balance drops below a defined threshold — so the team always has time to top up before communication stops.

What Changes for the Team

The marketing team can now see, in real time, the exact cost of every campaign as deliveries happen. The finance team has a live dashboard showing spending by template type and by day. The operations team can account for their order update costs separately. Everyone has visibility, and no one is surprised at the end of the month.

The Result

  • Complete cost transparency across all three teams

  • Monthly WhatsApp spend is now broken down by department without any manual effort

  • The finance team catches budget overruns mid-month and can take action in time

  • The brand can calculate the exact cost per campaign and compare return on spend across different marketing efforts

  • Wallet top-ups happen proactively, so business communication is never interrupted


Summary

The Conversation Cost Deducted Webhook turns your WhatsApp spending from a black box into a fully transparent, trackable record. Every template delivery, every deduction, every rupee — captured automatically and sent to whatever system your business already uses.

If your team sends templates regularly, this webhook is one of the most practical tools you can activate. Set it up once, and you will never have to manually reconcile your WhatsApp costs again.

Last updated