SMS for E-commerce & D2C: Fewer fake orders, fewer "where is my parcel" calls.

Confirm cash-on-delivery orders with an OTP before you ship, and keep buyers posted from checkout to doorstep.

A courier checking his phone while a customer holds the parcels he delivered

Why it matters

How SMS helps online stores and D2C brands

For an online store, SMS does two jobs. It proves a buyer is real before you spend money shipping to them, and it answers "where is my order?" before the buyer has to ask. Both cut costs: a verified cash-on-delivery order is less likely to come back undelivered, and a timely shipping update is one fewer call or email for your support team.

The messages sent most

  • COD order verification
  • Order, shipping and delivery updates
  • Abandoned cart reminders
  • Sale and launch announcements

Use cases

Where online stores and D2C brands use DiOTP

Cash-on-delivery confirmation

COD orders are the easiest to fake and the most expensive to lose. Send an OTP to the number on the order at checkout and confirm the order only when the buyer types it back. Orders placed with a wrong number, or someone else's, never reach your warehouse, so you stop paying shipping both ways on parcels nobody accepts.

Login and guest checkout by phone

Many Indian shoppers would rather type a code than remember a password. An OTP login lets them sign in or check out with one code, and DiOTP's resend cooldown and per-number caps stop bots from using your login form to send thousands of messages at your cost.

Order and shipping updates

Order placed, packed, shipped, out for delivery, delivered. Each update sent at the right moment reduces the number of buyers who call to ask. These are service messages on your own DLT templates, sent from a six-letter header with your store's name.

Delivery codes, returns and refunds

Give the buyer a code to share with the courier, confirm a return pickup, or tell them a refund has been processed. Each message closes a loop that would otherwise become a support ticket.

Sales and cart reminders

Sale announcements, new arrivals and reminders about items left in a cart are promotional messages. They use a numeric header, are not delivered to numbers on DND for that category, and can only be sent in the daytime window TRAI allows.

Examples

What your customers receive

Example messages, each sent on a DLT-registered template under your own sender name.

Template examples to adapt

Written the way DLT expects: fixed text, with {#var#} wherever a name, amount, date, code or link changes. Replace ABC with your brand before you register them.

MessageCategoryTemplate
COD confirmationService{#var#} is your code to confirm order {#var#} of Rs {#var#} at ABC Store. Do not share it with anyone.
Order shippedServiceYour ABC Store order {#var#} has been shipped and should reach you by {#var#}. Track it at {#var#}
Out for deliveryServiceYour ABC Store order {#var#} is out for delivery today. Share code {#var#} with the delivery partner.
Refund processedServiceYour refund of Rs {#var#} for ABC Store order {#var#} has been processed and will reach your account in {#var#} working days.
Weekend salePromotionalABC Store weekend sale: up to {#var#} off on {#var#}. Shop now at {#var#}

Links and phone numbers inside a template must also be whitelisted on DLT. How DLT registration works.

OTP for ecommerce: login, checkout and COD

OTP for ecommerce does three jobs. It lets shoppers sign in with their phone instead of a password, it confirms the number on an account before the first order, and it checks cash-on-delivery orders so parcels are not sent to wrong or fake numbers. Each one is the same two API calls: send a code, verify what the shopper typed.

OTP login for website and app

An OTP login for website or app replaces the password box with a mobile number and a six-digit code. Your server calls DiOTP to send the code and to verify it, then signs the shopper in. Codes expire after five minutes and allow five attempts, and resend limits stop a bot from texting the same number over and over.

OTP login for WooCommerce and Shopify

On WooCommerce, an OTP login for WooCommerce is a small piece of PHP in a plugin you control, calling the DiOTP API with WordPress's own functions. OTP login for Shopify works differently, because Shopify controls its login screen: most stores verify phones on orders instead, and Shopify Plus stores can sign customers in from their own site. Our WordPress and WooCommerce OTP guide covers both, with code.

Setup

How to set it up

  1. 1

    Create a DiOTP account. You get API keys and free test credits straight away, and can send test codes to your own number.

  2. 2

    Add COD and login verification with two API calls: send a code, then verify what the buyer typed. Your developer can follow the API docs, or our team can help.

  3. 3

    Go live on DiOTP's shared, pre-approved OTP template the same day, so verification works while your own DLT registration is in progress.

  4. 4

    Register your business, a six-letter header (your sender name) and your message templates on DLT. Our DLT registration service can do this with you.

  5. 5

    Talk to us to set up alerts and reminders on your approved templates; we agree volumes and pricing with you before anything is sent.

SMS for online stores and D2C brands: questions

It removes one common cause: orders placed with a wrong number or someone else's number. If the buyer cannot receive the code and type it back, the order is not confirmed. It does not stop a genuine buyer from refusing a parcel, so use it alongside your other COD checks.

Start building your customer messaging with DiOTP

Free test credits on sign-up, API keys in a minute, and a team that picks up the phone.