e-Invoice API for Tally Prime & ERP 9

Tally TDL add-on for e-Invoice. Generate IRN, fetch signed QR, and cancel within 24h — directly from Tally invoice screens.

Get sandbox keys → View OpenAPI docs Talk to sales

What is the e-Invoice API for Tally Prime & ERP 9?

The WhiteBooks Tally e-Invoice TDL surfaces IRN generation as a native action on Tally Prime invoice screens. Click "Generate IRN" after voucher save and the connector calls WhiteBooks API + writes IRN, signed QR, and signed JSON back to the Tally voucher for printing.

No external dashboard, no separate login — Tally users continue working in Tally and the e-Invoice compliance happens transparently. The TDL also supports bulk IRN for monthly billing runs (multi-voucher selection → bulk generate).

Quick spec

Code examples

curl Node.jsPythonJava
curl -X POST 'https://apisandbox.whitebooks.in/einvoice/api/v1/irn/generate' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ /* payload */ }'
Node.js
const res = await fetch('https://apisandbox.whitebooks.in/einvoice/api/v1/irn/generate', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + accessToken,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(payload),
});
const data = await res.json();
Python
import requests

resp = requests.post(
    'https://apisandbox.whitebooks.in/einvoice/api/v1/irn/generate',
    headers={'Authorization': f'Bearer {access_token}'},
    json=payload,
)
data = resp.json()
Java
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://apisandbox.whitebooks.in/einvoice/api/v1/irn/generate"))
    .header("Authorization", "Bearer " + accessToken)
    .header("Content-Type", "application/json")
    .post(BodyPublishers.ofString(payload))
    .build();
HttpResponse<String> resp = HttpClient.newHttpClient()
    .send(req, BodyHandlers.ofString());

Integrate in 3 steps

  1. Sign up at accounts.whitebooks.in — sandbox credentials issued instantly, no sales gate.
  2. Make your first call against the sandbox base URL using the code example above. Validate against your local model.
  3. Move to production once your tests pass — switch host to https://api.whitebooks.in/einvoice. Same payload, same response shape.

Frequently asked questions

Does this work with Tally ERP 9 too?

Yes — release 6.6+ supported.

How is signed QR printed on the invoice?

TDL fetches the base64 QR from the WhiteBooks response and embeds in the Tally voucher print template.

Is cancellation supported from Tally?

Yes — within 24h of IRN generation, the voucher screen surfaces a "Cancel IRN" action.

How is it priced?

Same as the GST API tier (Starter to Enterprise). One license covers GST + e-Invoice on the same Tally install.

Explore the full e-Invoice API

This is one endpoint inside the WhiteBooks e-Invoice API suite. See the full documentation — every endpoint, every parameter, every error code.

Open the e-Invoice API page →

Related e-Invoice API endpoints

IRN Generation API → IRN Cancellation API → Bulk IRN Generation API (1,000/call) → Signed QR Code Retrieval API →