02/09/2026
If your SMS composer shows a single cost number from the Preview API response, you are probably under-quoting.
SMSGatewayCenter's Preview Message API returns encoding, length, parts, cost per part, and, with a DLT entity ID, which registered template your body matches. It does not multiply by parts. It does not multiply by recipients. It does not know what your variables will expand to.
Full engineering guide:
https://www.smsgatewaycenter.com/blog/message-preview-cost-estimation-before-sending/
What the guide covers:
• SMSApi/preview returns msgType, length, parts, amount, and optional dltTemplateId
• Campaign total = parts x amount x recipients. Those multiplications are yours
• Preview rendered bodies with realistic values, not { #} placeholders
• Reverse DLT template lookup: body plus entity ID tells you which template matched
• Local counter for keystrokes, server preview as authority on debounce
• Never call preview from the browser. Proxy through your server
• Warn users when encoding flips from text to unicode. That is where cost jumps
Built for SaaS teams, campaign composers, and India DLT-compliant bulk SMS platforms.