TAN Verification API
Send a 10-character TAN and, if you have it, the deductor's name. We return whether the TAN is valid, the registered deductor name and category, and a name-match score.
- Source
- Income Tax Department TAN records
- Turnaround
- Real time, usually a few seconds
- Endpoint
- POST /v1/tan/verify
- Who can use it
- Any business with a tax-compliance purpose.
Overview
When a client deducts TDS from your invoice, the credit only reaches you if their TAN and return are right. Checking the TAN at onboarding saves a lot of chasing later, especially with new or small clients who may quote the wrong number.
Good to know
A valid TAN doesn't mean the deductor has deposited the TDS. Check Form 26AS for the actual credit.
What you get
- Name matchMatch the TAN to the company name on the purchase order or contract.
- Deductor categoryCompany, firm, individual or government, spelled out.
- Format check firstWe validate the four-letter, five-digit, one-letter format before calling the source.
- Works in bulkCheck every customer TAN in your receivables ledger before the quarter closes.
Request
POST https://api.ampletrails.com/v1/tan/verify
| Field | Type | Status | Description |
|---|---|---|---|
id_number | string | Required | 10-character TAN |
name | string | Optional | Name to match against the TAN holder |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
tan_status | TAN status: VALID or INVALID | VALID |
deductor_name | Registered name of the deductor | EXAMPLE TECHNOLOGIES PRIVATE LIMITED |
deductor_category | Category, for example Company, Firm or Individual | Company |
name_match | Whether the supplied name matches | true |
name_match_score | Name match score from 0 to 100 | 91 |
Example
curl -X POST https://api.ampletrails.com/v1/tan/verify \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id_number": "DELE12345A", "name": "Example Technologies Pvt Ltd"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/tan/verify",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"id_number": "DELE12345A",
"name": "Example Technologies Pvt Ltd"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/tan/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"id_number": "DELE12345A",
"name": "Example Technologies Pvt Ltd"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/tan/verify");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["id_number" => "DELE12345A", "name" => "Example Technologies Pvt Ltd"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"tan_status": "VALID",
"deductor_name": "EXAMPLE TECHNOLOGIES PRIVATE LIMITED",
"deductor_category": "Company",
"name_match": true,
"name_match_score": 91
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Receivables and TDS reconciliation
Make sure TDS deducted by customers will show up against your PAN.
Payroll providers
Confirm the employer's TAN when setting up payroll for a new client.
Government contractors
Check department TANs printed on work orders.
Questions about this API
What's the TAN format?
Four letters, five digits and a letter, for example DELE12345A. The first three letters are the city or jurisdiction code.
Can one company have several TANs?
Yes. Branches and divisions often have their own. Check the TAN printed on the TDS certificate you received.
Does this show TDS deposited?
No. Use Form 26AS to see what has actually been credited to your PAN.
Is a TAN the same as a PAN?
No. PAN identifies the taxpayer; TAN identifies the deductor account used for TDS and TCS.
Try the TAN Verification API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.