https://github.com/tk120404/gst
GSTIN regex and GST checksum validation. Verify/Validate the gstin number using the regex and checksum functions available in various programming languages
https://github.com/tk120404/gst
checksum checksum-validator gst gst-validator gstchecksum gstin india javascript python regex validation
Last synced: 15 days ago
JSON representation
GSTIN regex and GST checksum validation. Verify/Validate the gstin number using the regex and checksum functions available in various programming languages
- Host: GitHub
- URL: https://github.com/tk120404/gst
- Owner: tk120404
- License: apache-2.0
- Created: 2019-02-01T04:52:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-12T10:26:11.000Z (over 6 years ago)
- Last Synced: 2025-03-31T05:41:26.259Z (about 2 months ago)
- Topics: checksum, checksum-validator, gst, gst-validator, gstchecksum, gstin, india, javascript, python, regex, validation
- Language: Swift
- Homepage:
- Size: 23.4 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GSTIN regex and its checksum
GSTIN regex
### `\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}`

#### Format details
* First 2 digits of the GST Number will represent State Code as per the Census (2011).
* Next 10 digits will be same as in the PAN number of the taxpayer.
* First five will be alphabets
* Next four will be numbers
* Last will be check code
* The 13th digit will be the number of registration you take within a state i.e. after 9, A to Z is considered as 10 to 35 .
* 14th digit will be Z by default.
* Last would be the check code.How to decode the [GST CheckSum](https://medium.com/@dhananjaygokhale/decoding-gst-number-checksum-digit-1ef2c8c53ad6)
* [Javascript checksum verification](https://github.com/tk120404/gst/blob/master/gstChecksum.js)
* [Python Checksum verification](https://github.com/tk120404/gst/blob/master/gstChecksum.py)
* [Swift Checksum verification](https://github.com/tk120404/gst/blob/master/gstChecksum.swift)