法人番号・インボイス登録番号の検証
validate_corporate_numberChecks the National Tax Agency check digit on a 13-digit 法人番号, or on a qualified invoice registration number (the same 13 digits prefixed with T).
This proves the number is well formed. It does NOT prove the number is registered, and it does not identify the holder: sole proprietors receive invoice numbers that satisfy exactly the same rule, so a passing check digit must not be reported as evidence of a corporation. To confirm registration, use the National Tax Agency's own lookup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | The 12-digit 会社法人等番号 instead, to compute its check digit and get the 13-digit 法人番号. Use this when registering, not when checking. | |
| number | No | 13 digits, or T followed by 13 digits. |