Validate a GSTIN
validate_gstinChecks an Indian GSTIN offline for 15-character structure, state code, embedded PAN, and mod-36 check character, returning decoded parts. A pass confirms only well-formed format, not registration.
Instructions
Checks an Indian GSTIN offline: 15-character structure, state code, embedded PAN, and the mod-36 check character. Returns the decoded parts. Use this instead of guessing whether a GSTIN is well-formed; a model cannot calculate the check character reliably. Covers regular-taxpayer GSTINs (14th character Z); TDS/TCS, UN-body and non-resident formats are not supported. A pass only means well-formed, not registered or active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gstin | Yes | The GSTIN, with or without spaces or hyphens |