Architecture

How a request travels from your code or agent to Tally and back.


AutoTally sits between your software and Tally. Your code speaks HTTP/JSON to the AutoTally API. Tally speaks XML on localhost:9000. A signed browser extension next to Tally carries data in both directions, and it always connects out: nothing connects in to your machine.

your server, agent or the AutoTally app
        │  HTTP/JSON
        ▼
AutoTally API (relay.autotally.ai) ── synced copy of your books
        ▲
        │  the extension connects out, and carries Tally XML both ways
        ▼
browser extension ──── Tally (localhost:9000)

The pieces

Piece Where it runs Job
Browser extension Next to Tally Reads and writes Tally on localhost:9000, connects out to the API
AutoTally API AutoTally cloud The one API: auth, company scoping, write guardrails, sync
Codec AutoTally cloud Turns JSON into Tally XML and back, using the open-source TallyConnector
Synced books AutoTally cloud A copy of your masters and vouchers, so reads don't wait on Tally

Reads

Reads are answered from the synced copy of your books, which the extension keeps current. They work when Tally is off, and they never touch the customer's machine.

Three reports are the exception: trial balance, profit and loss, and balance sheet. For the current period they come from a stored statement. For any other period AutoTally asks Tally live through the extension. If that is not possible, you get a 200 with a status and no figures.

fresh=true does not read Tally. It serves the synced copy and asks for a sooner refresh. Read Synced data and freshness.

Writes

A write never goes straight to Tally. The API validates it, and a commit queues it. If the key requires approval, it waits for a person. The extension then picks it up, applies it in Tally and reports what Tally said. The next sync reads the record back, which is what confirms it. Read Write safety for the guardrails along that path.

If the machine is off, a queued write waits. It has no expiry.