cusip
Validates a CUSIP (Committee on Uniform Securities Identification Procedures) number used to identify North American securities.
Options
| Option | Type | Default | Description |
|---|---|---|---|
message | string | locale default | Custom error message |
Playground
Valid values
| Value | Notes |
|---|---|
"037833100" | Apple Inc. CUSIP |
"38259P508" | Google (Alphabet) CUSIP |
Invalid values
| Value | Reason |
|---|---|
"037833101" | Fails check digit |
"12345678" | Too short (8 chars instead of 9) |
Notes
- Empty string (
"") always returnsvalid: true. Combine withnotEmptyto require a value. - CUSIP is always 9 characters: 6 alphanumeric issuer, 2 issue, 1 check digit.