# Tax identification number (TIN)

In addition to the national IDs for transaction reporting, we also validate the tax identification numbers (TINs) that you submit with [`POST /users/{user_id}/tax_residencies`](/api/tax-residencies/set_tax_residencies), both during user onboarding and when a user's tax residencies change.

The following requirements apply:

- Minimum length: `1`
- Maximum length: `20`


## When we validate TINs

- We check each `tax_identifier_number` in the request before we store the tax residencies.
- We do not check tax residencies that you submit with a `missing_tin_reason` instead of a TIN.
- We do not revalidate TINs that we have already stored. However, each request must contain the user's complete set of tax residencies, so we check every TIN in the request, including TINs that we accepted before.


## Format rules

- For the countries listed in the tables below, letters must be uppercase.
- A TIN must not contain spaces unless its country's format includes one.


## Countries not listed below

For countries that are not listed in the tables below, the TIN must match the following:

- Pattern: `^[A-Za-z0-9.,+\-/]{1,20}$`
- Length: 1 to 20 characters in total, including punctuation
- Valid characters: uppercase and lowercase ASCII letters, digits, `.`, `,`, `+`, `-`, and `/`.


For these countries, we also accept lowercase letters.

Each country can only appear once per request.

## Formats by country

The tables below show the regular expression that a TIN must match for each listed country.

Matching the format does not guarantee that we accept a TIN. For some countries, we also run further checks, such as check digits and embedded dates of birth, and we reject placeholder values entered instead of a real TIN.

### Format for United Kingdom

The United Kingdom (country code `GB`) accepts two formats for tax identifiers:

- National Insurance Number (NINO): two letters, 6 digits, then an optional suffix of A–D or a space.
- Unique Tax Payer Reference (UTR): exactly 10 digits.


This results in the following regular expression format:

```text
^(?:(?:G[ACEGHJKLMNPRSTWXYZ]|N[ABCEGHJLMNPRSTWXYZ]|T[ABCEGHJKLMPRSTWXYZ]|Z[ABCEGHJKLMNPRSTWXY]|[ABCEHJKLMOPRSWXY][ABCEGHJKLMNPRSTWXYZ])\d{6}(?:[ABCD]| )?|\d{10})$
```

### European Union countries

| Country code | Country | Format |
|  --- | --- | --- |
| AT | Austria | `^\d{2}-?\d{3}/?\d{4}$` |
| BE | Belgium | `^\d{11}$` |
| BG | Bulgaria | `^\d{10}$` |
| CY | Cyprus | `^[069]\d{7}[A-Z]$` |
| CZ | Czechia | `^\d{6}/?\d{3,4}$` |
| DE | Germany | `^(?:[1-9]\d{10}|\d{4}0\d{8})$` |
| DK | Denmark | `^\d{6}-?\d{4}$` |
| EE | Estonia | `^[1-6]\d{10}$` |
| ES | Spain | `^[0-9LKXYZM]\d{7}[ABCDEFGHJKLMNPQRSTVWXYZ]$` |
| FI | Finland | `^\d{6}[-+A-FU-Y]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$` |
| FR | France | `^[0-3]\d{12}$` |
| GR | Greece | `^\d{9}$` |
| HR | Croatia | `^\d{11}$` |
| HU | Hungary | `^8\d{9}$` |
| IE | Ireland | `^\d{7}[A-W][A-IW]?$` |
| IT | Italy | `^[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]$` |
| LT | Lithuania | `^[1-6]\d{10}$` |
| LU | Luxembourg | `^\d{13}$` |
| LV | Latvia | `^\d{11}$` |
| MT | Malta | `^(?:\d{7}[MGAPLHBZ]|(?:11|22|33|44|55|66|77|88)\d{7})$` |
| NL | Netherlands | `^\d{9}$` |
| PL | Poland | `^\d{10,11}$` |
| PT | Portugal | `^\d{9}$` |
| RO | Romania | `^[1-9]\d{12}$` |
| SE | Sweden | `^(?:\d{6}-\d{4}|(?:18|19|20)\d{10})$` |
| SI | Slovenia | `^[1-9]\d{7}$` |
| SK | Slovakia | `^\d{6}/?\d{3,4}$` |


