Form 26AS API
With the taxpayer's consent, returns Form 26AS for a PAN and assessment year: deductor-wise TDS entries, TCS, advance tax and totals.
- Source
- Income Tax Department (TRACES / e-filing portal) records
- Turnaround
- Usually under a minute; slower during filing season
- Endpoint
- POST /v1/tax/26as
- Who can use it
- Lenders and businesses with the taxpayer's explicit consent and a clear purpose such as income assessment.
Overview
Form 26AS is the Income Tax Department's record of tax credited against a PAN: every TDS entry from every deductor, TCS, advance tax and self-assessment tax. For lenders it's an independent view of income that the applicant can't edit. For finance teams it's the easiest way to reconcile TDS claims.
Good to know
Only income with TDS or TCS shows up. Quarterly filing means the latest months are often missing.
What you get
- Deductor-wise TDSEach entry shows the deductor's name and TAN, the section, the amount paid and tax deducted.
- Income evidenceSalary under 192 and professional fees under 194J tell you who pays the applicant and roughly how much.
- Any assessment yearFetch the years you need, not just the latest one.
- Structured outputTotals and line items as JSON, ready for your rules or underwriting sheet.
Request
POST https://api.ampletrails.com/v1/tax/26as
| Field | Type | Status | Description |
|---|---|---|---|
pan | string | Required | Taxpayer's PAN |
assessment_year | string | Required | Assessment year to fetch |
consent | string | Required | Y when the taxpayer has consented |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
name | Taxpayer name | RAVI KUMAR |
assessment_year | Assessment year returned | 2026-27 |
tds_entries | TDS entries: deductor, TAN, section, amount paid, tax deducted | […] |
total_amount_paid | Total payments reported by deductors in ₹ | 1450000 |
total_tds | Total tax deducted at source in ₹ | 132000 |
tcs_entries | Tax collected at source entries | [] |
advance_tax_paid | Advance and self-assessment tax paid in ₹ | 15000 |
Example
curl -X POST https://api.ampletrails.com/v1/tax/26as \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pan": "ABCDE1234F", "assessment_year": "2026-27", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/tax/26as",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"pan": "ABCDE1234F",
"assessment_year": "2026-27",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/tax/26as", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"pan": "ABCDE1234F",
"assessment_year": "2026-27",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/tax/26as");
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(["pan" => "ABCDE1234F", "assessment_year" => "2026-27", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"name": "RAVI KUMAR",
"assessment_year": "2026-27",
"tds_entries": "[…]",
"total_amount_paid": 1450000,
"total_tds": 132000,
"tcs_entries": "[]",
"advance_tax_paid": 15000
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Self-employed lending
Professionals and consultants with 194J deductions can prove income without a CA certificate.
Salary confirmation
Match TDS under section 192 with the employer and salary the applicant declared.
TDS reconciliation
Check whether a customer or vendor has deposited the TDS they deducted on your payments.
Questions about this API
How does the taxpayer give access?
Through a consent step in your journey and, depending on the route, a login or OTP on the tax portal. We'll walk you through the flow for your volume.
Why doesn't 26AS match the ITR?
26AS only shows income where tax was deducted or collected. Rent from individuals, interest under thresholds and business income often won't appear.
How current is it?
Deductors file TDS returns quarterly, so recent months can be missing. A quarter's entries usually appear after its filing deadline.
Is this the same as AIS?
No. AIS covers more information, such as interest, dividends and high-value transactions. 26AS is focused on tax credits. Tell us if you need AIS-type data.
Try the Form 26AS API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.