Skip to main content
POST
/
it
/
calculator
/
crypto
/
tax-pnl
Submit Tax P&L Job
curl --request POST \
  --url https://api.sandbox.co.in/it/calculator/crypto/tax-pnl \
  --header 'Authorization: <authorization>' \
  --header 'x-accept-type: <x-accept-type>' \
  --header 'x-api-key: <x-api-key>'
{
  "code": 123,
  "timestamp": 123,
  "transaction_id": "<string>",
  "data": {
    "@entity": "<string>",
    "job_id": "<string>",
    "report": "<string>",
    "from": 123,
    "to": 123,
    "status": "<string>",
    "tradebook_url": "<string>"
  }
}

Headers

x-accept-type
enum<string>
default:application/json
required

Specifies the response format expected from the API. Use application/json for JSON responses or application/xlsx for Excel file downloads.application/xlsx

Available options:
application/json,
application/xlsx
x-api-key
string
required

Specifies the response format expected from the API. Use application/json for JSON responses or application/xlsx for Excel file downloads.application/xlsx

x-api-version
string
default:1.0.0

Indicates the version of the API you want to use. Ensures backward-compatible behavior.

Authorization
string
required

Bearer token for user-level authorization. Typically passed as Bearer {{access_token}}.

Query Parameters

report
string
default:tradewise
required

Specifies the report type to fetch

from
number
required

Start of the date range filter in Unix Epoch timestamp (milliseconds). Settlements from this timestamp onward will be included

to
number
required

End of the date range filter in Unix Epoch timestamp (milliseconds). Settlements up to this timestamp will be included.

Response

Success

code
integer
timestamp
integer
transaction_id
string
data
object