Register client
curl --request POST \
--url https://test-api.sandbox.co.in/it/compliance/eri/tax-payers/registration/otp \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "com.quicko.it.tax_payer.individual",
"pan": "ABCPS1234K",
"first_name": "Rahul",
"middle_name": "",
"last_name": "Sharma",
"dob": 650658600000,
"gender": "male",
"residential_status": "resident",
"contact": {
"@entity": "org.quicko.contact",
"mobile": "9876543210",
"country_code": "91",
"email": "rahul.sharma@example.com"
},
"address": {
"@entity": "org.quicko.address",
"street": "12, Sunrise Apartments, CG Road",
"area": "Navrangpura",
"city": "Ahmedabad",
"district": "Ahmedabad",
"state": "Gujarat",
"postal_code": "380009",
"country": "India"
}
}
'import requests
url = "https://test-api.sandbox.co.in/it/compliance/eri/tax-payers/registration/otp"
payload = {
"@entity": "com.quicko.it.tax_payer.individual",
"pan": "ABCPS1234K",
"first_name": "Rahul",
"middle_name": "",
"last_name": "Sharma",
"dob": 650658600000,
"gender": "male",
"residential_status": "resident",
"contact": {
"@entity": "org.quicko.contact",
"mobile": "9876543210",
"country_code": "91",
"email": "rahul.sharma@example.com"
},
"address": {
"@entity": "org.quicko.address",
"street": "12, Sunrise Apartments, CG Road",
"area": "Navrangpura",
"city": "Ahmedabad",
"district": "Ahmedabad",
"state": "Gujarat",
"postal_code": "380009",
"country": "India"
}
}
headers = {
"Authorization": "<authorization>",
"x-api-key": "<x-api-key>",
"Content-Type": "<content-type>"
}
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': '<content-type>'
},
body: JSON.stringify({
'@entity': 'com.quicko.it.tax_payer.individual',
pan: 'ABCPS1234K',
first_name: 'Rahul',
middle_name: '',
last_name: 'Sharma',
dob: 650658600000,
gender: 'male',
residential_status: 'resident',
contact: {
'@entity': 'org.quicko.contact',
mobile: '9876543210',
country_code: '91',
email: 'rahul.sharma@example.com'
},
address: {
'@entity': 'org.quicko.address',
street: '12, Sunrise Apartments, CG Road',
area: 'Navrangpura',
city: 'Ahmedabad',
district: 'Ahmedabad',
state: 'Gujarat',
postal_code: '380009',
country: 'India'
}
})
};
fetch('https://test-api.sandbox.co.in/it/compliance/eri/tax-payers/registration/otp', 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/it/compliance/eri/tax-payers/registration/otp",
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' => 'com.quicko.it.tax_payer.individual',
'pan' => 'ABCPS1234K',
'first_name' => 'Rahul',
'middle_name' => '',
'last_name' => 'Sharma',
'dob' => 650658600000,
'gender' => 'male',
'residential_status' => 'resident',
'contact' => [
'@entity' => 'org.quicko.contact',
'mobile' => '9876543210',
'country_code' => '91',
'email' => 'rahul.sharma@example.com'
],
'address' => [
'@entity' => 'org.quicko.address',
'street' => '12, Sunrise Apartments, CG Road',
'area' => 'Navrangpura',
'city' => 'Ahmedabad',
'district' => 'Ahmedabad',
'state' => 'Gujarat',
'postal_code' => '380009',
'country' => 'India'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>",
"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/it/compliance/eri/tax-payers/registration/otp"
payload := strings.NewReader("{\n \"@entity\": \"com.quicko.it.tax_payer.individual\",\n \"pan\": \"ABCPS1234K\",\n \"first_name\": \"Rahul\",\n \"middle_name\": \"\",\n \"last_name\": \"Sharma\",\n \"dob\": 650658600000,\n \"gender\": \"male\",\n \"residential_status\": \"resident\",\n \"contact\": {\n \"@entity\": \"org.quicko.contact\",\n \"mobile\": \"9876543210\",\n \"country_code\": \"91\",\n \"email\": \"rahul.sharma@example.com\"\n },\n \"address\": {\n \"@entity\": \"org.quicko.address\",\n \"street\": \"12, Sunrise Apartments, CG Road\",\n \"area\": \"Navrangpura\",\n \"city\": \"Ahmedabad\",\n \"district\": \"Ahmedabad\",\n \"state\": \"Gujarat\",\n \"postal_code\": \"380009\",\n \"country\": \"India\"\n }\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", "<content-type>")
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/it/compliance/eri/tax-payers/registration/otp")
.header("Authorization", "<authorization>")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "<content-type>")
.body("{\n \"@entity\": \"com.quicko.it.tax_payer.individual\",\n \"pan\": \"ABCPS1234K\",\n \"first_name\": \"Rahul\",\n \"middle_name\": \"\",\n \"last_name\": \"Sharma\",\n \"dob\": 650658600000,\n \"gender\": \"male\",\n \"residential_status\": \"resident\",\n \"contact\": {\n \"@entity\": \"org.quicko.contact\",\n \"mobile\": \"9876543210\",\n \"country_code\": \"91\",\n \"email\": \"rahul.sharma@example.com\"\n },\n \"address\": {\n \"@entity\": \"org.quicko.address\",\n \"street\": \"12, Sunrise Apartments, CG Road\",\n \"area\": \"Navrangpura\",\n \"city\": \"Ahmedabad\",\n \"district\": \"Ahmedabad\",\n \"state\": \"Gujarat\",\n \"postal_code\": \"380009\",\n \"country\": \"India\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test-api.sandbox.co.in/it/compliance/eri/tax-payers/registration/otp")
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"] = '<content-type>'
request.body = "{\n \"@entity\": \"com.quicko.it.tax_payer.individual\",\n \"pan\": \"ABCPS1234K\",\n \"first_name\": \"Rahul\",\n \"middle_name\": \"\",\n \"last_name\": \"Sharma\",\n \"dob\": 650658600000,\n \"gender\": \"male\",\n \"residential_status\": \"resident\",\n \"contact\": {\n \"@entity\": \"org.quicko.contact\",\n \"mobile\": \"9876543210\",\n \"country_code\": \"91\",\n \"email\": \"rahul.sharma@example.com\"\n },\n \"address\": {\n \"@entity\": \"org.quicko.address\",\n \"street\": \"12, Sunrise Apartments, CG Road\",\n \"area\": \"Navrangpura\",\n \"city\": \"Ahmedabad\",\n \"district\": \"Ahmedabad\",\n \"state\": \"Gujarat\",\n \"postal_code\": \"380009\",\n \"country\": \"India\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"timestamp": 1793700000000,
"transaction_id": "cde7b291-7020-5256-a60c-2dd7e8a153a7",
"data": {
"httpStatus": "SUBMITTED",
"messages": [],
"errors": [],
"smsTransactionId": "FOS000012345679",
"emailTransactionId": "FOS000012345680",
"successFlag": true
}
}Register client
Register a taxpayer who has no e-Filing account and send OTPs to their mobile number and email.
POST
/
it
/
compliance
/
eri
/
tax-payers
/
registration
/
otp
Register client
curl --request POST \
--url https://test-api.sandbox.co.in/it/compliance/eri/tax-payers/registration/otp \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "com.quicko.it.tax_payer.individual",
"pan": "ABCPS1234K",
"first_name": "Rahul",
"middle_name": "",
"last_name": "Sharma",
"dob": 650658600000,
"gender": "male",
"residential_status": "resident",
"contact": {
"@entity": "org.quicko.contact",
"mobile": "9876543210",
"country_code": "91",
"email": "rahul.sharma@example.com"
},
"address": {
"@entity": "org.quicko.address",
"street": "12, Sunrise Apartments, CG Road",
"area": "Navrangpura",
"city": "Ahmedabad",
"district": "Ahmedabad",
"state": "Gujarat",
"postal_code": "380009",
"country": "India"
}
}
'import requests
url = "https://test-api.sandbox.co.in/it/compliance/eri/tax-payers/registration/otp"
payload = {
"@entity": "com.quicko.it.tax_payer.individual",
"pan": "ABCPS1234K",
"first_name": "Rahul",
"middle_name": "",
"last_name": "Sharma",
"dob": 650658600000,
"gender": "male",
"residential_status": "resident",
"contact": {
"@entity": "org.quicko.contact",
"mobile": "9876543210",
"country_code": "91",
"email": "rahul.sharma@example.com"
},
"address": {
"@entity": "org.quicko.address",
"street": "12, Sunrise Apartments, CG Road",
"area": "Navrangpura",
"city": "Ahmedabad",
"district": "Ahmedabad",
"state": "Gujarat",
"postal_code": "380009",
"country": "India"
}
}
headers = {
"Authorization": "<authorization>",
"x-api-key": "<x-api-key>",
"Content-Type": "<content-type>"
}
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': '<content-type>'
},
body: JSON.stringify({
'@entity': 'com.quicko.it.tax_payer.individual',
pan: 'ABCPS1234K',
first_name: 'Rahul',
middle_name: '',
last_name: 'Sharma',
dob: 650658600000,
gender: 'male',
residential_status: 'resident',
contact: {
'@entity': 'org.quicko.contact',
mobile: '9876543210',
country_code: '91',
email: 'rahul.sharma@example.com'
},
address: {
'@entity': 'org.quicko.address',
street: '12, Sunrise Apartments, CG Road',
area: 'Navrangpura',
city: 'Ahmedabad',
district: 'Ahmedabad',
state: 'Gujarat',
postal_code: '380009',
country: 'India'
}
})
};
fetch('https://test-api.sandbox.co.in/it/compliance/eri/tax-payers/registration/otp', 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/it/compliance/eri/tax-payers/registration/otp",
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' => 'com.quicko.it.tax_payer.individual',
'pan' => 'ABCPS1234K',
'first_name' => 'Rahul',
'middle_name' => '',
'last_name' => 'Sharma',
'dob' => 650658600000,
'gender' => 'male',
'residential_status' => 'resident',
'contact' => [
'@entity' => 'org.quicko.contact',
'mobile' => '9876543210',
'country_code' => '91',
'email' => 'rahul.sharma@example.com'
],
'address' => [
'@entity' => 'org.quicko.address',
'street' => '12, Sunrise Apartments, CG Road',
'area' => 'Navrangpura',
'city' => 'Ahmedabad',
'district' => 'Ahmedabad',
'state' => 'Gujarat',
'postal_code' => '380009',
'country' => 'India'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>",
"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/it/compliance/eri/tax-payers/registration/otp"
payload := strings.NewReader("{\n \"@entity\": \"com.quicko.it.tax_payer.individual\",\n \"pan\": \"ABCPS1234K\",\n \"first_name\": \"Rahul\",\n \"middle_name\": \"\",\n \"last_name\": \"Sharma\",\n \"dob\": 650658600000,\n \"gender\": \"male\",\n \"residential_status\": \"resident\",\n \"contact\": {\n \"@entity\": \"org.quicko.contact\",\n \"mobile\": \"9876543210\",\n \"country_code\": \"91\",\n \"email\": \"rahul.sharma@example.com\"\n },\n \"address\": {\n \"@entity\": \"org.quicko.address\",\n \"street\": \"12, Sunrise Apartments, CG Road\",\n \"area\": \"Navrangpura\",\n \"city\": \"Ahmedabad\",\n \"district\": \"Ahmedabad\",\n \"state\": \"Gujarat\",\n \"postal_code\": \"380009\",\n \"country\": \"India\"\n }\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", "<content-type>")
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/it/compliance/eri/tax-payers/registration/otp")
.header("Authorization", "<authorization>")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "<content-type>")
.body("{\n \"@entity\": \"com.quicko.it.tax_payer.individual\",\n \"pan\": \"ABCPS1234K\",\n \"first_name\": \"Rahul\",\n \"middle_name\": \"\",\n \"last_name\": \"Sharma\",\n \"dob\": 650658600000,\n \"gender\": \"male\",\n \"residential_status\": \"resident\",\n \"contact\": {\n \"@entity\": \"org.quicko.contact\",\n \"mobile\": \"9876543210\",\n \"country_code\": \"91\",\n \"email\": \"rahul.sharma@example.com\"\n },\n \"address\": {\n \"@entity\": \"org.quicko.address\",\n \"street\": \"12, Sunrise Apartments, CG Road\",\n \"area\": \"Navrangpura\",\n \"city\": \"Ahmedabad\",\n \"district\": \"Ahmedabad\",\n \"state\": \"Gujarat\",\n \"postal_code\": \"380009\",\n \"country\": \"India\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test-api.sandbox.co.in/it/compliance/eri/tax-payers/registration/otp")
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"] = '<content-type>'
request.body = "{\n \"@entity\": \"com.quicko.it.tax_payer.individual\",\n \"pan\": \"ABCPS1234K\",\n \"first_name\": \"Rahul\",\n \"middle_name\": \"\",\n \"last_name\": \"Sharma\",\n \"dob\": 650658600000,\n \"gender\": \"male\",\n \"residential_status\": \"resident\",\n \"contact\": {\n \"@entity\": \"org.quicko.contact\",\n \"mobile\": \"9876543210\",\n \"country_code\": \"91\",\n \"email\": \"rahul.sharma@example.com\"\n },\n \"address\": {\n \"@entity\": \"org.quicko.address\",\n \"street\": \"12, Sunrise Apartments, CG Road\",\n \"area\": \"Navrangpura\",\n \"city\": \"Ahmedabad\",\n \"district\": \"Ahmedabad\",\n \"state\": \"Gujarat\",\n \"postal_code\": \"380009\",\n \"country\": \"India\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"timestamp": 1793700000000,
"transaction_id": "cde7b291-7020-5256-a60c-2dd7e8a153a7",
"data": {
"httpStatus": "SUBMITTED",
"messages": [],
"errors": [],
"smsTransactionId": "FOS000012345679",
"emailTransactionId": "FOS000012345680",
"successFlag": true
}
}Use Register client for a taxpayer who has no e-Filing account. For a taxpayer who has one, use Add client.
The request body is a taxpayer object with
@entity set to com.quicko.it.tax_payer.individual. Send dob in epoch milliseconds. The mobile number and email in contact are registered as the taxpayer’s own.
Then call Verify register client OTP with both OTPs and the transaction IDs from this response, data.smsTransactionId and data.emailTransactionId.Headers
Sandbox access token. Send the token without the Bearer prefix. For token-generation steps, see the Quickstart guide.
Body
application/json
Response
The e-Filing portal processed the request. When data.successFlag is true, the OTPs are sent.