validate_pan
Validate an Indian PAN and decode the entity type from its fourth character. Use it to normalize tax identity records in KYC, invoicing, or vendor onboarding.
Instructions
Validate Indian PAN format and decode entity type from the 4th character.
Use when normalizing tax identity records in KYC, invoicing, or vendor onboarding.
Args: pan: PAN string, example: AAAPL1234C. Spaces and hyphens stripped automatically.
Returns: Standard envelope containing format validity, entity type, and decoded segments.
Notes: PAN check character is not publicly verifiable algorithmically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pan | Yes | 10-char PAN (spaces/hyphens allowed) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||