### Other countries and territories

| Country code | Country | Format |
|  --- | --- | --- |
| AD | Andorra | `^[A-Z]-?\d{6}-?[A-Z]$` |
| AL | Albania | `^[A-Z0-9]{10}$` |
| AR | Argentina | `^\d{2}-?\d{8}-?\d$` |
| AW | Aruba | `^\d{8}$` |
| AZ | Azerbaijan | `^(?:[A-Z0-9]{7}|\d{10})$` |
| BR | Brazil | `^\d{11}$` |
| CA | Canada | `^\d{9}$` |
| CH | Switzerland | `^\d{3}\.?\d{4}\.?\d{4}\.?\d{2}$` |
| CL | Chile | `^\d{2}\.?\d{3}\.?\d{3}-?[0-9K]$` |
| CN | China | `^(?:\d{15}|\d{17}[0-9X]?|[A-Z]\d{16}[0-9X])$` |
| CR | Costa Rica | `^(?:\d-?\d{4}-?\d{4}|\d-?\d{3}-?\d{6}|\d{11,12})$` |
| CW | Curaçao | `^\d{9}$` |
| EC | Ecuador | `^\d{13}$` |
| FO | Faroe Islands | `^\d{6}-?\d{3}$` |
| GI | Gibraltar | `^\d{1,6}$` |
| GL | Greenland | `^(?:\d{8}|\d{6}-?\d{4})$` |
| HK | Hong Kong | `^[A-Z0-9]{8}$` |
| IL | Israel | `^\d{9}$` |
| IM | Isle of Man | `^[A-Z]{2}\d{6}[A-Z]$` |
| IN | India | `^[A-Z0-9]{10}$` |
| IS | Iceland | `^\d{6}-?\d{4}$` |
| JP | Japan | `^\d{12,13}$` |
| KR | South Korea | `^\d{6}-?\d{7}$` |
| KW | Kuwait | `^\d{1,12}$` |
| LI | Liechtenstein | `^\d{1,12}$` |
| MU | Mauritius | `^\d{8}$` |
| MX | Mexico | `^[A-Z0-9]{12,13}$` |
| MY | Malaysia | `^(?:IG\d{9,11}|\d{6}-?\d{2}-?\d{4}|[A-Z]{1,2}\d{10,11})$` |
| NO | Norway | `^(?:\d{9}(?:[A-Z]{3})?|\d{11})$` |
| NR | Nauru | `^\d{2}-?\d{5}-?\d-?\d$` |
| NZ | New Zealand | `^\d{8,9}$` |
| PK | Pakistan | `^(?:\d{7}|\d{5}-?\d{7}-?\d)$` |
| RU | Russia | `^(?:\d{10}|\d{12})$` |
| SC | Seychelles | `^\d{9}$` |
| SG | Singapore | `^[A-Z0-9]{9}$` |
| SM | San Marino | `^[A-Z]{5}\d{5}$` |
| TR | Türkiye | `^(?:\d{10}|\d{11})$` |
| US | United States (SSN, ITIN, or EIN) | `^(?:\d{3}-?\d{2}-?\d{4}|\d{2}-?\d{7})$` |
| UY | Uruguay | `^(?:\d{8,9}|\d{12})$` |
| VC | Saint Vincent and the Grenadines | `^\d{6,10}$` |
| ZA | South Africa | `^\d{10}$` |


Valid Tax identifiers for the United States include a Social Security Number (SSN), an Individual Taxpayer Identification Number (ITIN), or an EIN (Employer Identification Number).

## When a TIN is rejected

If we reject a TIN, the whole request fails and we store none of the submitted tax residencies in the request. You can correct the TIN and submit the complete set of tax residencies again.

We stop at the first invalid TIN. If a request contains several invalid TINs we reject them, one at a time, so you might need to correct and resubmit again.