EJI Tally Agent
A small Windows program that runs next to TallyPrime. It uploads the companies you connect and keeps them up to date, so the API and Google Sheets can read them while the PC is off.
Before you start
- The PC where TallyPrime runs, on Windows 10 or 11.
- The installer, a pairing code and an API key. During the beta we send all three when you join.
- A pairing code works once and for 30 minutes. Ask for a new one if it has expired.
Turn on Tally's connection
- Open TallyPrime and press F1 (Help) › Settings › Connectivity.
- Set TallyPrime acts as to Both (or Server), and the Port to 9000.
- Accept, then open the companies you want to sync.
This lets programs on the same PC ask Tally for data. Do not open port 9000 to the internet; the agent does not need it, because it only makes outgoing connections.
Install and link
- Run
EJI-Tally-Agent.exe. Nothing needs to be installed alongside it. - Type the pairing code (for example
K7QM-4XPA) and press Link this PC. - The window shows “Linked to your account” and the Tally line turns green with the number of open companies.
- Tick Start with Windows so the agent runs whenever the PC starts.
Connect a company
Select a company in the list and press Connect (or double-click it), then confirm. The first upload starts at once: a year of books with a few thousand vouchers takes seconds to a minute. The status turns to Up to date and Last sync shows the time.
Only connected companies are read and uploaded. A company that is connected but not open in Tally shows Not open in Tally and catches up the next time you open it.
Disconnect
Select the company and press Disconnect. Syncing stops at once. You choose what happens to the copy already uploaded:
- Keep it (default): the API and your sheets keep showing the books as of the last sync. Connect again later and only the changes are sent.
- Also delete this company's data from EJI servers: the copy is deleted and the API stops answering for that company. This cannot be undone; connecting again starts a fresh upload.
Nothing in Tally changes either way. Unlink this PC stops syncing every company from this PC and removes the agent's access to your account; copies already uploaded stay until you delete them.
How syncing works
- Every few minutes (5 by default, change it in the window), while Tally is open, the agent asks Tally what changed since the last sync and uploads only that.
- Every few hours it also compares the full list of vouchers and masters, so deleted and renumbered vouchers are corrected.
- If your books are restored from a backup, the agent notices and uploads the company again from scratch.
- Without internet, uploads wait on the PC and go out in order when the connection is back.
- The agent asks Tally for one thing at a time and keeps each request small, so Tally stays usable while it syncs.
The agent window
- Sync now syncs at once instead of waiting.
- Hide or the window's close button keeps the agent running in the background. Exit stops it.
- Activity shows what happened; the same text is saved in
%LOCALAPPDATA%\EJI Tally Agent\agent.log.
What the agent can and cannot do
- It only asks Tally to export. It never imports, alters or deletes anything in your books.
- It only makes outgoing HTTPS connections to
acc.ejiapi.com. - Its token is stored encrypted for your Windows user on this PC. The token can upload and connect or disconnect companies; it cannot read your books back.
Problems
- “Tally: not reachable on port 9000”: Tally is closed, or its connection is off. See Turn on Tally's connection, then press Check again.
- “This pairing code is not valid”: it was used, mistyped or is older than 30 minutes. Ask for a new one.
- A company is missing from the list: open it in Tally (the list shows open companies) and press Check again.
- “Will retry” with a server message: the internet or our server was unreachable. Uploads wait and are sent automatically.
- “This PC is no longer linked”: the agent's access was removed. Link it again with a new pairing code; connected companies are kept on the server.
Tally and TallyPrime are trademarks of Tally Solutions Pvt. Ltd. EJI API is an independent product and is not affiliated with or endorsed by Tally Solutions.