Skip to main content
← All posts
By Abhay Muttreja, Founder, SolvTreeAI

How to Automate Purchase Bill Entry in India

Automate purchase bill entry for Indian distributors: PDF and WhatsApp bills read, GST fields checked, drafts in TallyPrime or Zoho, and a person posts.

·7 min read
  • accounts
  • india
  • automation

The short answer

Purchase bill entry automation reads supplier bills (PDFs, email attachments, WhatsApp photos), extracts the GST invoice details, checks them against your supplier master and purchase orders, and creates draft purchase vouchers in TallyPrime or bills in Zoho Books. A person reviews the exceptions and posts. It is built for Indian SMEs and distributors, not for enterprise accounts payable suites.

Key points

  • Write what 'correct' means for your bills, including GST particulars, before any model reads a page.
  • If the draft total does not equal the page total, the bill stays in an exception queue.
  • Pick one system of record (usually TallyPrime) and practise a reversal before live posting.
  • Deliberately test freight lines, round-off and footer discounts in week one.

What "done" looks like

  • Inputs: supplier bills in any format, your supplier and item masters, purchase orders or goods receipts if you use them.
  • Outputs: draft purchase entries with ledger, GST split and item lines, plus an exception list.
  • Review: the accounts executive checks exceptions and posts; the accountant reviews before GST returns.

The workflow, step by step

  1. Collect. Bills arrive in a dedicated email inbox or WhatsApp number, or are uploaded by the godown.
  2. Read. Extract supplier name, GSTIN, invoice number and date, place of supply, HSN codes, quantities, rates, taxable value, CGST/SGST or IGST, and totals.
  3. Validate GST fields: GSTIN format and checksum, GSTIN matching the supplier master, state code consistent with place of supply and tax type, tax arithmetic adding up.
  4. Duplicate check: same supplier and invoice number already entered.
  5. Match to the purchase order or goods receipt where you use them: quantity and rate differences flagged.
  6. Draft the purchase voucher in TallyPrime or bill in Zoho Books, mapped to the right ledgers and items.
  7. Exception queue: mismatches, unknown items and low-confidence reads, each with the original image beside it.
  8. Post. The accounts executive reviews and posts. Nothing is posted by the system on its own.

Where this usually sits

TallyPrime or Zoho Books, with or without Zoho CRM. See TallyPrime and Zoho integration and our post on designing an invoice matching exception queue.

Local rules

  • Invoice particulars for a tax invoice are listed in the CGST Rules. The system checks that required fields are present and consistent; it does not invent missing data.
  • E-invoices: suppliers above the notified turnover threshold issue e-invoices with an IRN and QR code. Where present, the IRN is captured.
  • Input tax credit depends on conditions set by GST law, including supplier filing. Reconciliation against GSTR-2B is your accountant's job; clean entries make it easier.

Example (illustrative, not a SolvTree client)

An Indore pharma distributor receives 60 to 80 supplier bills a day as PDFs and WhatsApp photos. Two staff type them into TallyPrime. After the change, bills are read as they arrive, drafts with GST splits are ready for import, and the accounts team works through a list of about ten exceptions a day (unknown batch items, rate differences against PO, one duplicate). Staff time moves from typing to checking.

What this is not

Not an enterprise three-way-match AP platform, and not a GST return filing tool. For the broader distributor picture, see AI automation for wholesale distributors in India.

What "a correct purchase bill" means before a model reads it

Purchase-bill automation is often sold as "we extract the GST invoice and post it." The extraction is the easy, visible part. The definition of correct is the part that saves you from a messy GSTR-2B and a messy set of books.

Before any tool is switched on, write what "correct" means in your firm, for the bills you actually receive. A typical Indian distributor's definition includes: the supplier GSTIN matches the master (and is cancelled or not, when you can check), the invoice number and date, the place of supply, the HSN or SAC where you require it, the taxable value, the tax rates and amounts, the total, and a match to a purchase order or a goods-received note when one exists. The CGST Rules set the particulars a tax invoice should carry; your accountant decides how strict you are about each particular for posting. The automation should apply that decision, not invent a looser one.

Bills arrive as PDFs from email, as photos on WhatsApp, and as paper that someone scans. The first workflow should accept all three, keep the original image or file with the draft voucher, and make it easy for a person to see extraction mistakes (a 6 that was read as an 8, a page that was missing). A confidence score is not a substitute for that view. If the total on the draft does not equal the total on the page, the document stays in an exception queue, which is the same idea as an invoice-matching exception queue: a person resolves it, the system does not "nudge" the numbers to make them add up.

TallyPrime, Zoho Books, and the system of record

