ITR Fetch & Compliance API
With consent, returns ITR filing details for each assessment year you ask for: form, filing date, gross total income, tax paid and processing status.
- Source
- Income Tax Department e-filing records
- Turnaround
- Usually under a minute
- Endpoint
- POST /v1/tax/itr
- Who can use it
- Lenders, brokers and businesses with the taxpayer's explicit consent and a clear purpose.
Overview
An ITR acknowledgement PDF is easy to edit. This API fetches return details directly from the tax department's records, with the taxpayer's consent: which form was filed, when, the gross total income declared, tax paid and whether the return has been processed. Use it for income assessment and to check a vendor files returns at all.
Good to know
Declared income is what the taxpayer reported, not audited income. Returns for the current year may not be filed or processed yet.
What you get
- Several years in one callAsk for the last three assessment years and see whether income is growing, flat or falling.
- Processing statusA processed return carries more weight than one only just filed, and you can see which it is.
- Form tells a storyITR-1 versus ITR-3 or ITR-4 tells you whether someone is salaried, in business or on presumptive tax.
- Replaces PDF uploadsNo more checking acknowledgement numbers by hand or spotting edited PDFs.
Request
POST https://api.ampletrails.com/v1/tax/itr
| Field | Type | Status | Description |
|---|---|---|---|
pan | string | Required | Taxpayer's PAN |
assessment_years | array | Optional | Assessment years to fetch; defaults to the last three |
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 |
filings | One entry per assessment year | […] |
filings[].assessment_year | Assessment year | 2026-27 |
filings[].itr_form | ITR form filed | ITR-1 |
filings[].filing_date | Date the return was filed | 2026-07-22 |
filings[].gross_total_income | Gross total income declared in ₹ | 1480000 |
filings[].tax_paid | Total tax paid in ₹ | 142000 |
filings[].status | Processing status of the return | Processed |
Example
curl -X POST https://api.ampletrails.com/v1/tax/itr \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pan": "ABCDE1234F", "assessment_years": "[\"2026-27\",\"2025-26\"]", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/tax/itr",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"pan": "ABCDE1234F",
"assessment_years": "[\"2026-27\",\"2025-26\"]",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/tax/itr", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"pan": "ABCDE1234F",
"assessment_years": "[\"2026-27\",\"2025-26\"]",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/tax/itr");
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_years" => "[\"2026-27\",\"2025-26\"]", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"name": "RAVI KUMAR",
"filings": {
"assessment_year": "2026-27",
"itr_form": "ITR-1",
"filing_date": "2026-07-22",
"gross_total_income": 1480000,
"tax_paid": 142000,
"status": "Processed"
}
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Business and self-employed loans
Underwrite on declared income across years instead of a single acknowledgement.
Vendor and partner checks
Confirm a vendor has been filing returns before you sign a large contract.
High-value onboarding
Brokers checking income for derivatives trading and wealth managers checking suitability.
Questions about this API
What exactly comes back?
For each year: the ITR form, filing date, gross total income, total tax paid and the processing status. Full schedules are available for some routes; ask us.
What if the person hasn't filed?
You get an empty filing list for that year. Plenty of people below the taxable limit don't file, so don't treat it as fraud by itself.
Does this replace the old 206AB filer check?
Section 206AB was removed from 1 April 2025, so the higher TDS rate for non-filers no longer applies. Use the TDS compliance check for the current PAN-based rules, and this API when you need filing history.
How does the taxpayer give consent?
Through your journey with a consent step and, depending on the route, an OTP or portal login. We'll suggest the right flow for your volume.
Try the ITR Fetch & Compliance API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.