# ValidateTaxIdentifier

Validates a tax identifier.

`POST /tax-identifiers/validate`

**API:** Avalara E-Invoicing API
**Tag:** Tax Identifiers
**API Version:** 1.4
**Base URL:** https://api.sbx.avalara.com/einvoicing
**Authentication:** Bearer token

Source: https://developer.avalara.com/products/e-invoicing/api/v1.4/methods/Tax%20Identifiers/ValidateTaxIdentifier/

## Description

This endpoint verifies whether a given tax identifier is valid and properly formatted according to the rules of the applicable country or tax system.

## Parameters

| Name | Type | In | Required | Description |
|---|---|---|---|---|
| `avalara-version` | string | header | Yes | The HTTP Header meant to specify the version of the API intended to be used. |
| `X-Avalara-Client` | string | header | No | You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a "Fingerprint". |
| `X-Correlation-ID` | string | header | No | The caller can use this as an identifier to use as a correlation id to trace the call. |

## Request Body

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

Represents a request to validate company’s tax identifier.

| Property | Type | Required | Description |
|---|---|---|---|
| `countryCode` | string | **Yes** | The two-letter ISO-3166 country code of the tax identifier. |
| `identifierType` | string | **Yes** | Type of the identifier. |
| `identifier` | string | **Yes** | The tax identifier of the company. |
| `extensions` | object | No | Optional field for adding additional details required by specific tax authorities. Refer to the GET /tax-identifiers/schema API endpoint for the full request structure for a given country. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 200 | Success response. | `TaxIdentifierResponse` |
| 400 | Invalid request | `ErrorResponse` |
| 401 | Unauthorized | `ErrorResponse` |
| 403 | Forbidden | `ErrorResponse` |
| 429 | Rate limit exceeded | `ErrorResponse` |
| 500 | Internal server error | `ErrorResponse` |

### 200 Response: `TaxIdentifierResponse`

Represents the response for a tax identifier validation request.

| Property | Type | Required | Description |
|---|---|---|---|
| `countryCode` | string | **Yes** | The two-letter ISO-3166 country code of the tax identifier. |
| `value` | object | No |  |

## Example Request

```bash
curl -X POST "https://api.sbx.avalara.com/einvoicing/tax-identifiers/validate" \
  -H "Authorization: Basic <credentials>" \
  -H "Accept: application/json" \
  -d '{
  "countryCode": "",
  "identifierType": "",
  "identifier": "",
  "extensions": {}
}'
```