validate_tva_fr
Validate French TVA intracom numbers by checking format and checksum. Returns valid status, key, SIREN, and TVA number.
Instructions
Validates a French TVA intracom (VAT) number — format 'FR' + 2 alphanumeric key characters + 9-digit SIREN. Returns { valid: boolean, key: string, siren: string, tva: string }. When the key is numeric, validates using the official formula: key = (12 + 3 × (SIREN mod 97)) mod 97.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tva | Yes | French TVA intracom number. Example: 'FR40303265045' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| key | No | ||
| siren | No | ||
| tva | No | ||
| reason | No | ||
| note | No |