> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/rest-api/identity-api/identity-api-reference/onboarding/kyc/nigeria/tax-verification/tin-verify.md). Agents can also search and read this documentation through its [MCP server](https://docs.facephi.com/~gitbook/mcp).

# TIN Verify

Verify the **Tax Identification Number** (TIN) in Nigeria and return the **taxpayer's** details registered with the tax authority.

### Endpoint

```
POST /kyc/nga/tin
```

### Authentication

| Type    | Location | Name          |
| ------- | -------- | ------------- |
| API Key | Header   | **x-api-key** |

### Request body

**Content-Type:** `application/json`

#### Parameters

| Parameter | Type   | Required | Description                                                          |
| --------- | ------ | -------- | -------------------------------------------------------------------- |
| `number`  | string | **Yes**  | Taxpayer's Tax Identification Number (TIN). Format: `12345678-0001`. |

**Note:** the `channel` parameter (with the value `TIN`) is **injected automatically by the service**; it must not be sent in the request.

#### Request example

```json
{
  "number": "12345678-0001"
}
```

### Responses

#### `200` Success

#### Response parameters

| Parameter              | Type    | Description                                                                                                                  |
| ---------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `serviceResultCode`    | integer | Code indicating the overall **result** of the service execution. See [Service Result Code](#service-result-code)             |
| `serviceTime`          | string  | Processing time **(milliseconds)**.                                                                                          |
| `serviceResultLog`     | string  | Descriptive field for the result of the service execution. Includes details when an error or exception occurs in the module. |
| `serviceTransactionId` | string  | Transaction identifier associated with the request processed by the API.                                                     |
| `data`                 | object  | Object containing the taxpayer's details. See the table below.                                                               |

#### Response parameters — `data`

**Note:** the `data` object is returned **without field mapping or normalization**.

| Parameter        | Type   | Description                                                          |
| ---------------- | ------ | -------------------------------------------------------------------- |
| `taxpayer_name`  | string | **Registered name** of the taxpayer (individual or company).         |
| `phone_number`   | string | Registered phone number.                                             |
| `email`          | string | Registered email address.                                            |
| `tax_office`     | string | **Tax office** assigned to the taxpayer.                             |
| `tin_type`       | string | Type of taxpayer associated with the TIN.                            |
| `jittin`         | string | Taxpayer's **Joint Tax Board** (JTB) TIN.                            |
| `firstin`        | string | Taxpayer's **Federal Inland Revenue Service** (FIRS) TIN.            |
| `cac_reg_number` | string | Company **CAC** registration number (applies to business taxpayers). |

#### Service Result Code

The `serviceResultCode` indicates the overall result of the service execution and reflects the **HTTP status code** of the response:

| serviceResultCode | Description                                                                    | HTTP code |
| ----------------- | ------------------------------------------------------------------------------ | --------- |
| 200               | The service executed successfully; the module processed the request correctly. | 200       |

#### Response example

```json
{
  "serviceResultCode": 200,
  "serviceTime": "1300",
  "serviceResultLog": "Success",
  "serviceTransactionId": "g63j457k-56k4-3j5n-j08j-4k803jl44lm",
  "data": {
    "taxpayer_name": "ACME NIGERIA LIMITED",
    "phone_number": "08012345678",
    "email": "info@acme-nigeria.com",
    "tax_office": "MSTO IKEJA",
    "tin_type": "Non Individual",
    "jittin": "1234567890",
    "firstin": "12345678-0001",
    "cac_reg_number": "RC1234567"
  }
}
```

#### `400` Bad Request

Error returned in the service envelope (`serviceResultCode` reflects the HTTP response code):

```json
{
  "serviceResultCode": 400,
  "serviceResultLog": "Sorry, lookup failed. Please check the details and try again",
  "serviceTime": "151",
  "serviceTransactionId": "08ac9699-dc9e-4cdc-81d7-264f71838309"
}
```

#### `502` Bad Gateway

Returned when the service is temporarily unavailable or its response could not be interpreted. The body uses the service envelope with `serviceResultCode: 500`:

```json
{
  "serviceResultCode": 500,
  "serviceResultLog": "Service temporarily unavailable. Please try again later",
  "serviceTime": "3000",
  "serviceTransactionId": "38de2932-0f2h-7gff-14g0-597h04161632"
}
```

#### `504` Gateway Timeout

Timeout error **timeout**, returned with the service envelope:

```json
{
  "serviceResultCode": 504,
  "serviceResultLog": "Request timeout. Please try again",
  "serviceTime": "30000",
  "serviceTransactionId": "48ef3043-1g3i-8hgg-25h1-608i15272743"
}
```

{% hint style="info" %}
Authentication errors (`401`/`403`) are rejected by the **gateway before reaching the service** and **do not** use the `serviceResultCode`. Platform validation errors use the `application/problem+json`format. See [Error handling](https://docs.facephi.com/docs.facephi-en/rest-api/identity-api/identity-api-reference/onboarding/kyc/nigeria.md#manejo-de-errores) for details on the three response types.
{% endhint %}
