---
title: "Discussion on \"GSTIN check digit explained, with a 20-line validator\" | Hashnode"
description: "Discussion on \"GSTIN check digit explained, with a 20-line validator\". How the 15th character of an Indian GST number is calculated, and a tested Python function that catches typos before you make an API call"
url: "https://hashnode.com/posts/gstin-check-digit-explained-with-a-20-line-validator/6ad83702a3dd117714d3dbdb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [GSTIN check digit explained, with a 20-line validator](https://indiacos.hashnode.dev/gstin-check-digit-explained-with-a-20-line-validator?utm_source=hashnode&utm_medium=feed)

How the 15th character of an Indian GST number is calculated, and a tested Python function that catches typos before you make an API call

Oct 21 · 7 min read · indiacos.hashnode.dev  
Read the article

-   [#validation](https://hashnode.com/tag/validation)
-   [#fintech](https://hashnode.com/tag/fintech)
-   [#python](https://hashnode.com/tag/python)
-   [#india](https://hashnode.com/tag/india)
-   [#gst](https://hashnode.com/tag/gst)

## Written by

[IndiaCos](https://hashnode.com/@indiacos)

@indiacos

  
[View profile](https://hashnode.com/@indiacos)

Know any Indian business before you deal with it

IndiaCos publishes one free report per Indian company, LLP or GST registration: what it does, whether it is active, its size band, every GSTIN under its PAN and any court cases naming it. Built from MCA, GST and court records. API and MCP for developers. Written by Sunny Mittal, who works on marketing at IndiaCos.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
