Fetch Jobs
curl --request POST \
--url https://test-api.sandbox.co.in/tds/reports/txt/search \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "in.co.sandbox.tds.reports.jobs.search",
"tan": "AHMS12345C",
"quarter": "Q2",
"form": "140",
"tax_year": "TY 2026-27",
"from_date": 1714529045000,
"to_date": 1716170645000,
"page_size": 10,
"last_evaluated_key": "eydadadadada...=="
}
'import requests
url = "https://test-api.sandbox.co.in/tds/reports/txt/search"
payload = {
"@entity": "in.co.sandbox.tds.reports.jobs.search",
"tan": "AHMS12345C",
"quarter": "Q2",
"form": "140",
"tax_year": "TY 2026-27",
"from_date": 1714529045000,
"to_date": 1716170645000,
"page_size": 10,
"last_evaluated_key": "eydadadadada...=="
}
headers = {
"authorization": "<authorization>",
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
authorization: '<authorization>',
'x-api-key': '<x-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
'@entity': 'in.co.sandbox.tds.reports.jobs.search',
tan: 'AHMS12345C',
quarter: 'Q2',
form: '140',
tax_year: 'TY 2026-27',
from_date: 1714529045000,
to_date: 1716170645000,
page_size: 10,
last_evaluated_key: 'eydadadadada...=='
})
};
fetch('https://test-api.sandbox.co.in/tds/reports/txt/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://test-api.sandbox.co.in/tds/reports/txt/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'@entity' => 'in.co.sandbox.tds.reports.jobs.search',
'tan' => 'AHMS12345C',
'quarter' => 'Q2',
'form' => '140',
'tax_year' => 'TY 2026-27',
'from_date' => 1714529045000,
'to_date' => 1716170645000,
'page_size' => 10,
'last_evaluated_key' => 'eydadadadada...=='
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authorization: <authorization>",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://test-api.sandbox.co.in/tds/reports/txt/search"
payload := strings.NewReader("{\n \"@entity\": \"in.co.sandbox.tds.reports.jobs.search\",\n \"tan\": \"AHMS12345C\",\n \"quarter\": \"Q2\",\n \"form\": \"140\",\n \"tax_year\": \"TY 2026-27\",\n \"from_date\": 1714529045000,\n \"to_date\": 1716170645000,\n \"page_size\": 10,\n \"last_evaluated_key\": \"eydadadadada...==\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://test-api.sandbox.co.in/tds/reports/txt/search")
.header("authorization", "<authorization>")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"@entity\": \"in.co.sandbox.tds.reports.jobs.search\",\n \"tan\": \"AHMS12345C\",\n \"quarter\": \"Q2\",\n \"form\": \"140\",\n \"tax_year\": \"TY 2026-27\",\n \"from_date\": 1714529045000,\n \"to_date\": 1716170645000,\n \"page_size\": 10,\n \"last_evaluated_key\": \"eydadadadada...==\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test-api.sandbox.co.in/tds/reports/txt/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"@entity\": \"in.co.sandbox.tds.reports.jobs.search\",\n \"tan\": \"AHMS12345C\",\n \"quarter\": \"Q2\",\n \"form\": \"140\",\n \"tax_year\": \"TY 2026-27\",\n \"from_date\": 1714529045000,\n \"to_date\": 1716170645000,\n \"page_size\": 10,\n \"last_evaluated_key\": \"eydadadadada...==\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"timestamp": 1715757773000,
"transaction_id": "109469b2-0748-4135-a569-e86fc9e45756",
"data": {
"@entity": "in.co.sandbox.tds.reports.paginated_list",
"items": [
{
"@entity": "in.co.sandbox.tds.reports.job",
"job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72",
"tan": "AHMS12345C",
"tax_year": "TY 2026-27",
"quarter": "Q2",
"form": "140",
"previous_receipt_number": "1234567890123",
"created_at": 1714529043000,
"updated_at": 1714529044000,
"status": "succeeded"
},
{
"@entity": "in.co.sandbox.tds.reports.job",
"job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72",
"tan": "sample-value",
"tax_year": "TY 2026-27",
"quarter": "Q2",
"form": "140",
"previous_receipt_number": "1234567890123",
"created_at": 1714527043000,
"updated_at": 1714527044000,
"status": "failed",
"message": "Invalid Workbook"
},
{
"@entity": "in.co.sandbox.tds.reports.job",
"job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72",
"tan": "sample-value",
"tax_year": "TY 2026-27",
"quarter": "Q2",
"form": "140",
"previous_receipt_number": "1234567890123",
"created_at": 1714530043000,
"updated_at": 1714530044000,
"status": "failed",
"message": "Validation error"
}
],
"last_evaluated_key": "eydadadadada...=="
}
}Fetch all TDS Reports Jobs through this API.
POST
/
tds
/
reports
/
txt
/
search
Fetch Jobs
curl --request POST \
--url https://test-api.sandbox.co.in/tds/reports/txt/search \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "in.co.sandbox.tds.reports.jobs.search",
"tan": "AHMS12345C",
"quarter": "Q2",
"form": "140",
"tax_year": "TY 2026-27",
"from_date": 1714529045000,
"to_date": 1716170645000,
"page_size": 10,
"last_evaluated_key": "eydadadadada...=="
}
'import requests
url = "https://test-api.sandbox.co.in/tds/reports/txt/search"
payload = {
"@entity": "in.co.sandbox.tds.reports.jobs.search",
"tan": "AHMS12345C",
"quarter": "Q2",
"form": "140",
"tax_year": "TY 2026-27",
"from_date": 1714529045000,
"to_date": 1716170645000,
"page_size": 10,
"last_evaluated_key": "eydadadadada...=="
}
headers = {
"authorization": "<authorization>",
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
authorization: '<authorization>',
'x-api-key': '<x-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
'@entity': 'in.co.sandbox.tds.reports.jobs.search',
tan: 'AHMS12345C',
quarter: 'Q2',
form: '140',
tax_year: 'TY 2026-27',
from_date: 1714529045000,
to_date: 1716170645000,
page_size: 10,
last_evaluated_key: 'eydadadadada...=='
})
};
fetch('https://test-api.sandbox.co.in/tds/reports/txt/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://test-api.sandbox.co.in/tds/reports/txt/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'@entity' => 'in.co.sandbox.tds.reports.jobs.search',
'tan' => 'AHMS12345C',
'quarter' => 'Q2',
'form' => '140',
'tax_year' => 'TY 2026-27',
'from_date' => 1714529045000,
'to_date' => 1716170645000,
'page_size' => 10,
'last_evaluated_key' => 'eydadadadada...=='
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authorization: <authorization>",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://test-api.sandbox.co.in/tds/reports/txt/search"
payload := strings.NewReader("{\n \"@entity\": \"in.co.sandbox.tds.reports.jobs.search\",\n \"tan\": \"AHMS12345C\",\n \"quarter\": \"Q2\",\n \"form\": \"140\",\n \"tax_year\": \"TY 2026-27\",\n \"from_date\": 1714529045000,\n \"to_date\": 1716170645000,\n \"page_size\": 10,\n \"last_evaluated_key\": \"eydadadadada...==\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://test-api.sandbox.co.in/tds/reports/txt/search")
.header("authorization", "<authorization>")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"@entity\": \"in.co.sandbox.tds.reports.jobs.search\",\n \"tan\": \"AHMS12345C\",\n \"quarter\": \"Q2\",\n \"form\": \"140\",\n \"tax_year\": \"TY 2026-27\",\n \"from_date\": 1714529045000,\n \"to_date\": 1716170645000,\n \"page_size\": 10,\n \"last_evaluated_key\": \"eydadadadada...==\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test-api.sandbox.co.in/tds/reports/txt/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"@entity\": \"in.co.sandbox.tds.reports.jobs.search\",\n \"tan\": \"AHMS12345C\",\n \"quarter\": \"Q2\",\n \"form\": \"140\",\n \"tax_year\": \"TY 2026-27\",\n \"from_date\": 1714529045000,\n \"to_date\": 1716170645000,\n \"page_size\": 10,\n \"last_evaluated_key\": \"eydadadadada...==\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"timestamp": 1715757773000,
"transaction_id": "109469b2-0748-4135-a569-e86fc9e45756",
"data": {
"@entity": "in.co.sandbox.tds.reports.paginated_list",
"items": [
{
"@entity": "in.co.sandbox.tds.reports.job",
"job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72",
"tan": "AHMS12345C",
"tax_year": "TY 2026-27",
"quarter": "Q2",
"form": "140",
"previous_receipt_number": "1234567890123",
"created_at": 1714529043000,
"updated_at": 1714529044000,
"status": "succeeded"
},
{
"@entity": "in.co.sandbox.tds.reports.job",
"job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72",
"tan": "sample-value",
"tax_year": "TY 2026-27",
"quarter": "Q2",
"form": "140",
"previous_receipt_number": "1234567890123",
"created_at": 1714527043000,
"updated_at": 1714527044000,
"status": "failed",
"message": "Invalid Workbook"
},
{
"@entity": "in.co.sandbox.tds.reports.job",
"job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72",
"tan": "sample-value",
"tax_year": "TY 2026-27",
"quarter": "Q2",
"form": "140",
"previous_receipt_number": "1234567890123",
"created_at": 1714530043000,
"updated_at": 1714530044000,
"status": "failed",
"message": "Validation error"
}
],
"last_evaluated_key": "eydadadadada...=="
}
}Headers
JWT access token
API key for identification
Body
application/json
Available options:
in.co.sandbox.tds.reports.jobs.search TAN of deductor. Regular Expression: [A-Z]{4}[0-9]{5}[A-Z]{1}
Example:
"AHMA09719B"
Quarter for which TDS is being filed
Available options:
Q1, Q2, Q3, Q4 TDS return form code. Allowed values: 138, 140, 144.
Available options:
138, 140, 144 Tax Year for which TDS is being filed. (eg. TY 2026-27)
Pattern:
^TY [0-9]{4}-[0-9]{2}$Example:
"TY 2026-27"
Date from which jobs are to be fetched. Value in EPOCH timestamp
Date till which jobs are to be fetched. Value in EPOCH timestamp
Number of records in the API response. Maximum allowed size is 50
Base64 encoding of the stringified JSON object, which includes x-api-key, created_at, and job_id
Was this page helpful?
⌘I