Calculate Income Tax as per New Regime

post
Calculate Income Tax as per New Regime

https://api.sandbox.co.in/calculators/income-tax/new
Calculate Income Tax as per New Regime announced in the Budget 2020.
Request
Response
Request
Headers
Authorization
required
string
JWT Authorization token
x-api-key
required
string
Public key required to authorize API access
x-api-version
optional
string
Content-Type
optional
string
application/json
Response
200: OK
Success
Success
{
"code": 200,
"transaction_id": "8225c376-58b2-49e4-a079-c521b97d8864",
"timestamp": 1620724192345,
"data": {
"gross_total_income": 1107160,
"cyla": 0,
"cfl": 0,
"total_deductions_under_chapter_vi_a": 0,
"gross_taxable_income": 1107160,
"tax_on_total_income": 96432,
"rebate": 0,
"surcharge": 0,
"health_and_education_cess": 3858,
"total_tax_payable": 100290,
"effective_tax_rate": 9
}
}
500: Internal Server Error
{
"code": 500,
"transaction_id": "8225c376-58b2-49e4-a079-c521b97d8864",
"timestamp": 1620724192345,
"message": "Failed to compute tax as per new regime"
}

BODY Raw

{
"financial_year": "FY 2020-21",
"pan": "XXXPX0000X",
"filing_category": "General",
"residential_status": "Resident",
"basic_salary": 720000,
"hra_received": 120000,
"rent_paid": 240000,
"address": {
"city": "Mumbai"
},
"other_allowances": 50000,
"interest_paid_on_let_out_hp_loan": 200000,
"rent_received": 350000,
"property_tax_paid": 1200,
"interest_paid_on_self_occupied_hp_loan" : 0,
"savings_interest": 11000,
"fd_interest": 50000,
"dividend_income": 12000,
"other_income": 100000,
"stcg_15" : 0,
"stcg_30" : 0,
"stcg_slab" : 0,
"ltcg_10" : 0,
"ltcg_20" : 0,
"regular_business_turnover" : 0,
"regular_business_profit" : 0,
"speculative_business_turnover" : 0,
"speculative_business_profit" : 0,
"elss" : 50000,
"nps" : 50000,
"ppf" : 50000,
"epf" : 0,
"lic_premium" : 50000,
"other_investment" : 0,
"deduction_80_ccd_1_b" : 30000,
"deduction_80_ccd_2": 0,
"deduction_80_d_self": 25000,
"deduction_80_d_parents" : 0,
"deduction_80_d_parents_senior" : 0,
"deduction_80_g" : 0,
"deduction_80_e" : 0,
"deduction_80_eeb" : 0,
"deduction_80_gg" : 0
}

Example Request

