Tally API: How TallyPrime API Integration Works with Other Software

Updated Tally Experts

Tally API integration with other business software

Yes, Tally has an API. TallyPrime can run as a small HTTP server on your network. Other software sends it XML requests to create ledgers and vouchers or to read reports, and TallyPrime replies with the result. That is what people mean by the Tally API, and it is how CRM, e-commerce, POS and custom apps post entries into TallyPrime without anyone typing them again.

This guide explains how the TallyPrime API works, the other ways to connect, what to map, how to keep it secure, and what decides the cost of an integration.

What the Tally API is

There is no separate API product to buy. The interface is built into TallyPrime. You switch TallyPrime to act as a server (F1 Help > Settings > Connectivity), set a port (9000 by default), and it starts accepting requests from other programs on the network. XML is the long-standing format. Read data through ODBC, and add custom logic with TDL, Tally's own development language.

Most modern apps speak JSON over REST. So in most projects a small middleware sits between the app and TallyPrime. It translates the data, checks it and keeps a log.

How TallyPrime API integration works

Flow of a Tally API request: another app has a new record, middleware maps it to XML, sends an HTTP request to TallyPrime, TallyPrime creates the voucher, returns a response, and middleware logs it.
TallyPrime must be running and reachable for requests to post.Source: Tally Experts · Click the image to open its original size.

Need this built for your business? Our Tally API integration services cover design, build, testing and support. For a wider view of which systems people connect, see Tally Integration with Web Applications (ERP, CRM, Billing, Ecom Etc.).

Tally API methods compared

Table comparing XML over HTTP, ODBC, TDL customization, middleware and Excel import for TallyPrime integration: direction and when each fits.
Many projects combine two: XML for posting and ODBC for reports.Source: Tally Experts · Click the image to open its original size.

One-way vs two-way flows

One-way means data goes in one direction, usually from the other app into TallyPrime. It is simpler to build and easier to control, so start there.

Two-way also sends data back, such as stock levels, outstanding amounts or payment status. It works well, but every field needs an owner. Decide which system is the source for customers, items, prices and stock. Otherwise one system overwrites the other.

Masters, vouchers and JSON/XML mapping

  • Masters first. Parties, items, units and GST ledgers must exist in TallyPrime, or the integration must create them using fixed naming rules.
  • Then vouchers. Each document maps to a voucher type. An order becomes a Sales Order, an invoice becomes a Sales voucher, a refund becomes a Credit Note.
  • Field by field. Party name, GSTIN, item, quantity, rate, discount, HSN/SAC, tax ledger, date, number and the source reference each need one clear target in the XML.

Validation and security

  • Hold back records with a missing GSTIN, unknown item or wrong date instead of posting them.
  • Store the source record ID with each voucher so a retry does not create a duplicate.
  • Keep TallyPrime's port open only to the middleware, not to the internet.
  • Keep API keys for the other app in the middleware, never in TallyPrime or in code shared with staff.
  • Give the integration its own TallyPrime user with only the rights it needs.

Example: web orders into TallyPrime

Say a distributor takes 150 orders a day on its website and staff type each one into TallyPrime. With an integration, each paid order goes to the middleware. It matches the customer to a party ledger, or creates one with GSTIN and state. It maps each product to a stock item, picks CGST and SGST or IGST from the delivery state, and posts a Sales voucher with the order number as reference. Failed orders, such as an unknown product code, go to an error list for the accounts team to fix. Typing drops to the exceptions only.

Testing and rollout

Six rollout steps for a Tally API integration: scope one flow, map and clean masters, build with logging, test on a copy, go live small, monitor and extend.
Always test on a copy of the company, never on live books.Source: Tally Experts · Click the image to open its original size.

What decides scope and cost

  • How many apps connect, and how many records move each day
  • One-way or two-way, and how often data syncs
  • Whether the other app has an API, and how well it is documented
  • Custom fields, approvals and GST cases you need handled
  • Where TallyPrime runs: one PC, a server or the cloud

Next, see Top 10 Applications You Can Integrate with Tally Using APIs for examples by type of software.

Conclusion

The Tally API is TallyPrime's built-in XML-over-HTTP interface, with ODBC for reading and TDL for custom logic. Pick one flow that costs you the most typing. Agree who owns each field, map masters before vouchers, log every request, and test on a copy before going live.

To get your apps posting into TallyPrime, talk to us about Tally API integration or message us on .

FAQs on the Tally API

1. Does Tally have an API?

Yes. TallyPrime can act as an HTTP server and accept XML requests from other software to create or read masters, vouchers and reports. ODBC and TDL are also available for reading data and adding custom logic.

2. Does TallyPrime support JSON?

Many integrations use a middleware that converts the other app's JSON into the XML TallyPrime accepts. Check the JSON options in your TallyPrime release before planning a direct connection.

3. Which port does the Tally API use?

Port 9000 by default. You can change it in TallyPrime under F1 (Help) > Settings > Connectivity.

4. Does TallyPrime need to be running for the API to work?

Yes. TallyPrime must be open, with the company loaded, and reachable from the system sending the requests.

5. Is Tally API integration suitable for small businesses?

Yes, if a single flow such as web orders or POS sales causes a lot of manual entry. Start with that one flow and add others later.

Continue Reading

Join Our Tally Newsletter

Latest Updates, Features, Modules Info on Tally Customization

Original screenshot

Shown at its original resolution. Scroll within this panel to inspect the software labels on a small screen. Example values are not settings to copy.

Want our TallyPrime tips in Google first? Add us as a preferred source.

Add Tally Experts as a preferred source on Google

Join Our Tally Newsletter

Latest Updates, Features, Modules Info on Tally Customization

Get a personal consultation.

Call us today at