OTP without DLT for ecommerce stores
An online store can use OTP without DLT for checkout login, account sign-up and checking the buyer's phone number before a cash on delivery order. Order confirmations, shipping updates, delivery codes and sale offers are not login codes, so they need the store's own DLT registration. You can launch with the shared template now and add your own sender ID later with no code changes.
By Vivek Singh, Founder, Diorbit TechnologiesUpdated
Key facts
- Price
- ₹0.26 to ₹0.40 per OTP plus 18% GST, from a prepaid wallet. No setup fee, no monthly fee.
- Setup time
- Same day. Test on your own number in minutes, then go live.
- Sender name
- DIORBT, DiOTP's registered header (shown with an operator prefix, for example VM-DIORBT).
- Message
- "123456 is your login OTP for Your Company. Do not share it with anyone. Powered by Diorbit Technologies!" The wording is fixed; your company name fills the name slot.
- Compliance
- Sent under DiOTP's own registered DLT entity, header and pre-approved OTP template. You register nothing.
- Limits per number
- 1 code every 30 seconds, 3 per hour, 10 per day.
- Later
- Move to your own sender ID when your DLT registration is ready, with no code changes.
Why do online stores in India ask for an OTP?
An Indian store usually meets the OTP at the busiest point of the funnel: checkout. Buyers expect to type a mobile number, get a code and carry on, without a password. The same code doubles as a check on cash on delivery orders, because a COD order placed with a wrong or fake number is a parcel that travels to a door and comes back.
Waiting weeks for your own DLT entity, header and templates should not hold up a store launch. DiOTP sends the code under its own registered DLT entity, the DIORBT header and a pre-approved OTP template, with your store's name in the message. The broader ecommerce OTP page covers marketplaces and larger retailers; this page is about getting a store's login and COD checks live without your own registration.
Which store messages fit the shared login OTP template?
The template reads "is your login OTP for" your store name, and the words are fixed. So, plainly:
| Store step | Shared template? | Why |
|---|---|---|
| Checkout login with a mobile number | Yes | It is a login |
| New account sign-up | Yes | Sign-up verification |
| Guest checkout: verify the phone before placing a COD order | Yes, as a sign-in step | Frame it as "sign in with your number to place the order" |
| A separate "confirm your COD order" code after the order is placed | Better on your own template | "Login OTP" reads oddly here |
| Order placed, packed, shipped, out for delivery | No | Order updates need your own DLT template |
| Doorstep delivery or return pickup code | No | The buyer reads it to a courier; needs your own wording |
| Abandoned cart nudges, sale alerts, coupons | No | Promotional: your own registration and consent |
The rule behind the table: if the buyer is proving they hold the phone so they can sign in or continue, the shared template fits. If the message tells them something about an order, it needs your own template.
How to add OTP login and COD checks to checkout
- At checkout, ask for the mobile number first, before the address form. Returning buyers can then skip retyping their address once signed in.
- From your server, call POST /v1/otp/send with the number. Send an Idempotency-Key header made from the cart ID and the attempt number, so a buyer double-tapping "Send code" does not trigger a second send, while a real resend gets a new key.
- Keep the request_id in the checkout session. Show a code box with autocomplete="one-time-code" so mobile browsers can offer the code from the SMS.
- Call POST /v1/otp/verify with the request_id and the code. On verified true, sign the buyer in and mark the phone as verified on the order.
- Allow cash on delivery only for orders whose phone was verified in this session. Prepaid orders can skip the check if you prefer a shorter checkout.
- Send the order confirmation by email for now, and by SMS once your own DLT template is approved.
A minimal Next.js route for the COD check, kept on the server so the API key never reaches the browser:
Next.js route: verify the buyer's phone before allowing COD
// app/api/checkout/verify-phone/route.ts
const API = 'https://api-diotp.diorbit.com/v1'
const headers = {
Authorization: 'Bearer ' + process.env.DIOTP_API_KEY,
'Content-Type': 'application/json',
}
export async function POST(req: Request) {
const { cartId, requestId, code } = await req.json()
const r = await fetch(API + '/otp/verify', {
method: 'POST',
headers,
body: JSON.stringify({ request_id: requestId, code }),
})
const data = await r.json()
if (r.status === 200 && data.verified) {
await markCartPhoneVerified(cartId) // your store's own function
return Response.json({ cod: true })
}
// 400 invalid_code, 410 expired, 429 too_many_attempts:
// keep prepaid open, hide COD for this cart.
return Response.json({ cod: false, status: r.status }, { status: 200 })
}On WordPress, the WooCommerce OTP guide shows the same flow at registration, OTP login and cash-on-delivery confirmation.
What will the buyer see?
Text message
VM-DIORBT
771240 is your login OTP for Desi Threads Store. Do not share it with anyone. Powered by Diorbit Technologies!
Your store name fills the name slot and can be up to 30 characters, so use the name buyers know from your site, not your legal company name. The sender shows as DIORBT with an operator prefix, not your brand. If you want your brand as the sender, that is the point to move to your own sender ID.
What risks are specific to a store?
Bots on the checkout page
A public "send code" button is a target for SMS pumping, where bots request codes to many numbers to run up your bill. DiOTP caps each number at one code every 30 seconds, three an hour and ten a day, and each API key at 30 sends a minute. Blocked requests are not sent or charged. Add a captcha or a cart check before the send call too; the SMS pumping protection guide lists the usual defences.
Sale days
During a big sale, many buyers check out at once. Plan for the per-key limit of 30 sends a minute, and if you need more, use separate keys for separate storefronts or apps rather than retrying in a loop. A request rejected with 429 api_key_minute_limit was not sent, so it is safe to retry after a pause.
Teaching buyers good habits
The template ends with "Do not share it with anyone." That is right for a login code, and it is exactly why a doorstep delivery code should not reuse it. If your courier asks the buyer for a code, that code should come on your own template that says it is for the delivery, so buyers never learn to read out login codes to strangers.
What does it cost per order?
One verified checkout usually costs one OTP: ₹0.26 to ₹0.40 plus 18% GST, depending on your plan, from a prepaid wallet. No setup or monthly fee, and no extra charge for the shared template. Higher recharges lower the price: ₹3,600 gives 10,285 OTPs at ₹0.35, and ₹50,000 gives 1,92,307 OTPs at ₹0.26. To estimate your own monthly spend from order volume, use the OTP cost calculator.
Questions and answers
Can I verify cash on delivery orders without DLT?
Yes, if the check is a sign-in step: the buyer verifies their mobile number with a login code before placing the order. A separate code that confirms an order after it is placed reads oddly on the login template and is better on your own DLT template.
Can I send order shipped or out for delivery SMS without DLT?
No. Order updates are not OTPs and always need your own DLT entity, header and template. The shared template only covers login, sign-up and phone verification codes.
Can I use the shared template for the delivery handover code?
It is not a good fit. The buyer reads a handover code to a courier, while the shared template says it is a login code and should not be shared with anyone. Register your own delivery code template for this.
Will the SMS show my store name?
Yes, in the message body: your store name, up to 30 characters, fills the name slot. The sender header is DiOTP's DIORBT, shown with an operator prefix.
Does the code autofill on mobile checkout?
On iPhones and in browsers that support autocomplete set to one-time-code, yes, because they read the code from any SMS. The Android SMS Retriever API needs an app hash in the message, which the shared template cannot carry, but the SMS User Consent API works with it.
Do I change my code when I move to my own sender ID?
No. Add your entity ID, header and template ID under Sender IDs in the dashboard and the same send and verify calls continue to work.