Most Indian SMBs we meet want the approved voucher in TallyPrime, because that is the books. Some want it in Zoho Books. A few want a draft in one and a post in the other. Pick the system of record first, and make the other systems follow it. A bill that is posted in two places, or in one today and the other tomorrow, is worse than a slow manual entry.

TallyPrime can receive an approved voucher through its documented integration routes (XML, JSON, ODBC). The integration should post only after a person has approved the draft, and only to mapped ledgers and GST classifications. Unmapped suppliers and items go to the exception queue. If you also use Zoho for the rest of the purchase process (approvals, payments), decide which system owns the voucher and which is a view.

E-invoicing, where the supplier has an IRN, gives you a useful check: the IRN and the invoice particulars can be compared with what you extracted. The GST e-invoice system and the GST portal (including GSTR-2B) are the official sources for that comparison. The automation can present a mismatch; it should not override a government document with a model's guess. Your accountant remains responsible for input-tax treatment and for what goes into a return.

A four-week path that accounts will sign

Week one: collect a sample of real bills (a few dozen, across your usual suppliers and a few messy ones) and run extraction only, with no posting. The accountant marks each draft as accept, edit or reject, and writes why. That sample is your baseline.

Week two: tighten the mapping and the checks that failed in the sample (pack sizes, freight lines, round-off, bills of supply versus tax invoices). Re-run the same sample and a fresh week of live bills, still without posting.

Week three: allow approved posting, for one company and for suppliers that mapped cleanly. Keep messy suppliers in the exception queue. Practise a reversal: if a bill posted wrongly, who reverses it in TallyPrime or Zoho Books, and how is the original file still attached.

Week four: add a daily exception list and a weekly comparison with GSTR-2B, for the bills you posted. If the list is long, you are not ready to add more suppliers; you are ready to improve the map.

At handover, an accounts executive should be able to approve a draft, send one to exception, add a mapped supplier, and stop the posting path, without a developer. If those four actions still depend on us, the workflow is not finished. This is a good first automation for many Indian distributors and manufacturers, because it is frequent, checkable and reversible. It is not a substitute for the accountant's judgement on a difficult bill, and it should not be asked to become one.

Round-off, freight lines and other small fields that break a match

Extraction quality is usually fine on supplier name and invoice total, and weaker on the lines that accountants actually argue about: freight and packing as a separate line, a round-off of a few paise, a discount shown only in a footer, a bill that includes a previous outstanding, or a credit mentioned in a note. Your week-one sample should deliberately include these, and your "correct" definition should say what to do with each (a separate ledger, a round-off account, a rejection until the supplier sends a clean invoice).

If you leave those cases to "the model will figure it out," they will land in GSTR-2B mismatches and in a growing exception queue that nobody wants to sit with. A short, written treatment for each small field, approved by the accountant, is a better first-month job than a more aggressive posting rule.

Next step

Write what a correct bill means in your firm, run a few dozen real bills (including messy ones) as extraction only, and have the accountant mark accept, edit or reject. Allow approved posting in week three, for clean suppliers only, and practise a reversal. We implement around TallyPrime or Zoho Books as the system of record you choose. See designing an invoice matching exception queue, our AI automation agency page, or book a call.

Frequently asked questions

Can it post bills without a person?
By default, no. It creates drafts and an exception list; a person posts. Some clients later allow automatic posting for narrow cases, such as recurring bills from the same supplier that match the PO exactly. That is a decision you make after seeing reliable results.
What if the supplier's GSTIN on the bill is wrong?
The bill is flagged, not posted. We check the GSTIN's format and checksum and compare it with your supplier master. A mismatch usually means a wrong supplier record or a bill from a different branch, and needs a person to decide.
TallyPrime or Zoho Books: which works better?
Pick the system that is already your books of account, and make the other follow it. For most Indian SMBs we meet, that is TallyPrime; for some it is Zoho Books. A bill posted in both, or in one today and the other tomorrow, is worse than a slower manual entry. We implement approved posting to the system you name, through its documented integration route, and we leave the other system as a view if you still need it.
How are duplicate bills handled?
Every bill is checked for the same supplier and invoice number already in your books or in the queue. Duplicates are blocked with a link to the earlier entry. Suppliers re-sending the same bill on WhatsApp and email is the most common case.
Can it read handwritten or poor-quality bills?
Printed bills are read reliably; handwritten and faded bills less so. Low-confidence fields are highlighted next to the original image so the reviewer checks them. If a supplier's bills are consistently poor, the system tells you so you can ask for PDFs.

Sources

  1. Tax Invoice, Credit and Debit Notes (CBIC GST)
  2. e-Invoice System (GST Network)
  3. Goods and Services Tax portal
  4. Integrate with TallyPrime (Tally Solutions Help)