💬 WhatsApp API @ Best Rate | Zero Setup Fee → 99.9% Uptime OTP Delivery — Try FREE Demo! 🏆 10,000+ Registered Businesses — 2,000+ Enterprise Clients Served 🚀 API Integration in Under 5 Minutes 🏅 Verified Business Badge with RCS Messaging 💬 WhatsApp API @ Best Rate | Zero Setup Fee → 99.9% Uptime OTP Delivery — Try FREE Demo! 🏆 10,000+ Registered Businesses — 2,000+ Enterprise Clients Served 🚀 API Integration in Under 5 Minutes 🏅 Verified Business Badge with RCS Messaging
Talk to Sales: India 1800 102 1822
OTP

Why OTP Delivery Fails During Banking Transactions - And How to Fix It

SMSGatewayHub 7 views
Quick answer

OTP delivery fails during banking transactions mostly for five reasons: the message does not match its DLT template or sender ID, the PE-TM chain or a URL in the text is not registered, the API request itself is rejected (wrong key, missing parameter, rate limit, low balance), a telecom route is congested or the handset is unreachable, or the OTP expires before it arrives and the retry logic makes things worse. The fix is to treat OTP as a pipeline with three separate checkpoints: submission accepted (the API returns success and a message ID), delivery confirmed (the operator's delivery report says delivered) and OTP verified (your server matched the code). Measure each one, and you can see exactly where an OTP is lost.

Banking OTP verification on a smartphone with a digital security shield and secure messaging infrastructure

Key takeaways

  • Accepted is not delivered, and delivered is not verified. Track submission, delivery and verification as three different numbers.
  • Most "OTP not received" complaints in India start at DLT: template mismatch, unapproved header, missing PE-TM chain or a URL that is not whitelisted. These are rejected silently from the user's point of view.
  • Retries need rules: a new code on every resend, a cooldown, a cap per number and an idempotency key, so a slow OTP never turns into three different codes.
  • Failover is for the platform, not the user: switch routes or channels on clear failure signals, and never send two live codes for one transaction.
  • Security matters as much as speed: hash stored codes, bind them to the transaction, limit attempts and watch for SMS pumping.

How OTP SMS delivery works

A one-time password looks simple to the customer: tap "Pay", get a 6-digit code, type it in. Behind that tap, at least five independent systems have to work within a few seconds:

  1. The bank or fintech backend generates the code, stores a hashed copy with an expiry and asks an SMS gateway to send it.
  2. The SMS gateway (for example the SMSGatewayHub OTP SMS API) authenticates the request, checks balance and parameters, and hands the message to an operator route.
  3. The DLT platform of the telecom operator scrubs the message: is the entity registered, is the header (sender ID) approved, does the text match a registered template, is the delivery chain declared?
  4. The operator's SMS centre (SMSC) routes the message across networks to the subscriber's home network and tries to reach the handset.
  5. The handset receives the SMS, shows it (or auto-fills it), and the operator sends a delivery report back up the chain.

A failure at any one of these steps looks the same to the customer: "I did not get the OTP". That is why guessing does not work. You need to know which step failed.

The OTP delivery lifecycle, from application to handset

Technical flowchart of the OTP SMS delivery lifecycle: bank backend, SMS API, DLT scrubbing, operator SMSC, handset, delivery report and server-side verification, with the failure point at each step

StageWhat happensSignal you getTypical failure
1. GenerateBackend creates a random code, hashes it, sets expiry, binds it to the transactionInternal logWeak randomness, code reused, no transaction binding
2. SubmitBackend calls the SMS API over HTTPSAPI response: success code + message IDWrong API key, missing parameter, IP restriction, low balance, timeout
3. Scrub (DLT)Operator checks entity, header, template, consent category and PE-TM chainRejection shows in the delivery report, not in the API responseTemplate mismatch, unapproved header, chain not declared, URL not whitelisted
4. RouteSMSC forwards to the subscriber's networkPending / submitted statusCongestion, route outage, ported-number lookup issues
5. DeliverNetwork reaches the handsetDelivery report: delivered, failed or expiredPhone off, out of coverage, inbox full, SIM not active, roaming issues
6. VerifyUser enters the code; your server compares it with the stored hashVerification success or failureCode expired, wrong code, user switched apps, too many attempts

Submission, delivery confirmation and successful verification are different things

This is the single most useful idea in OTP troubleshooting, and the most common mistake in dashboards.

CheckpointWhat it provesWhat it does not proveMetric to track
Message submissionThe gateway accepted your request (with SMSGatewayHub, ErrorCode "000" plus a JobId and MessageId)That the operator accepted the text, or that the phone received itSubmission success rate
Delivery confirmationThe operator reported the SMS as delivered to the handsetThat the user saw it, read it in time or typed it correctlyDelivery rate and time to delivery report
Successful OTP verificationThe right person entered the right code before expiry, on your serverNothing more is needed: this is the business outcomeOTP conversion rate (verified / requested)

A healthy setup shows a high submission rate, a slightly lower delivery rate and a conversion rate below that. If submission is high but delivery is low, look at DLT and routing. If delivery is high but conversion is low, look at expiry time, the message text, auto-read, the app flow and fraud. Never report "OTP success" using only the API response.

DLT template and sender ID mismatches

Under TRAI's Telecom Commercial Communications Customer Preference Regulations, 2018 (TCCCPR), every commercial SMS in India passes through the operators' Distributed Ledger Technology (DLT) platform. For an OTP, the operator checks four things before it lets the message through:

  • Entity (principal entity): the bank or company is registered on DLT, and the entity ID in your request is correct.
  • Header (sender ID): the 6-character header is approved for that entity and for the transactional or service category. A promotional header cannot carry an OTP.
  • Content template: the text matches a registered template character for character, with the variable part only where the template has a variable. A changed word, an extra space, a different line break or a variable value longer than allowed is enough to reject it.
  • Delivery chain: since TRAI's message traceability direction (enforced from December 2024), the chain from principal entity to the telemarketer that delivers the message must be declared on DLT. Messages with an undeclared chain are rejected.

Two more rules catch OTP teams off guard. First, since October 2024 operators block messages that contain a URL, APK link or call-back number that is not whitelisted in the template. A "Not you? Click here" link added to an OTP text can stop every OTP. Second, the template, header and entity ID must all belong to the same entity; a template approved under a group company will not work with another company's header.

⚠
Fix: keep one locked OTP template per use case, generate the text from a single function in code (never by hand), keep links out of OTP texts, and test every template change with a real send before release. Our DLT template checker, DLT template registration guide and DLT delivery issue guide cover the details. New to DLT? Start with DLT registration.

A good OTP template is short, names the purpose and amount, and warns against sharing. For example: {#var#} is your OTP for a payment of Rs {#var#} at {#var#}. Valid for 5 minutes. Do not share it with anyone. - BANKNM. Purpose and amount in the text help the customer spot a fraud attempt.

Telecom congestion and routing issues

Even a perfectly registered OTP can be slow or lost on the network side:

  • Peak-hour congestion: salary days, festive sales, IPO allotments and exam results create sudden spikes. Promotional and transactional traffic share network capacity, and queues build up on individual routes.
  • Route or operator outage: a single SMSC or interconnect problem can delay one operator's subscribers while others are fine. If you look only at an overall delivery rate, you will miss it.
  • Mobile number portability: a number that moved to another operator must be routed to its new network. Lookup or routing errors show up as failures for a small, consistent set of numbers.
  • Subscriber side: phone switched off, no coverage, full inbox, an inactive or recycled SIM, or international roaming where domestic routes cannot reach the user.

The fix is visibility and routing choice: break delivery rate and delivery time down by operator and circle, alert when one operator falls behind, and use a provider that routes across several operator connections. SMSGatewayHub uses multi-operator routing with automatic retry and load balancing across operator routes; OTP traffic goes on a priority transactional route that reaches DND numbers 24x7.

API failures and rate limits

Some OTPs never leave your system. These failures are the easiest to fix because the API tells you exactly what went wrong, as long as your code reads the response instead of assuming success.

ProblemHow it shows upFix
Wrong or rotated API keySMSGatewayHub error 007Load the key from a secret store; alert on auth errors immediately
Missing or empty parameterErrors 001, 003, 004, 023, 025Validate the request before sending; URL-encode the text
Server IP not whitelistedError 011Add every outbound IP (including new cloud NAT IPs) in the panel
Header or template problemErrors 015, 024Check the header, template ID and entity ID belong together on DLT
Low balanceError 021Monitor balance with the balance API and set an alert threshold
Invalid number formatError 013Normalise to 91 plus 10 digits before sending
Timeouts and network errorsNo response or HTTP errorShort timeout, one controlled retry with the same idempotency key, then fail over
Your own rate limitsUsers blocked, or no limit at allPer-number and per-IP limits that stop abuse without blocking genuine retries

The full list is on our SMS API error codes page. Treat every code other than success as a failure that needs action, log it with the transaction ID, and never show the raw error to the customer.

How to interpret delivery reports

A delivery report (DLR) is the operator's answer to "did the handset get it?". It arrives after the API response, often a few seconds later and sometimes much later. With SMSGatewayHub you can watch reports live in the panel (live delivery reports) or pull them by JobId from the delivery report API described in the developer API documentation.

Status familyMeaningWhat to do
DeliveredThe handset network confirmed receiptIf the user still says "no OTP", check the number they entered, SMS filters on the phone and whether they waited for the right sender
Pending / submittedAccepted by the network, no final answer yetDo not resend at once. Wait for the cooldown, then offer a resend or another channel
Failed / undeliveredRejected by DLT or the network, or the number is invalid or inactiveRead the reason. DLT reasons need a template or header fix; number reasons need the user to correct the number
ExpiredThe network kept trying until the validity period ran outUsually phone off or out of coverage. Offer voice OTP or another factor
Rejected (DND / blocked)Sent on the wrong category or blocked by preferenceOTPs must go on a transactional or service route with a transactional header

Two habits make DLRs useful: store the MessageId against your transaction ID so you can join them later, and measure the time from submission to the delivery report per operator. That number, not the API response time, is what the customer feels.

OTP expiry and secure retry mechanisms

Retries are where good OTP systems and bad ones differ. A careless "Resend" button can send three codes, confuse the user, invalidate the code they are typing, and double your SMS bill. Use these rules:

  1. Expiry: a short, fixed validity (commonly 3 to 10 minutes for payment OTPs), stated in the SMS text.
  2. Cooldown: disable "Resend" for 30 to 60 seconds after each send, with a visible timer.
  3. New code on resend: generate a fresh code and invalidate the old one. Never resend the same code from a log.
  4. Caps: limit sends per number per hour and per day, and verification attempts per code (for example five).
  5. Idempotency: give every send request a unique key derived from the transaction and attempt number. If your API call times out and you retry, the same key means "this is the same OTP", not a new one.
  6. Escalate, do not repeat: after the second failed delivery, offer a different channel (voice OTP, WhatsApp authentication or in-app approval) instead of a third SMS.

Our guide to secure server-side verify and resend has working code for this flow.

Dedicated banking routes

Banks, NBFCs and payment companies should not send OTPs on the same path as marketing traffic. In practice, "dedicated banking route" means a few concrete things:

  • Transactional or service category: an OTP must use a transactional header and an OTP template so it reaches DND numbers at any hour.
  • Priority OTP route: OTP traffic is queued separately from bulk traffic, so a large campaign cannot delay a payment code. With SMSGatewayHub this is the OTP channel (channel=OTP, route=1).
  • Separate accounts or sub-accounts per use case: payment OTPs, login OTPs and alerts each get their own sender, template set and limits, so one problem does not stop everything.
  • Capacity planning: share your expected peak throughput with the provider in advance, and ask about high-throughput HTTP or SMPP connectivity for large volumes.

See our SMS solutions for banks and NBFCs and the banking SMS compliance guide for the wider picture.

Multi-gateway failover and duplicate prevention

Large banks often keep two SMS providers. Failover improves resilience, but done badly it sends duplicate OTPs and makes conversion worse. A safe design looks like this:

  • Fail over on clear signals only: an authentication or API error, a timeout, or no delivery report within a set window (for example 15 to 20 seconds for payment OTPs). Do not fail over on a slow-but-pending message unless the window has passed.
  • One live code per transaction: when you fail over, either resend the same code through the second provider within its validity, or issue a new code and invalidate the first. Never let two different valid codes exist for one transaction.
  • Idempotency key across providers: keep one OTP record with the transaction ID, attempt number and provider used, so a late delivery report from provider A does not trigger yet another send.
  • Health-based routing: track delivery rate and delivery time per provider and per operator, and move traffic away from a degrading path automatically, with a manual override.
  • Channel failover: after SMS fails twice, offer voice OTP or WhatsApp authentication rather than a third SMS.

OTP security and fraud prevention

Secure OTP architecture diagram: client app, bank backend OTP service with hashing, rate limits and idempotency, primary and secondary SMS gateways, operator DLT, handset, delivery reports and monitoring

An OTP proves possession of a phone number at a point in time. That is useful, but it is not proof of identity, and attackers target every step. Build these controls in:

  • Generate securely: use a cryptographically secure random generator, 6 digits or more, never a sequence or a timestamp.
  • Store safely: keep only a salted hash of the code, with expiry, attempt count and the transaction it belongs to. Never log the code in plain text, never return it in an API response and never put it in a webhook.
  • Bind to the transaction: a payment OTP must only approve that payment, amount and beneficiary. Include the amount and merchant in the SMS so the customer can spot a mismatch.
  • Stop SMS pumping: fraudsters trigger thousands of OTPs to premium or fake numbers to run up your bill. Use per-number, per-IP and per-device limits, CAPTCHA on unauthenticated forms, and alerts on unusual send volume by prefix or country.
  • Watch for SIM swap and social engineering: treat a recent SIM change, a new device or a new beneficiary as higher risk and step up checks. Every OTP SMS should say "do not share this code".
  • Protect the API key: only your backend calls the SMS API; the key never sits in a mobile app or browser code. Restrict it by IP.
  • Mask in reports: mask OTP digits and numbers in delivery reports and exports used by support teams.

RBI requires two-factor authentication for most digital payments. Its Authentication Mechanisms for Digital Payment Transactions Directions, 2025, in force from 1 April 2026, keep that rule but allow issuers to use authentication factors other than SMS OTP. That makes SMS OTP one factor among several, so a well-run OTP channel with a clean fallback is more important than ever. Check the current RBI direction with your compliance team.

Banking and fintech implementation examples

These examples are illustrative patterns, not descriptions of a specific customer.

Use caseRecommended setupWhat usually goes wrong
Card-not-present paymentOTP with amount and merchant in the text, 5-minute expiry, one resend after 30 seconds, then voice OTPCustomer waits on the payment page while the OTP is queued behind a campaign on the same account
Net banking loginSeparate login template and sender, device binding, step-up on new deviceLogin OTP template edited by marketing, so the text no longer matches DLT
Loan app onboarding (fintech / LSP)OTP for mobile verification with SMS auto-read on Android, strict per-number limitsSMS pumping on the sign-up form, with no CAPTCHA or rate limit
UPI / wallet beneficiary addOTP plus a cooling period for new beneficiaries, alert SMS after additionOTP approved the beneficiary but not bound to it, so a different beneficiary could be swapped in
Insurance or mutual fund e-signOTP bound to the document hash, longer expiry with explicit consent textTemplate contains a document link that is not whitelisted, so every OTP is blocked

OTP failure troubleshooting matrix

SymptomWhere to lookLikely causeFix
API returns an error codeAPI response / your logsKey, parameter, IP, balance, header or template errorFix per error code; alert on non-success responses
API success, DLR failed for every messageDelivery report reasonTemplate mismatch, wrong header, PE-TM chain not declared, URL not whitelistedCompare the text with the DLT template; check chain and header on DLT
API success, DLR failed for some numbersDLR by numberInvalid, inactive or ported numbersValidate numbers at capture; ask the user to confirm the number
Delivered late (beyond expiry)Delivery time by operator and hourCongestion on one route or operator, bulk traffic sharing the pathPriority OTP route, separate account, health-based routing
DLR pending for a long timeDLR timelinePhone off or out of coverage, roamingOffer voice OTP or another factor after the window
Delivered, but user says not receivedNumber entered, phone SMS filtersTypo in number, spam filter, user looking at the wrong senderShow the masked number on screen; use SMS auto-read
Delivered, but verification failsVerification logsCode expired, old code typed after resend, attempt limit hitClear expiry text, invalidate old code, show attempts left
Sudden spike in OTP volumeSends by prefix, IP and deviceSMS pumping or a bot attackRate limits, CAPTCHA, block abusive prefixes, alert finance
Duplicate OTPs receivedSend log by transactionClient retries without idempotency, failover without a shared recordIdempotency key; one OTP record per transaction

For consumer-side causes such as phone settings and network coverage, see OTP SMS not received: common reasons and fixes.

SMSGatewayHub OTP API integration

The SMSGatewayHub OTP SMS API sends an OTP with one HTTPS request from your backend. The same SMS gateway API handles transactional alerts, so one integration covers OTPs and notifications.

curl -G "https://www.smsgatewayhub.com/api/mt/SendSMS" \
  --data-urlencode "APIKey=YOUR_API_KEY" \
  --data-urlencode "senderid=BANKNM" \
  --data-urlencode "channel=OTP" \
  --data-urlencode "DCS=0" \
  --data-urlencode "flashsms=0" \
  --data-urlencode "number=9198XXXXXXXX" \
  --data-urlencode "text=482913 is your OTP for a payment of Rs 2,499 at ABC Store. Valid for 5 minutes. Do not share it with anyone. - BANKNM" \
  --data-urlencode "route=1" \
  --data-urlencode "EntityId=YOUR_DLT_ENTITY_ID" \
  --data-urlencode "dlttemplateid=YOUR_DLT_TEMPLATE_ID"

A successful submission returns ErrorCode "000", a JobId and one MessageId per number. Save them against your transaction ID, then confirm delivery with the delivery report API (GetDelivery with the JobId) or in the panel, and record verification on your own server. Note that success is "000" on SendSMS and "0" on the balance and delivery report APIs.

  • Speed: OTP SMS is delivered in 2-6 seconds in typical conditions, as published on our OTP API page. Actual delivery time depends on the operator, network load and the handset, so design your timeouts and resend timer for slower cases too.
  • Routing: priority transactional OTP route, multi-operator routing with automatic retry and load balancing, DND numbers reachable 24x7.
  • Visibility: live delivery reports in the panel and by API, with report masking options for support teams.
  • Other channels: WhatsApp OTP, voice OTP and missed-call verification for fallback.
  • Pricing: OTP SMS from Rs 0.245 down to Rs 0.185 per SMS depending on volume (plus GST), with 1,000 free credits to test and free DLT help.

Language-specific examples are in our OTP REST API reference.

Frequently asked questions

Why is my OTP accepted by the API but not delivered?

An accepted request only means the gateway took it. The operator's DLT check runs afterwards. Template mismatches, an unapproved header, an undeclared PE-TM chain or a non-whitelisted URL are the most common reasons; the delivery report shows the failure.

What is the difference between OTP delivery and OTP verification?

Delivery means the operator confirmed the SMS reached the handset. Verification means the user entered the correct code on your server before it expired. Track both, because a delivered OTP can still fail verification.

How long should a banking OTP be valid?

Most payment OTPs use a short validity of about 3 to 10 minutes. Keep it short, state it in the SMS, and invalidate the code after one successful use or too many wrong attempts.

How fast is SMSGatewayHub OTP delivery?

OTP SMS is delivered in 2-6 seconds in typical conditions. Delivery time is not guaranteed for every message, because it depends on the operator, network load and the handset.

Should I use two SMS providers for OTP?

For high-volume banking, a second provider improves resilience. Fail over only on clear signals such as errors, timeouts or no delivery report within a set window, and keep one OTP record per transaction so customers never receive two different valid codes.

Can I put a link in an OTP SMS?

Only if the URL is whitelisted in the DLT template; otherwise operators block the message. For OTPs it is safest to send no link at all.

How do I stop OTP SMS pumping fraud?

Limit sends per number, IP and device, add CAPTCHA on public forms, block unusual prefixes or countries, and alert on sudden spikes in OTP volume.

Is SMS OTP still allowed for digital payments in India?

Yes. RBI requires two-factor authentication for most digital payments, and its 2025 authentication directions, in force from 1 April 2026, allow SMS OTP alongside other factors. Confirm the current rules with your compliance team.

Test OTP delivery on a priority route
1,000 free credits, free DLT help and live delivery reports for every OTP.
Create your account
Sources: TRAI Telecom Commercial Communications Customer Preference Regulations, 2018 (TCCCPR) and TRAI directions on message traceability and URL / call-back number whitelisting (2024); Reserve Bank of India, Authentication Mechanisms for Digital Payment Transactions Directions, 2025; SMSGatewayHub OTP SMS API page, developer API documentation (SendSMS, GetDelivery and error codes) and pricing page (December 2026). Diagrams are SMSGatewayHub editorial graphics. Delivery times are typical, not guaranteed. This article is general technical information, not legal or regulatory advice. Last reviewed: 6 December 2026.