cURL
Java
Node.js
Python
cURL
curl --location --request POST 'https://api.sandbox.co.in/calculators/income-tax/new' \
--header 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw' \
--header 'x-api-key: key_live_Ade**************************Uxs' \
--header 'x-api-version: 3' \
--header 'Content-Type: application/json' \
--data-raw '{
"financial_year": "FY 2020-21",
"pan": "XXXPX0000X",
"filing_category": "General",
"residential_status": "Resident",
"basic_salary": 720000,
"hra_received": 120000,
"rent_paid": 240000,
"address": {
"city": "Mumbai"
},
"other_allowances": 50000,
"interest_paid_on_let_out_hp_loan": 200000,
"rent_received": 350000,
"property_tax_paid": 1200,
"interest_paid_on_self_occupied_hp_loan" : 0,
"savings_interest": 11000,
"fd_interest": 50000,
"dividend_income": 12000,
"other_income": 100000,
"stcg_15" : 0,
"stcg_30" : 0,
"stcg_slab" : 0,
"ltcg_10" : 0,
"ltcg_20" : 0,
"regular_business_turnover" : 0,
"regular_business_profit" : 0,
"speculative_business_turnover" : 0,
"speculative_business_profit" : 0,
"elss" : 50000,
"nps" : 50000,
"ppf" : 50000,
"epf" : 0,
"lic_premium" : 50000,
"other_investment" : 0,
"deduction_80_ccd_1_b" : 30000,
"deduction_80_ccd_2": 0,
"deduction_80_d_self": 25000,
"deduction_80_d_parents" : 0,
"deduction_80_d_parents_senior" : 0,
"deduction_80_g" : 0,
"deduction_80_e" : 0,
"deduction_80_eeb" : 0,
"deduction_80_gg" : 0
}'
Java
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"financial_year\": \"FY 2020-21\",\r\n \"pan\": \"XXXPX0000X\", \r\n \"filing_category\": \"General\", \r\n \"residential_status\": \"Resident\",\r\n \"basic_salary\": 720000, \r\n \"hra_received\": 120000, \r\n \"rent_paid\": 240000, \r\n \"address\": {\r\n \"city\": \"Mumbai\" \r\n },\r\n \"other_allowances\": 50000, \r\n \"interest_paid_on_let_out_hp_loan\": 200000,\r\n \"rent_received\": 350000, \r\n \"property_tax_paid\": 1200, \r\n \"interest_paid_on_self_occupied_hp_loan\" : 0,\r\n \"savings_interest\": 11000,\r\n \"fd_interest\": 50000,\r\n \"dividend_income\": 12000, \r\n \"other_income\": 100000,\r\n \"stcg_15\" : 0,\r\n \"stcg_30\" : 0,\r\n \"stcg_slab\" : 0,\r\n \"ltcg_10\" : 0,\r\n \"ltcg_20\" : 0,\r\n \"regular_business_turnover\" : 0,\r\n \"regular_business_profit\" : 0,\r\n \"speculative_business_turnover\" : 0,\r\n \"speculative_business_profit\" : 0,\r\n \"elss\" : 50000,\r\n \"nps\" : 50000,\r\n \"ppf\" : 50000,\r\n \"epf\" : 0,\r\n \"lic_premium\" : 50000,\r\n \"other_investment\" : 0,\r\n \"deduction_80_ccd_1_b\" : 30000,\r\n \"deduction_80_ccd_2\": 0, \r\n \"deduction_80_d_self\": 25000,\r\n \"deduction_80_d_parents\" : 0,\r\n \"deduction_80_d_parents_senior\" : 0,\r\n \"deduction_80_g\" : 0,\r\n \"deduction_80_e\" : 0,\r\n \"deduction_80_gg\" : 0,\r\n \"deduction_80_eeb\" : 0\r\n}");
Request request = new Request.Builder()
.url("https://api.sandbox.co.in/calculators/income-tax/new")
.method("POST", body)
.addHeader("Authorization", "eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw")
.addHeader("x-api-key", "key_live_Ade**************************Uxs")
.addHeader("x-api-version", "3")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
Node.js
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.sandbox.co.in',
'path': '/calculators/income-tax/new',
'headers': {
'Authorization': 'eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw',
'x-api-key': 'key_live_Ade**************************Uxs',
'x-api-version': '3',
'Content-Type': 'application/json'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"financial_year":"FY 2020-21","pan":"XXXPX0000X","filing_category":"General","residential_status":"Resident","basic_salary":720000,"hra_received":120000,"rent_paid":240000,"address":{"city":"Mumbai"},"other_allowances":50000,"interest_paid_on_let_out_hp_loan":200000,"rent_received":350000,"property_tax_paid":1200,"interest_paid_on_self_occupied_hp_loan":0,"savings_interest":11000,"fd_interest":50000,"dividend_income":12000,"other_income":100000,"stcg_15":0,"stcg_30":0,"stcg_slab":0,"ltcg_10":0,"ltcg_20":0,"regular_business_turnover":0,"regular_business_profit":0,"speculative_business_turnover":0,"speculative_business_profit":0,"elss":50000,"nps":50000,"ppf":50000,"epf":0,"lic_premium":50000,"other_investment":0,"deduction_80_ccd_1_b":30000,"deduction_80_ccd_2":0,"deduction_80_d_self":25000,"deduction_80_d_parents":0,"deduction_80_d_parents_senior":0,"deduction_80_g":0,"deduction_80_e":0,"deduction_80_eeb":0,"deduction_80_gg":0});
req.write(postData);
req.end();
Python
import requests
url = "https://api.sandbox.co.in/calculators/income-tax/new"
payload="{\r\n \"financial_year\": \"FY 2020-21\",\r\n \"pan\": \"XXXPX0000X\", \r\n \"filing_category\": \"General\", \r\n \"residential_status\": \"Resident\",\r\n \"basic_salary\": 720000, \r\n \"hra_received\": 120000, \r\n \"rent_paid\": 240000, \r\n \"address\": {\r\n \"city\": \"Mumbai\" \r\n },\r\n \"other_allowances\": 50000, \r\n \"interest_paid_on_let_out_hp_loan\": 200000,\r\n \"rent_received\": 350000, \r\n \"property_tax_paid\": 1200, \r\n \"interest_paid_on_self_occupied_hp_loan\" : 0,\r\n \"savings_interest\": 11000,\r\n \"fd_interest\": 50000,\r\n \"dividend_income\": 12000, \r\n \"other_income\": 100000,\r\n \"stcg_15\" : 0,\r\n \"stcg_30\" : 0,\r\n \"stcg_slab\" : 0,\r\n \"ltcg_10\" : 0,\r\n \"ltcg_20\" : 0,\r\n \"regular_business_turnover\" : 0,\r\n \"regular_business_profit\" : 0,\r\n \"speculative_business_turnover\" : 0,\r\n \"speculative_business_profit\" : 0,\r\n \"elss\" : 50000,\r\n \"nps\" : 50000,\r\n \"ppf\" : 50000,\r\n \"epf\" : 0,\r\n \"lic_premium\" : 50000,\r\n \"other_investment\" : 0,\r\n \"deduction_80_ccd_1_b\" : 30000,\r\n \"deduction_80_ccd_2\": 0, \r\n \"deduction_80_d_self\": 25000,\r\n \"deduction_80_d_parents\" : 0,\r\n \"deduction_80_d_parents_senior\" : 0,\r\n \"deduction_80_g\" : 0,\r\n \"deduction_80_e\" : 0,\r\n \"deduction_80_gg\" : 0,\r\n \"deduction_80_eeb\" : 0\r\n}"
headers = {
'Authorization': 'eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw',
'x-api-key': 'key_live_Ade**************************Uxs',
'x-api-version': '3',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)