- 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
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
| Method | Best for | Notes |
|---|---|---|
| XML over HTTP | Live, two-way sync | Tally acts as a server on a port, 9000 by default |
| JSON over HTTP | Newer integrations | Supported from TallyPrime Release 7.0 |
| File import | Periodic batches | Simple and easy to audit |
| ODBC | Reading for reports | Good for Excel and BI |
| TDL customisation | New fields or behaviour | Needs 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
- Your application saves the order and adds a job to a queue.
- A small connector runs on the same network as Tally.
- The connector makes an outgoing, encrypted connection to your server and collects jobs.
- It posts to Tally on the local network.
- It sends back success, or the exact error.
- 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:
| Record | Usual owner | Direction |
|---|---|---|
| Ledgers and groups | Tally | Tally → app |
| Customers | CRM or ERP | App → Tally |
| Items and prices | ERP or store | App → Tally |
| Invoices | ERP or store | App → Tally |
| Receipts | Gateway or Tally | One way only |
| Outstanding | Tally | Tally → 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:
- Create a unique reference for each transaction in your system.
- Store it in the voucher, in a reference field or a custom field.
- Before retrying, check whether it already exists.
- Record the Tally identifier returned after success.
- 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.
