Skip to content
/ gst Public

GSTIN regex and GST checksum validation. Verify/Validate the gstin number using the regex and checksum functions available in various programming languages

License

Notifications You must be signed in to change notification settings

tk120404/gst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GSTIN regex and GST checksum validation. Verify/Validate the gstin number using the regex and checksum functions available in various programming languages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published