Docs / Checks
Validate a Turkish tax number
Checks the checksum of a Turkish tax number. An invalid number still returns 200. This does not query a tax office.
POST
/v1/tr/tax-number/validateimport { Client } from "@liveapiio/liveapi";
const client = new Client({ token: process.env.LIVEAPI_TOKEN });
const tax = await client.validateTaxNumber("1234567890");Request
Send Authorization: Bearer YOUR_TOKEN. The token stays on your server. Each library reads it from the environment and calls this endpoint for you.
| Field | Type | Description |
|---|---|---|
| number | string | The tax number. Required. |
Response
200 with valid: false means the checksum failed. That response still uses one call.
Errors
A failed request returns { "error": { "code", "message" } } and does not use a call.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | A required field is missing or has the wrong type. |
| 401 | unauthorized | The bearer token is missing or not recognized. |