GSTIN validation before Tally entry: the 15-digit checks that save your ITC

A wrong GSTIN sends your supplier's invoice into someone else's GSTR-2B — and your ITC with it. The 15-character structure, the checksum, and how to validate before posting to Tally.

Published 14 June 2026

By Himanshu Bhatnagar, Founder, MoneyMistri

A GSTIN is a 15-character code with a check digit built into it, which means a typo is detectable before it ever reaches Tally — if you bother to check. That single fact is worth more than it sounds, because a wrong supplier GSTIN is one of the most expensive errors on a purchase ledger: it routes your supplier's invoice into a different taxpayer's GSTR-2B, so the credit never shows up against your business and your input tax credit silently vanishes. Validating a GSTIN has three levels — format (does it fit the 15-character structure), checksum (does the 15th digit recompute from the first 14), and status (is it actually active on the GST portal) — and the right place to run all three is at the moment a bill is entered, not weeks later at reconciliation. This guide breaks down the structure, the three checks, and why catching it at entry is what protects the credit.

What the 15 characters mean

A GSTIN encodes who the taxpayer is and where they are registered. Reading left to right (example: 27ABCDE1234F1Z6):

  • Characters 1–2 — state code. A numeric code for the state or union territory of registration, based on the Indian Census 2011 codes. 27 is Maharashtra, 07 is Delhi, 29 is Karnataka.
  • Characters 3–12 — PAN. The 10-character Permanent Account Number of the business. This ties the GSTIN to the entity's income-tax identity.
  • Character 13 — entity code. The serial number of this registration for that PAN within the state (1–9, then A–Z), so one PAN can hold multiple registrations in the same state.
  • Character 14 — a default letter, currently Z for regular taxpayers.
  • Character 15 — a checksum character that validates the other fourteen.

Because the PAN sits inside the GSTIN, the supplier's GSTIN and PAN should always agree — a useful cross-check when you have both.

The three levels of validation

1. Format

The cheapest check: is it 15 characters, with a plausible state code, a correctly patterned PAN in positions 3–12 (five letters, four digits, one letter), an entity character, and the trailing structure? A format check instantly rejects the obvious — 14 characters, a letter where a digit belongs, a blank field. It will not, however, catch a GSTIN that is well-formed but simply wrong.

2. Checksum

This is the check that earns its keep. The 15th character is a check digit computed from the first fourteen (a base-36, modulo-36 scheme), so a single mistyped or transposed character almost always makes the recomputed checksum disagree with the one printed. In practice that means most fat-finger errors — a swapped pair of digits, a wrong letter — fail the checksum and can be rejected at the keyboard, before the number is ever saved against a voucher. A GSTIN that passes both format and checksum is structurally valid; that is the bar any tool should clear automatically.

3. Portal status

Structural validity still doesn't tell you the registration is live. The GST portal's Search Taxpayer → Search by GSTIN/UIN service (on gst.gov.in, no login required) returns the legal name, trade name, registration date, taxpayer type, and current status — Active, Cancelled, or Suspended. This is how you catch a GSTIN that is genuine but belongs to a deregistered or suspended supplier, from whom your credit is at risk. For a new or high-value vendor, it is worth the thirty seconds.

Why a wrong GSTIN costs you the credit

GSTR-2B is generated for each taxpayer from what their suppliers report — every invoice a supplier files is keyed to the recipient GSTIN they typed. Under Section 16(2)(aa) of the CGST Act, you can claim input tax credit only on invoices that the supplier furnished and that are communicated to you — in practice, that appear in your GSTR-2B. So if a supplier enters the wrong recipient GSTIN, the invoice lands in someone else's 2B (or nobody's), and your business cannot claim the credit no matter how genuine the purchase. Fixing it requires the supplier to amend the invoice in a later GSTR-1, and the corrected credit only reaches you in the period that amendment is filed — all against the 30 November ceiling for claiming the year's ITC. A two-second validation at entry prevents a multi-week chase later.

Validate before Tally entry, not after

The whole point is timing. If the only time a GSTIN is scrutinised is at month-end reconciliation, every error has already hardened into your books and into the supplier's filing. Validate at the point of capture instead:

  • On manual entry, eyeball the GSTIN against the printed bill and run it through any format-plus-checksum validator before saving the voucher.
  • For recurring suppliers, store the verified GSTIN once on the party master so it is reused, not re-typed, each time.
  • With automation, the checksum runs the instant the bill is read. This is exactly the gate MoneyMistri applies — a supplier GSTIN that fails its check digit is flagged for review and never reaches the purchase voucher, so the error dies at capture instead of surfacing as a missing credit two months on.

A GSTIN is the one field on a purchase bill that carries its own proof of correctness. Checking it before it touches Tally is the cheapest insurance on your input tax credit there is.

The GSTIN structure here follows the CBIC registration FAQ and Census-2011 state codes; the exact checksum algorithm is documented in developer references rather than a single official page, so treat checksum tooling as a structural validity check, not a guarantee a registration exists — confirm doubtful GSTINs with the official Search Taxpayer service on gst.gov.in.

See what your books are hiding.

MoneyMistri reads your bills, keeps Tally current, and makes leaks like these visible. Free to start — no card required.

Sources

Primary references for the facts and figures above. External links open in a new tab.

  1. GST registration FAQ (GSTIN structure)Central Board of Indirect Taxes and Customs (CBIC)The 15-character GSTIN layout: state code, PAN, entity code, default 'Z', and a check digit.
  2. Search Taxpayer - official GSTIN/UIN lookup manualGST Network (official GST portal)Official manual for Search by GSTIN/UIN, including legal name, taxpayer type, and status (Active / Cancelled / Suspended).
  3. CGST Act, 2017 — Section 16(2)(aa)GST Council / CBIC, Government of IndiaClarifies that Section 16(2)(aa) links ITC to supplier-furnished invoice details communicated to the recipient through GSTR-2B.
  4. GSTR-2B — auto-drafted ITC statement (FAQ)GST Network (official GST portal)GSTR-2B is built from what suppliers report against each recipient GSTIN — a wrong GSTIN routes the credit elsewhere.

Keep reading