Skip to main content

Why Integrate SMS with Marg ERP?

Marg ERP is one of India's most widely-used billing and inventory solutions, especially across pharma, FMCG, retail, and distribution. Adding SMS integration turns Marg into a customer communication hub — the moment a sale bill is created, customers receive an SMS with bill details. When a payment is recorded, an instant acknowledgement goes out. Outstanding reminders can be sent in bulk to all parties with overdue balances.

Marg's built-in SMS Setup makes integration straightforward — you just configure the SpringEdge API URL once and choose which events should trigger SMS. This guide walks through the entire setup in 7 steps.

Sale Bill SMS

Auto-SMS customers with bill number, amount, and items the moment a sale bill is saved in Marg

Ledger Balance SMS

Send ledger balance, statement, or outstanding details to any party from the ledger view

Payment Receipts

Acknowledge customer payments via SMS the moment a receipt is entered in Marg

Admin Copies

Send a copy of every customer SMS to designated admin or sales manager mobile numbers

Before You Begin

Make sure you have these ready:

  • A working installation of Marg ERP software with admin access
  • A SpringEdge SMS account with API access — sign up free if you don't have one
  • Your SpringEdge API key from your dashboard
  • A DLT-approved sender ID (6-character header, e.g. SEDEMO)
  • A DLT-approved SMS template matching the message content for each event you want to automate
  • A working internet connection on the system running Marg ERP

Step-by-Step Marg ERP SMS Setup with SpringEdge

Complete configuration walkthrough — from SMS Setup to sending your first sale bill SMS.

Step 1: Open SMS Setup in Marg ERP

Launch Marg ERP and open your company. Navigate to:

  • MastersMarg SetupsControl Room
  • In the Control Room window, select SMS Setup
  • The SMS Setup window will open with all configuration options

Step 2: Choose SMS Sending Method

In the field "SMS through M-Marg Server / N-Net / X-Not Required", select the option that fits your setup:

Option Meaning When to Use
NSend SMS through the internetChoose this for SpringEdge integration
MSend through Marg's own serverOnly if running Marg's own SMS server file
XNo SMS requiredDisables SMS sending

Select "N" to send SMS via the SpringEdge API over the internet.

Step 3: Enter the SpringEdge SMS API String

When Marg prompts "Want to change SMS string?", select Yes. In the SMS String window, paste this SpringEdge API URL:

https://web.springedge.com/web/api/send/?apikey=YOUR_API_KEY&sender=YOUR_SENDER_ID&to={1}&message={2}

Replace the placeholders:

Placeholder Replace With
YOUR_API_KEYYour SpringEdge API key from the dashboard (e.g. ahgkd5fhk6ahdkrd5yfbhck6)
YOUR_SENDER_IDYour DLT-approved 6-character sender ID (e.g. SEDEMO)
{1}Leave as-is — Marg auto-fills the customer's mobile number
{2}Leave as-is — Marg auto-fills the SMS message text

Compatibility note: If {1} and {2} placeholders don't work in your Marg version, try <<1>> for the mobile parameter and <<2>> for the message parameter.

Step 4: Configure Additional SMS Settings

In the SMS Setup window, configure the remaining options to control how and when SMS is sent:

Setting What to Enter
Also SMS to Administration onMobile number(s) of admin/manager who should receive SMS copies
Default Message in All SMSYour company name or last approved text per your DLT template (e.g. "— SEDEMO")
Mobile No. Length10 (default for Indian mobile numbers)
Convert SMS in universal hex codeSelect "X" if not required (only needed for Unicode/regional language SMS)
Send SMS onChoose New / Modify / Both depending on whether you want SMS on bill creation, modification, or both
Send SMS withConfigure whether to include party name, balance details, billing types (Default, Retail, Wholesale, Both)
Receipts/Payments SMSSet preferences for sending SMS on receipt and payment entries

Once configured, press ESC twice and click Yes to save changes.

Step 5: Add Mobile Numbers in Ledger

For SMS to be sent, every customer ledger must have a mobile number on record:

  • Go to MastersLedger MasterModify Ledger
  • Select the customer ledger
  • Press Enter on the SMS & E-mail id field
  • Enter the customer's 10-digit mobile number
  • Save the ledger

Repeat for each ledger that should receive SMS notifications. You can also bulk-update mobile numbers using Marg's import utilities.

Step 6: Send Sale Bill Details via SMS

Now test the integration with a sale bill:

  • Go to TransactionsSaleBill
  • Select the customer ledger and items
  • Enter quantity, finalize, and save the bill
  • When Marg prompts to send SMS, click Yes
  • The customer receives the sale bill SMS within 3-5 seconds

Verify delivery status from your SpringEdge dashboard under SMS Logs.

Step 7: Send Ledger Balance SMS

For sending balance reminders or statements via SMS:

  • Go to BooksAll Ledgers
  • Select the ledger and press Enter
  • In the Ledger Display window, click the SMS icon
  • Choose the SMS type:
    • Ledger Balance — current outstanding balance
    • Balance with Statement — balance + recent transactions
    • Balance with Outstanding — balance + overdue invoices
    • Custom Text — type your own message (must match DLT template)
  • Send the SMS to the ledger's registered mobile number

