Validating the GST Identification Number (GSTIN)
1
vote
3
answers
8308
views
The following image describes the format of the GST Identification Number:
- The first 2 digits denote the unique *State Code* in accordance with the Indian Census 2011. For instance, the *State Code* of New Delhi is '07' and that of Karnataka is '29'.
- The next 10 characters denote the *PAN* (*Permanent Account Number*) of the taxpayer.
- The 13th digit denotes the *Registration Number* (or *Entity Number*) of the tax payer with the same *PAN*.
- The 14th digit is 'Z' by default for all – not intending anything currently.
- The 15th digit is the *Check sum digit* – can be a number or an alphabetical character.
Perhaps I can carry out the validation by means of a PATINDEX or a Regex?

Asked by Sunil Patil
(113 rep)
Apr 11, 2018, 11:48 AM
Last activity: Apr 15, 2022, 10:53 AM
Last activity: Apr 15, 2022, 10:53 AM