Book a Call

Tally Integration: How to Connect TallyPrime with Your Website, CRM or ERP

How to integrate TallyPrime with a website, CRM or ERP. XML and JSON options, sync design, duplicate prevention, security and a testing checklist.

By DivyGfx TeamPublished 5 min read
Key takeaways
  • TallyPrime accepts XML over HTTP, with JSON supported from Release 7.0.
  • Decide which system owns each record before writing code.
  • Never expose Tally's port to the internet.
  • Give every voucher a unique external reference so retries do not create duplicates.
On this page
  1. What can be connected
  2. How TallyPrime talks to other software
  3. The architecture we recommend
  4. Decide who owns what
  5. Mapping: where time really goes
  6. Prevent duplicates
  7. Handle errors like an accountant
  8. Test before going live
  9. Things that commonly go wrong
  10. Integrate Tally or replace it?
  11. Common questions

Many Indian businesses want to keep Tally. The accountant knows it, the auditor trusts it, and it handles statutory work. The problem is everything around it: orders in a website, leads in a CRM, stock in a spreadsheet, and someone typing it all again into Tally.

Integration removes the typing and keeps Tally.

What can be connected

  • Sales invoices from a website, store, POS or ERP
  • Receipts from a payment gateway
  • Purchase vouchers from procurement
  • Customers, suppliers and stock items
  • Outstanding balances shown in a CRM or customer portal
  • Stock and ledger reports for dashboards

How TallyPrime talks to other software

MethodBest forNotes
XML over HTTPLive, two-way syncTally acts as a server on a port, 9000 by default
JSON over HTTPNewer integrationsSupported from TallyPrime Release 7.0
File importPeriodic batchesSimple and easy to audit
ODBCReading for reportsGood for Excel and BI
TDL customisationNew fields or behaviourNeeds a Tally developer

TallyPrime must be running with the company loaded for HTTP requests to work. Switching an XML integration to JSON is more than changing a header, since the request structure is different. The TallyPrime integration documentation lists current formats.

The architecture we recommend

  1. Your application saves the order and adds a job to a queue.
  2. A small connector runs on the same network as Tally.
  3. The connector makes an outgoing, encrypted connection to your server and collects jobs.
  4. It posts to Tally on the local network.
  5. It sends back success, or the exact error.
  6. Failed jobs are retried or shown to a person.

Because the connector calls out, you do not need to open any port in the office firewall. If the PC is off or the internet is down, jobs simply wait.

Do not expose port 9000 to the internet. Tally does not authenticate those requests by itself, so access control must be enforced before a request reaches it.

Decide who owns what

Most sync problems are really ownership problems. Agree on one master for each record:

RecordUsual ownerDirection
Ledgers and groupsTallyTally → app
CustomersCRM or ERPApp → Tally
Items and pricesERP or storeApp → Tally
InvoicesERP or storeApp → Tally
ReceiptsGateway or TallyOne way only
OutstandingTallyTally → app

Two-way editing of the same record sounds convenient and creates conflicts nobody can explain. Avoid it unless there is a strong reason.

Mapping: where time really goes

  • Ledger names must match exactly, including spaces
  • Units such as Nos, Pcs, Kg and compound units
  • GST: rates, HSN or SAC, place of supply, rounding
  • Voucher types and numbering, including several series
  • Godowns and cost centres
  • Discounts and freight as ledgers or item lines
  • Round-off to the paisa

Ask your accountant to create one perfect sample of each voucher by hand. Export it. That file is your specification.

Prevent duplicates

Networks fail at the worst moment: Tally saves the voucher, the reply is lost, your software tries again, and now there are two invoices. To prevent it:

  1. Create a unique reference for each transaction in your system.
  2. Store it in the voucher, in a reference field or a custom field.
  3. Before retrying, check whether it already exists.
  4. Record the Tally identifier returned after success.
  5. Make cancellation an explicit action, never a silent delete.

Handle errors like an accountant

Every failed entry needs a visible reason that a non-technical person can act on: "Ledger 'Shah Traders' not found", not "Error 400". Build one screen with pending, failed and completed entries and a retry button. Then add a daily reconciliation: count and total for each voucher type in both systems. If they differ, show which ones.

Test before going live

  • Interstate and intrastate GST
  • Several tax rates in one invoice
  • Discounts, freight and round-off
  • Returns and credit notes
  • Cancelled invoices
  • Part payments and advances
  • A new customer with special characters in the name
  • A duplicate submission
  • Tally closed, PC restarted, internet down
  • Financial year change

Use a copy of the company data. Never test on live books, and take a backup before the first live run.

Things that commonly go wrong

  • Someone renames a ledger in Tally
  • The PC sleeps or installs updates
  • The wrong company is loaded
  • A period is locked
  • TallyPrime is upgraded without testing
  • TDL customisations conflict

Alerts for "no successful sync in the last hour" catch most of these before the accountant does.

Integrate Tally or replace it?

Keep Tally when accounting works well and only the data entry hurts. Consider an ERP when you need production, multi-location stock, approvals and field apps. Often the answer is both: an ERP runs operations and Tally keeps the books. Compare in custom ERP vs Tally and Zoho.

Common questions

Can Tally be integrated with a website?

Yes. Orders and payments can be sent to TallyPrime through XML or JSON over HTTP, usually with a small connector on the office network.

Does TallyPrime have a REST API?

It accepts HTTP requests, using XML and, from Release 7.0, JSON. It is not a typical cloud REST API: TallyPrime must be running, and you must add authentication in front.

How much does Tally integration cost?

DivyGfx API integrations start from $599 or ₹44,999 per integration. Voucher types, tax rules and two-way sync affect the final quote.

Is it safe to connect Tally to the internet?

Do not expose Tally's port directly. Use a local connector that makes outgoing encrypted connections and validates every request.

Written by the DivyGfx Team

We design and build software, websites, apps and AI tools from Surat, India. Prices shown are our published starting points, and every project gets a fixed written quote. Spotted something out of date? Tell us and we will correct it.

Read next

All articles

New guides, by email

We write when we have something useful to share. Unsubscribe at any time.