Sample API Call Sent by Marg ERP

When you save a sale bill in Marg ERP and choose to send SMS, Marg replaces the placeholders in the configured API URL with real values and calls SpringEdge. Here's what that request looks like:

GET https://web.springedge.com/web/api/send/
  ?apikey=ahgkd5fhk6ahdkrd5yfbhck6
  &sender=SEDEMO
  &to=919876543210
  &message=Dear+Rahul%2C+sale+bill+SB-2026-0142+for+Rs.18%2C500+is+generated.+Outstanding%3A+Rs.32%2C100.+-+SEDEMO

SpringEdge validates the DLT template, selects the fastest delivery route across Indian telecom operators, and returns a message ID. Delivery status is tracked in real time on your SpringEdge dashboard.

What You Can Automate from Marg ERP

Popular SMS workflows businesses run from Marg ERP.

Sale Bill SMS

Auto-SMS customers with bill number, items, total amount, and outstanding balance the moment a sale bill is saved.

Receipt Acknowledgement

Send instant SMS confirmation when a customer payment is recorded against an invoice in Marg.

Outstanding Reminders

Bulk-send overdue balance reminders to all ledgers with outstanding amounts. Reduces collection cycle time.

Ledger Statement SMS

Send detailed ledger statements with recent transactions to customers on request.

Purchase Order SMS

Notify suppliers via SMS when a purchase order is created and confirmed in Marg.

Cheque Bounce Alerts

Internal alerts to finance team via SMS when a receipt entry is reversed due to cheque dishonour.

Stock Alerts

Internal SMS to owners and purchase managers when stock crosses minimum reorder thresholds.

Festive Greetings

Run greeting campaigns to all party ledgers using stored mobile numbers (use promotional DLT template).

Troubleshooting Common Issues

If SMS isn't going out from Marg ERP, check these.

SMS Not Sending

Verify SMS Setup is set to "N" (Net), not "M" or "X". Check that the API URL is exactly as provided with the correct API key and sender ID.

SMS Blocked by Operator

The most common cause — mismatch between your Marg SMS template and DLT-approved template. Compare them character-by-character including punctuation and spacing.

{1} / {2} Not Working

Some Marg versions use different placeholder syntax. If {1} and {2} don't work, replace with <<1>> and <<2>> in the API URL.

Internet Issue

Marg needs outbound HTTPS access to web.springedge.com. Check the system firewall if API calls are timing out.

No Mobile in Ledger

If a ledger has no mobile number in the SMS & E-mail field, no SMS will be sent. Update ledger master with mobile numbers.

Sender ID Not Approved

The sender ID in your API URL must be DLT-approved on your telecom DLT account. Unregistered headers are blocked at telecom operator level.

Frequently Asked Questions

Common questions about Marg ERP SMS integration.

  • How do I send SMS from Marg ERP?

    Open Marg ERP, go to Masters → Marg Setups → Control Room → SMS Setup. Set the SMS sending method to "N" (Net), then paste the SpringEdge SMS API URL with your API key and sender ID. Configure when SMS should trigger (sale bill, payment, etc.), add mobile numbers to ledgers, and save. From there, every triggered event will auto-send SMS via SpringEdge.

  • No coding required. Marg ERP has a built-in SMS Setup module where you paste the SpringEdge API URL and configure parameters through a simple form. The whole setup typically takes 10-15 minutes once you have your SpringEdge API key and DLT-approved sender ID ready.

  • SMS Setup is available in all modern Marg ERP versions including MargBooks. The exact menu path may vary slightly between versions, but the process — choose method "N", paste API URL, configure parameters — is consistent across all versions.

  • Yes. Marg supports bulk SMS to selected ledgers — you can filter by group, region, balance criteria, and send SMS to all matching ledgers in one go. Use a promotional DLT template for marketing campaigns or a transactional template for outstanding reminders.

  • The most common cause is a mismatch between the SMS template configured in Marg and your DLT-approved template registered on the telecom DLT portal. Compare them character-by-character — including punctuation, spaces, variables, and brand suffix. Even a single extra space or comma will cause the operator to block the SMS.

  • Yes. SpringEdge supports Unicode SMS in Hindi, Tamil, Telugu, Bengali, Marathi, Gujarati, and other Indian languages. In Marg's SMS Setup, set the "Convert SMS in universal hex code" option appropriately, and ensure your DLT-approved template is registered in the same language. Note that Unicode SMS uses 70 characters per credit instead of 160 for English.

  • Marg shows basic send/fail status, but detailed delivery reports are available on your SpringEdge dashboard. Log in and open SMS Logs — you'll see message ID, recipient, delivered/failed status, carrier, and timestamp for every SMS sent from Marg ERP.

  • SpringEdge uses pay-as-you-go pricing starting at ₹0.14–₹0.16 per SMS depending on volume. No monthly subscription, no setup fees, no minimum commitments. You only pay for the messages sent from Marg. Visit our pricing page for detailed rates and volume discounts.