ITIN/SSN format
Document format and errors for the ITIN/SSN document for the USA.
SSN
Here are the SSA's criteria for SSNs that are not issued and should be considered invalid:
- SSNs with the number
666in positions1-3 - SSNs with the numbers
00in positions4-5 - SSNs with the numbers
0000in positions6-9
Also, SSN starting with number 9 are considered ITN (see below).
ITIN
If a participant enters an ITIN, the middle digits must follow the following logic. We should add this validation to the front end so the user doesn’t continue.
If the citizenship and/or residency is the United States, and the document id starts with 9 then, the 4th digit must be:
5or7or9followed by any digit (e.g. 912-50-1234)6followed by0-5(e.g. 912-60-1234)8followed by0-8(e.g. 912-80-1234)
If the format is invalid, an error will be thrown HTTP 400 with the following message: Invalid number. Please enter a valid SSN or ITIN.
Source: IRS.
Updated 9 months ago
