Get P&l Job Status
curl --request GET \
--url https://test-api.sandbox.co.in/it/calculator/pnl/securities/domesticimport requests
url = "https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic', 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/calculator/pnl/securities/domestic",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic")
.asString();require 'uri'
require 'net/http'
url = URI("https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"@entity": "in.co.sandbox.it.calculator.pnl.securities.job",
"job_id": "0d931fe5-5a9f-4e6d-bde7-c28d95e00706",
"status": "created",
"type": "pnl",
"created_at": 1737445277235,
"updated_at": 1737445277235
},
"transaction_id": "2e7005a0-6c9c-4bbb-8d17-6fb853c6d871",
"timestamp": 1737445343271
}Check the processing status of a domestic securities Tax P&L job.
GET
/
it
/
calculator
/
pnl
/
securities
/
domestic
Get P&l Job Status
curl --request GET \
--url https://test-api.sandbox.co.in/it/calculator/pnl/securities/domesticimport requests
url = "https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic', 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/calculator/pnl/securities/domestic",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic")
.asString();require 'uri'
require 'net/http'
url = URI("https://test-api.sandbox.co.in/it/calculator/pnl/securities/domestic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"@entity": "in.co.sandbox.it.calculator.pnl.securities.job",
"job_id": "0d931fe5-5a9f-4e6d-bde7-c28d95e00706",
"status": "created",
"type": "pnl",
"created_at": 1737445277235,
"updated_at": 1737445277235
},
"transaction_id": "2e7005a0-6c9c-4bbb-8d17-6fb853c6d871",
"timestamp": 1737445343271
}Was this page helpful?
āI