---
title: Check a tax identification number
endpoint: POST /api/v3/tax-identification-numbers/validate
description: "A POST rather than a GET so the TIN does not travel in a URL: request logs record the full query string and retention is unlimited, and a TIN is a national identifier. Validation is local, so no caching is lost."
---

`POST /api/v3/tax-identification-numbers/validate`

## Request

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `country` | string | required | `NL` | ISO 3166-1 alpha-2. |
| `tin` | string | required | `111222333` |  |
| `subject` | string | optional |  | Whose TIN this is. `business` validates against the entity catalogue, so a company's TIN is checked as a company's rather than a person's. Omitted, it is a person's. A value naming neither is a 400. One of: user, business. |

## Responses

| Status | Meaning |
| --- | --- |
| 200 | The verdict. A non-valid TIN is a 200 with state != "valid", not an error. |
| 400 | `country` is missing, or `subject` names neither `user` nor `business`. |
| 503 | `maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`. |

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `state` | string | required |  | "incomplete" means the value is a prefix of a well-formed number; keep typing. Not an error state. One of: valid, incomplete, invalid, not_issued. |
| `reason` | string | optional | `bad_checksum` | Why state is "invalid". Absent otherwise. "bad_checksum" is a wrong check digit; "bad_structure" is a rule about shape instead — an impossible calendar date, a permanently-unissued area — for the handful of countries whose format has one. One of: bad_length, bad_charset, bad_checksum, bad_structure, no_format_match, unknown_country. |
| `matched` | string | optional | `PESEL` | Which of the country's formats matched, for a country with more than one. Absent for a single-format country and the generic fallback. |
| `formatHint` | string | optional | `111222333` | A specimen of the expected shape, present on every non-valid verdict for an issued country. |
