RTO, return to origin, is the parcel that goes out to a customer and comes back undelivered. On a cash-on-delivery (COD) order the customer has paid nothing before the parcel reaches the door, so nothing stops an order placed on impulse, by mistake or with a wrong address from making that round trip. This guide is for Indian online stores and their operations teams, and it sets out one specific defence: confirming each COD order before it is packed, first with a WhatsApp message the customer answers with one tap, then with an AI phone call in the customer’s language when there is no reply. It covers the exact flow, message wording written to Meta’s utility rules, the Meta, TRAI and DLT rules, the triggers and write-backs on Shopify and WooCommerce, the follow-up when a delivery fails, and how to measure the result on your own orders. Platform and regulator details were checked on their own pages on 6 December 2026.
The short version: when a COD order arrives, send a WhatsApp utility template with the order number, items, amount and address, and two buttons: Confirm order and Cancel order. If there is no reply within the time you set, an AI agent calls and asks the same question. An address change can come in as a reply or during the call. Ship confirmed orders, pass cancellations and address changes to your team, and decide in advance what happens to orders nobody answers for. Keep every confirmation free of offers, because an offer turns a WhatsApp utility message into marketing and a service call into a promotional one. Then compare RTOs per 100 COD orders placed, with and without confirmation, over the same weeks.
What RTO and NDR Mean in E-Commerce
Delhivery’s help centre defines Return to Origin (RTO) as a sale order that could not be delivered and was returned to the seller’s warehouse, and it names two causes: the seller cancelling the order while it is in transit, or the customer rejecting it when it is out for delivery. An NDR, a non-delivery report, is the courier’s record of an unsuccessful delivery attempt. Delhivery shows NDRs, together with failed pickups, under Exceptions & NDR, where the seller can act on the ones marked actionable, and tracks RTOs separately under Canceled & RTO.
An RTO costs the store freight twice, to the customer and back, and the stock is out of sale while it travels. Delhivery’s own pages describe cancelling an order the customer no longer wants, before it ships, as saving forward and return shipping costs. On a COD order the moment of acceptance is also the moment of payment, which makes saying no at the door easy. That is why the checks below concentrate on COD orders, though a prepaid parcel can also come back if it cannot be delivered.
Why Confirm COD Orders Before Dispatch
The mechanism is simple. A customer who cancels on WhatsApp before dispatch is not shipped, so that order cannot become an RTO, and the store pays for a message instead of freight both ways. A customer who corrects an address or phone number before the label is printed gives the courier something it can deliver to. And a customer nobody can reach before dispatch is better found out about before the parcel leaves than after the first failed attempt.
Confirmation has limits. It does not stop a customer who confirms and then refuses at the door, and it cannot fix a delivery that fails for the courier’s own reasons; the NDR follow-up further down is for those. It also adds time between the order and dispatch, so the wait before the call should be short and the packing cut-off explicit.
The COD Confirmation Flow, Step by Step
- The order arrives. Your store sends each new order to a small connector: Shopify’s orders/create webhook, WooCommerce’s order.created, or BigCommerce’s store/order/created, leaving out incomplete orders. The connector keeps only COD orders that have a phone number and marks them as waiting, so your team can see them: on Shopify with a tag such as cod-pending, and on WooCommerce, whose orders have no tags, with the order status and a private note.
- WhatsApp first, to customers who have opted in. Within minutes, a utility template with the order number, items, amount to pay and delivery address, and two quick-reply buttons: Confirm order and Cancel order. The wording is in the next section.
- The customer taps. The tap reaches the connector through Meta’s webhook as a message from the customer, carrying the ID of the template message it answers, so it is matched to the right order. Confirm replaces cod-pending with a tag such as cod-confirmed (on Shopify, tagsRemove then tagsAdd); Cancel replaces it with cod-cancel-requested for your team. On WooCommerce the outcome is written as a private note, and only a confirmed order changes status, from On hold back to Processing, as described under Connecting It to Your Store. A customer who needs a different address can type it as a reply, which opens a short conversation that collects it for your team to approve, or give it on the AI call.
- No reply, or not on WhatsApp: the AI call. If there is no tap within the wait you set, or Meta reports that the message was not delivered, the AI agent calls within your calling hours, reads the same details in the customer’s language and asks the same question. The answer is written back in the same way.
- Nobody answers. After the call attempts you set, cod-pending is replaced with cod-no-response (on Shopify, tagsRemove then tagsAdd) and your own rule decides: ship it, hold it for a day, or cancel it. Decide this before you start, and measure this group on its own, because the trade-off sits here.
- Everything is recorded. Each order gets its outcome as a tag on Shopify, and on every platform a line in the order note, with the channel, the time and what the customer said, so the packing team and the support team see the same thing.
- Your team makes the decisions that cannot be undone. Cancellations, address changes and anyone who asks for a person go to your team. The agent does not cancel orders itself; Shopify’s own documentation warns that cancelling an order is irreversible.
Each step sits under a different rule, depending on the channel and on what the message says:
| Step | Channel | Category | What the rules ask |
|---|---|---|---|
| COD confirmation | WhatsApp template | Utility, if Meta agrees | Opt-in first; order details only, no offers; ₹0.115 per delivered message in India (Meta, as listed on 6 December 2026) |
| Reply after a button tap | WhatsApp, free-form | Service | Only inside the 24-hour customer service window; the first 1,000 a month on each number are free |
| Confirmation call | AI voice | Transactional or service call, by TRAI’s definitions | Declared to your telecom provider as automated calls; nothing promotional; numbers settled with your carrier |
| Order details by SMS | SMS | Transactional (-T) or service (-S) header | Header and content template registered on the DLT platform |
| “Pay online and save” offer | WhatsApp or call | Marketing; promotional call | Opt-in on WhatsApp, ideally a separate one for offers, as Meta suggests; 140-series numbers and DND for calls |
| Failed-delivery follow-up (NDR) | WhatsApp and AI voice | Utility, if Meta agrees; service call | Information about delivering goods the customer ordered; nothing promotional |
The WhatsApp Message: Wording That Fits Meta’s Utility Rules
Meta’s guidelines put a template in the utility category only if it is non-promotional and either specific to or requested by the customer, such as a message about their order, or essential to them, such as a safety alert. For order messages, Meta lists confirming, updating or cancelling an order using that order’s own details, and rules out promoting, recommending, upselling or cross-selling products, offers and attempts at renewal. Its own example is a short note that an order number is confirmed. A COD confirmation that sticks to the order fits that description:
Template name: cod_order_confirmation
Category: Utility Language: English
Body:
Hi {{customer_name}}, thank you for your order {{order_number}} from [Your store name].
Items: {{items}}
To pay on delivery: ₹{{amount}}
Delivery address: {{address}}
Please confirm your order so we can pack it. If anything is wrong, reply to this message or choose Cancel order.
Buttons (quick reply):
Confirm order
Cancel orderPoints that matter when you submit it:
- Write your store’s name into the fixed text, so the customer knows who is asking before they tap anything.
- Named variables such as {{order_number}} must be lowercase letters and underscores, and Meta asks for an example value for each one when you submit the template. The body can be up to 1,024 characters.
- A utility template can carry up to ten buttons, and a quick-reply label can be up to 25 characters.
- For Hindi, Gujarati or another language Meta supports, submit the same template name again in that language: Meta allows the same name for different languages. Send each customer the version in the language they use.
- Keep the header and footer to order facts as well. Promotion anywhere in the template counts.
The Same Message, Written as Marketing
Hi {{customer_name}}, your order {{order_number}} is confirmed!
Pay online now and get 5% off, or add {{product}} for just ₹{{price}}.
Use code {{code}} before midnight.This version confirms the same order but adds an offer and a cross-sell. Meta treats templates that mix utility and marketing content, such as an order update with a promotion, as marketing. Submitted as utility, it would be approved as marketing, at ₹0.8631 a message in India instead of ₹0.115, and, since Meta suggests collecting opt-in separately for each category of message, it is better sent only to customers who agreed to receive offers. Meta also checks templates after approval. A utility template whose messages turn out to be marketing is moved to marketing, and a business that keeps misclassifying can have its utility volume capped, with messages over the cap rejected, or every utility template switched to marketing for 7 days (30 days for repeat violations). For a store that confirms every COD order on WhatsApp, that is a risk not worth taking for one line of promotion.
The AI Call When There Is No Reply
The call is the fallback, not the first step: a tap takes the customer a second, while a call interrupts them. It goes out after the wait you set, only on the days and at the hours you allow, and only to customers who did not answer on WhatsApp or could not be reached there. What the call does:
- Opens with the store’s name and the reason for the call and, if the call is recorded, says so at the start.
- Reads the order number, the items, the amount to pay on delivery and the address, then asks whether to send the order.
- Accepts three answers: send it, cancel it, or change the address or phone number. Anything else, such as a complaint or a question about a product, goes to your team with a note.
- Speaks the customer’s language. A custom agent we build speaks English and ten Indian languages (Hindi, Bengali, Gujarati, Kannada, Malayalam, Marathi, Odia, Punjabi, Tamil and Telugu) and switches automatically to the customer’s language. On Gatefone, our call center platform, English, Hindi, Marathi and Gujarati switch automatically, and the agent asks before switching to Bengali, Tamil, Telugu, Kannada, Malayalam or Punjabi.
- Offers nothing: no discount for paying online and no other product. Under TRAI’s rules, promotional content mixed into a commercial call makes it a promotional call, with different numbers and DND rules (see below).
- Writes back the outcome, a short summary and the time of the call, just as the WhatsApp step does.
If the customer asks on the call to pay online, that is their request, and the agent can send a payment link by WhatsApp or SMS, as described in the section on COD to prepaid below.
The Rules: Meta, TRAI and DLT
This is a summary of what Meta and TRAI say, read on 6 December 2026. It is not legal advice; check your own setup with your telecom provider and, where needed, a lawyer.
WhatsApp (Meta)
- Opt-in comes first, for order messages as well as marketing. Meta requires it before a business messages anyone. It can be general rather than specific to WhatsApp, but it must say clearly that the person is agreeing to receive messages, and name your business. Meta lists a website, SMS, a phone call through an IVR flow, and paper among the ways to collect it, and suggests asking by message category, such as order updates, so customers expect what they receive.
- Shopify’s checkout can offer a WhatsApp marketing opt-in, and its SMS marketing checkbox cannot be preselected. Customers who do not tick a marketing box still need to have opted in some other way before you send them order messages on WhatsApp.
- Templates can be sent at any time. Free-form messages can be sent only inside the 24-hour customer service window, which opens and resets each time the customer messages you. A button tap arrives as a message from the customer, so the reply after a tap can be free-form.
- Meta charges only for delivered messages. At its India rates from 1 October 2026 (as listed on 6 December 2026), a utility message costs ₹0.115 and a marketing message ₹0.8631; free-form service replies cost ₹0.115 after the first 1,000 a month on each number. Taxes may be added on your invoice. Our WhatsApp Business API pricing guide covers the rest.
- WhatsApp checks the category you choose against the template’s content, and has the final say.
Calls (TRAI)
- TRAI’s regulations do not name COD confirmation calls. Two definitions come closest. A transactional call responds to a transaction the customer started, within thirty minutes of it, and TRAI’s examples include transaction alerts and confirmations. A service call gives a customer information about a product or service, including information about delivering goods, and needs no Explicit Consent. TRAI’s note to its 2025 amendment says that messages sent after the thirty minutes, such as a delivery notification, count as service. Both kinds must be free of promotion.
- Promotion changes the category. TRAI treats a commercial call with promotional content mixed in as a promotional call. Promotional calls go on the 140 series, and do not reach customers who have blocked promotional calls from your sector on DND unless they have given you explicit digital consent. TRAI’s BLOCK PROMO option blocks promotional communication only, and lets service and transactional calls through.
- Under TRAI’s September 2026 amendment, calls made by software, including artificial voices, must be declared to your telecom provider in advance with the numbers they will use; a call made without that declaration is treated as unsolicited commercial communication.
- Since 27 November 2026, e-commerce companies registered in India with an annual turnover of ₹500 crore or more in at least one of the preceding three financial years are eligible for 1601-series numbers for service and transactional calls. TRAI’s announcement of its 2025 amendment says it restricts senders from using ordinary 10-digit numbers for telemarketing, so that all commercial communications come from designated headers or number series; for a store outside the 1601 eligibility, the number for each call flow is settled with your carrier first.
- Our guide to TRAI’s rules for AI calls covers registration, penalties and consent in more detail.
SMS (DLT)
- Every commercial SMS goes out from a header and a content template registered with a telecom provider on the DLT platform, and a message that fails the check against its registered template is not delivered.
- The header’s suffix tells the customer what kind of message it is: -T for transactional, -S for service, -P for promotional and -G for government.
- A promotional message must carry a way to opt out, and promotional content mixed into a transactional or service message makes the whole message promotional.
- SMS suits customers who are not on WhatsApp: it can carry the order details and a note that a call may follow.
One rule runs through all three channels: keep the confirmation about the order. An offer added to it turns a WhatsApp utility message into marketing, a transactional or service SMS into a promotional one, and a service call into a promotional call.
COD to Prepaid: Useful, but Usually Marketing
Asking COD customers to pay online takes the cash-at-the-door decision away, so it is a natural next step after confirmation. The rules treat it differently from the confirmation itself:
- A discount for paying online is an offer. Meta keeps offers out of utility templates, so that message is marketing on WhatsApp, and a call that makes the offer is a promotional call under TRAI.
- Without a discount, a message urging the customer to switch can still read as persuasive, and Meta’s utility criteria exclude persuasive intent. Meta decides each template’s category.
- A customer who asks to pay online is different: Meta’s utility criteria include messages the customer asked for, and the payment link answers that request.
The mechanics with Razorpay Payment Links: the connector creates a link for the full amount, or for part of it as an advance, and puts your order number in its reference_id, which Razorpay requires to be unique for each link, so a replacement link needs a new value. Razorpay can send the link by SMS or email itself; with its notification switched off, you send it, for example in a WhatsApp template. When Razorpay’s payment_link.paid webhook arrives, the order is tagged and the payment reference noted. The amount to collect on delivery must then be changed in your shipping app or with your courier before the parcel leaves.
NDR Calling: The Second Line of Defence
Confirmation acts before dispatch. The NDR follow-up acts after a failed delivery attempt, before the parcel is sent back:
- The trigger is the courier’s report: its tracking webhook, Shiprocket’s list of shipments in NDR, or, where your shipping app records delivery events in Shopify, a fulfillment event with the status ATTEMPTED_DELIVERY.
- The agent contacts the customer by WhatsApp or a call, the same day where your calling hours allow, and asks what should happen: deliver again on a day they choose, to a corrected address or phone number, or not at all.
- The answer goes back to the courier. Shiprocket’s NDR action API accepts a re-attempt with a new phone number, address and preferred date. It also accepts a fake-attempt dispute with an audio URL as proof, such as the call recording, where the customer was told at the start that the call is recorded. Where a courier has no NDR API, the answer goes to your team to pass on.
- A return to origin is left for your team to decide, and a note goes on the store order.
Check what your courier already does before building this. Delhivery’s SmartNDR, a paid service for sellers who switch it on, places an AI call to the customer when a case is still unresolved after 90 minutes, and does not return shipments automatically, except when the customer confirms cancellation through an OTP-verified response; otherwise it recommends a return and the seller decides. Delhivery’s RTO Predictor scores COD orders for the risk of return before they ship, and lets the seller call the customer through a masked number, mark the order verified, cancel it, or ask for part or all of the payment online; it is listed at ₹2.49 plus GST for each COD order it scores as low or high risk (as listed on 6 December 2026). If your courier already calls customers about a parcel, your own agent should not call them about the same parcel too. A risk score is also a way to narrow confirmation to the orders flagged as risky; measure that choice in the same way as the rest.
Connecting It to Your Store
Shopify
- Build it as a custom app in your Dev Dashboard, on the GraphQL Admin API. Shopify treats customers’ names, phone numbers and addresses as protected data, and its help centre says a store needs the Grow plan or higher to use custom apps that read them. A COD confirmation needs the phone number, so on the Basic plan, confirm what the app can read before anything else. In Shopify’s checkout settings, the shipping address phone number is optional by default on new stores; set it to Required.
- Trigger: the orders/create webhook. To pick out COD orders, read the order’s paymentGatewayNames. Shopify’s own example of a name there is “Cash on Delivery (COD)”, but check the exact name your store’s COD method uses on a test order.
- On the Grow, Advanced and Plus plans, Shopify Flow can start the flow instead, with its Order created trigger and the Send HTTP request action, which the Basic plan does not have.
- Write-back: tagsAdd adds a tag and keeps the order’s existing tags, and tagsRemove takes one off, so cod-pending can be swapped for the outcome; the tags input of orderUpdate, by contrast, replaces the whole list. orderUpdate can set the note and the shipping address. The note can already hold the customer’s own instructions, so read it and add your line rather than overwrite it.
- To stop packing before confirmation, the app can put the order’s fulfillment order on hold with fulfillmentOrderHold and release it with fulfillmentOrderReleaseHold once the customer confirms; both need a fulfillment-orders write scope. Shopify Flow has triggers for a hold being placed and released, so the rest of your workflow can follow.
- Leave cancellation to your team: Shopify warns that cancelling an order is irreversible.
WooCommerce
- Trigger: the order.created webhook. It carries an HMAC-SHA256 signature of the payload in the X-WC-Webhook-Signature header, which the connector checks before acting. Answer every delivery with a 2xx status: WooCommerce disables a webhook after more than five consecutive failed deliveries.
- COD orders carry the payment method ID cod, from WooCommerce’s built-in Cash on delivery gateway, which by default puts them in Processing (On hold if the order includes a downloadable item).
- Write-back: a private order note through the REST API, with customer_note set to false so the customer is not notified. If your team packs from the Processing list, move unconfirmed orders to On hold and back to Processing once the customer confirms. Moving an order from On hold back to Processing sends WooCommerce’s Processing order email to the customer again, so decide whether to keep that email before you use holds.
- API keys come from WooCommerce > Settings > Advanced > REST API.
Other Platforms
BigCommerce’s store/order/created also fires for incomplete and failed-payment orders, so the connector filters those out. Adobe Commerce 2.4.4 or higher sends events through Adobe I/O Events; Magento Open Source needs a small module or a scheduled check of the REST API. A custom or headless store needs a signed webhook from its backend, or an order API.
One test before going live, on any platform: place a COD test order and check whether your shipping app or aggregator picks up an order that is on hold or not yet confirmed. If it does, the hold or the tag is not enough on its own, and your team has to ship only from the confirmed list.
How to Measure It on Your Own Orders
No outside benchmark can tell you what confirmation will do for your store; your own orders can. Run it as a pilot on COD orders only, and compare like with like:
- Split the orders rather than comparing months. For the pilot weeks, confirm every other COD order, for example those with even order numbers, and ship the rest as you do today. Both groups then share the same season, sales, products and couriers. A before-and-after comparison is simpler, but it mixes in festivals, sale days and courier changes.
- Fix the rules before you start: the wait before the call, the number of call attempts, the calling hours, the packing cut-off, and what happens to orders nobody answers for.
- Count by order date, and wait. An order’s RTO is known only once the parcel is back, which can be well after the order was placed, so close each week’s figures only when every shipment from that week has been delivered or is back at your warehouse.
- Count per 100 COD orders placed, not only per 100 shipped. Cancelling orders before dispatch lowers the RTO rate of shipped orders almost by definition. What matters is whether delivered, paid orders per 100 placed hold up while RTOs per 100 placed fall.
| Measure | How to count it | Where the figure comes from |
|---|---|---|
| COD orders placed | In each group, by order date | Store admin, filtered by payment method |
| Reached | Orders where the customer tapped a button, replied on WhatsApp, or answered the call | WhatsApp webhooks and call outcomes |
| Confirmed, cancelled, address changed, no response | Each as a share of orders placed | The outcome tags on each order (on WooCommerce, the order notes) |
| Shipped | Orders handed to the courier | Shipping app or courier panel |
| Delivered and paid | COD orders delivered, per 100 placed | Courier delivery report and COD remittance |
| RTO | Orders returned to origin, per 100 placed and per 100 shipped | The courier’s RTO report |
| Time to dispatch | Hours from order to handover, in both groups | Store and shipping app timestamps |
| Cost | Freight both ways on each RTO; messages; call minutes | Courier invoices, Meta billing, your calling platform |
The sum is then yours to make: RTOs avoided per 100 COD orders, times what your courier charges you for an RTO, set against the messages and call minutes per 100 orders and any genuine buyers lost to the extra step. Look at the no-response group on its own as well: how many of those orders, shipped without confirmation, came back. That tells you whether to ship, hold or cancel such orders after the pilot.
Read the calls too. Listen to a sample of recordings each week, check that the agent read the right amount and address, and note why customers cancelled. Reasons such as a wrong size or an order placed twice may point to fixes on the product page or at checkout.
How Samcom Technologies Can Help
We have nothing live for an online store that we can show you yet, and we will not quote figures we have not measured. What we can show today is our own platforms, Gatefone for AI voice calls and Pingly for WhatsApp, and a live WhatsApp build for a dairy in Ahmedabad that changes customers’ deliveries and sends payment links. It has been live since 17 November 2026; in its first two weeks, 53 messages needed action, and from them 22 delivery changes were made automatically, each with a confirmation to the customer. It follows the pattern this guide recommends: change things automatically only when it is safe, ask the customer with buttons when unsure, and send everything else to a person.
For a store, we build the connector, the WhatsApp templates, the AI call and the write-back described above, starting with a pilot on one flow. On Gatefone, Voice AI calls are ₹3 a minute and each agent seat is ₹499 a month, both plus GST, and call charges stay with your own telecom carrier. A custom agent, once it moves to production, runs on AI provider accounts in your company’s name, which you pay directly, with a one-time build fee and a monthly maintenance fee to us. We charge for building and maintaining the store connector, quoted once we agree what it should do. Our e-commerce voice and WhatsApp page sets out every flow we build, from abandoned checkouts to returns.
Frequently Asked Questions
What does RTO mean in e-commerce?
Return to origin: an order that could not be delivered and went back to the seller’s warehouse. Delhivery names two causes, the seller cancelling while the parcel is in transit and the customer rejecting it when it is out for delivery, and describes cancelling an unwanted order before shipping as saving forward and return shipping costs.
How do I confirm COD orders on WhatsApp?
Connect your store’s new-order webhook to the WhatsApp Business API, and send customers who have opted in a utility template with the order number, items, amount and address, and Confirm order and Cancel order buttons. Each tap comes back to your system as a message tied to that order, and the outcome is written back to the order. A customer who needs a different address can reply with it or give it on the call. Customers who do not reply get an AI call in their language.
Is a COD confirmation message utility or marketing on WhatsApp?
Utility, if it only confirms the order with that order’s details. Add a discount or another product and Meta treats it as marketing; a push to pay online can also read as persuasive, which a utility template must not be. Meta checks every template’s category and has the final say.
Can an AI voice agent call customers to confirm COD orders in India?
Yes, within TRAI’s rules. The call must promote nothing, calls made by software must be declared to your telecom provider in advance with the numbers they use, and the number series is settled with your carrier; e-commerce companies registered in India with an annual turnover of ₹500 crore or more in at least one of the preceding three financial years are eligible for 1601-series numbers for service and transactional calls.
Will COD confirmation reduce RTO?
It removes one cause by design: an order cancelled before dispatch is never shipped, so it cannot come back. How much that changes your RTO depends on your products, customers and couriers, which is why we start with a pilot and measure RTOs per 100 COD orders placed against a comparison group from the same weeks.
What is NDR calling?
Contacting a customer after a courier reports a failed delivery attempt, to find out whether to deliver again, on which day and at which address, or to return the parcel. Where the courier has an NDR API, such as Shiprocket’s, the answer can go straight back to it as a re-attempt.
RTO has many causes, and this guide covers one specific step against it: a WhatsApp utility message with two buttons as soon as a COD order arrives, an AI call in the customer’s language when there is no reply, and an outcome written back to the order before anyone packs it. Keep every message and call about the order, with offers sent separately and only where you have consent, and judge it on your own figures: RTOs and delivered orders per 100 COD orders placed, against a comparison group. If you want help planning it for your store, talk to our team.