validate_gstin
Validate and decode an Indian GSTIN with checksum verification before invoicing or reconciliation. Check structure, state, PAN, entity details, and checksum to confirm validity.
Instructions
Validate and decode an Indian GSTIN with checksum verification.
Use when checking supplier/customer GSTINs before invoicing, reconciliation, or compliance workflows.
Args: gstin: 15-character GSTIN (e.g., 27AAPFU0939F1ZV). Spaces/hyphens stripped.
Returns: Standard envelope containing validity, state decode, embedded PAN, entity number, category, and checksum information.
Notes: Validates structure and checksum only; does not verify active GSTN registration status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gstin | Yes | 15-character GSTIN (spaces/hyphens allowed) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||