isin
Validates an ISIN (International Securities Identification Number).
Options
| Option | Type | Default | Description |
|---|---|---|---|
message | string | locale default | Custom error message |
Playground
Valid values
| Value | Notes |
|---|---|
"US0378331005" | Apple Inc. ISIN |
"DE0005140008" | Deutsche Bank ISIN |
Invalid values
| Value | Reason |
|---|---|
"US0378331006" | Fails Luhn check digit |
"XX0378331005" | Unknown country code prefix |
Notes
- Empty string (
"") always returnsvalid: true. Combine withnotEmptyto require a value. - Format: 2-letter country code + 9 alphanumeric chars + 1 check digit (12 chars total).