---
title: TAN Verification
slug: api-marketplace/tan-verification
createdAt: 2024-01-30T08:15:11.070Z
---

## Introduction

The TAN Verification API provides a reliable and efficient means for businesses to validate Tax Deduction and Collection Account Number (TAN) details. This API enables the verification of a TAN against a specified company name, ensuring the authenticity and accuracy of the tax-related credentials. With a simple request that includes the company name and TAN number, users receive a prompt response indicating whether the TAN is verified. This API is a valuable tool for financial institutions, tax professionals, and businesses, streamlining the process of TAN verification and enhancing compliance with tax regulations. Its straightforward and accurate verification process makes it an essential component in financial and tax-related operations.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/tan/verification
```
:::

:::CodeblockTabs
UAT/Testing Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/tan/verification
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                              | **Required** |
| ------------- | ------------- | -------------------------------------------- | ------------ |
| tan           | String        | TAN number to be verified.                   | Mandatory    |
| companyName   | String        | Company Name to be checked for verification. | Mandatory    |

```json
{
    "companyName": "<COMPANY NAME>",
    "tan": "<TAN NUMBER>"
}
```

***

### Request Headers

| **Name&#x20;** | **Value**        | **Required** | **Description**                                                                                            |
| -------------- | ---------------- | ------------ | ---------------------------------------------------------------------------------------------------------- |
| Content-type   | application/json | Mandatory    | The type of content that the request body contains.                                                        |
| Authorization  | XXXXXXXXXXXXXXX  | Mandatory    | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Code Samples

:::CodeblockTabs
Curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/tan/verification' \
--header 'Content-Type: application/json' \
--header 'Authorization: <--Your Authorization Token-->' \
--data '{
    "companyName": "<--COMPANY NAME-->",
    "tan": "<--TAN NUMBER-->"
}'
```

Node.js

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "companyName": "<--COMPANY NAME-->",
  "tan": "<--TAN NUMBER-->"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/tan/verification',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<--Your Authorization Token-->'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

Python

```python
import http.client
import json

conn = http.client.HTTPSConnection("api-preproduction.signzy.app")
payload = json.dumps({
  "companyName": "<--COMPANY NAME-->",
  "tan": "<--TAN NUMBER-->"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<--Your Authorization Token-->'
}
conn.request("POST", "/api/v3/tan/verification", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

GO

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/tan/verification"
  method := "POST"

  payload := strings.NewReader(`{
    "companyName": "<--COMPANY NAME-->",
    "tan": "<--TAN NUMBER-->"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "<--Your Authorization Token-->")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| **Parameter**   | **Data Type** | **Description**                                                             |
| --------------- | ------------- | --------------------------------------------------------------------------- |
| result          | Object        | Contains the verification result for the input PAN number and company name. |
| result.verified | String        | Possible values are true or false.                                          |
| result.message  | String        | Contains the verification message.                                          |

:::CodeblockTabs
200

```json
// Verified with positive result
{
    "result": {
        "verified": true,
        "message": "Verification completed with positive result"
    }
}

// Verified with negative result
{
    "result": {
        "verified": false,
        "message": "Verification completed with negative result"
    }
}

```

400

```json
//When passing the empty string
{
  "error": {
    "statusCode": 400,
    "name": "error",
    "message": "TAN is not allowed to be empty string",
    "status": 400
  }
}

// when passing the Invalid TAN number
{
  "error": {
    "statusCode": 400,
    "name": "error",
    "message": "Invalid TAN",
    "status": 400
  }
}

//when passing the different datatype
{
  "error": {
    "statusCode": 400,
    "name": "error",
    "message": "TAN must be a string",
    "status": 400
  }
}

//when passing the different datatype
{
  "error": {
    "statusCode": 400,
    "name": "error",
    "message": "companyName must be a string",
    "status": 400
  }
}

//When passing the empty string
{
  "error": {
    "statusCode": 400,
    "name": "error",
    "message": "companyName is not allowed to be empty",
    "status": 400
  }
}

//when passing the empty object
{
  "error": {
    "statusCode": 400,
    "name": "error",
    "message": "companyName is required",
    "status": 400
  }
}
```

401

```json
// If Authorization token is not passed
{
    "message": "No API key found in request"
}

// If Authorization token is invalid
{
    "message": "Invalid authentication credentials"
}
```

409

```json
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```

404

```json
// When TAN number is not found
{
    "error": {
        "statusCode": 404,
        "name": "error",
        "message": "Company not found",
        "status": 404
    }
}
```
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!
