Skip to main content
POST
Validate ITR
Validate the ITR JSON before you call Submit ITR, and fix the errors the e-Filing portal reports.

Prepare the ITR JSON

  • Follow the JSON schema the Income Tax Department publishes for the form and assessment year on the e-Filing portal.
  • Include CreationInfo with a Digest field. Sandbox sets Digest, SWVersionNo, SWCreatedBy, JSONCreatedBy and IntermediaryCity.
  • Sandbox reads the PAN from PersonalInfo.PAN, so use the same PAN as tax_payer_id.
  • Sandbox treats the return as revised when the JSON has a ReceiptNo, and as original otherwise.
  • Sandbox removes single quotes (') from the JSON before it sends it to the e-Filing portal.

Headers

Authorization
string
required

Sandbox access token. Send the token without the Bearer prefix. For token-generation steps, see the Quickstart guide.

x-api-key
string
required

Sandbox API key.

Content-Type
string
required

Request body format.

Path Parameters

tax_payer_id
string
required

PAN of the taxpayer.

Pattern: ^[A-Z]{5}[0-9]{4}[A-Z]$

Body

application/json
ITR
object
required

The return, keyed by form, such as ITR1. Follow the JSON schema the Income Tax Department publishes for the form and assessment year on the e-Filing portal. Include CreationInfo with a Digest field.

Response

The e-Filing portal processed the ITR. When data.successFlag is false, data.messages and data.errors list the problems.

code
integer
required

HTTP status code.

Example:

200

timestamp
integer<int64>
required

Response timestamp in epoch milliseconds.

Example:

1793700000000

transaction_id
string
required

Unique identifier for this API request.

Example:

"8d3f6a2e-1b4c-4e7a-9f05-6c2b8e1d4a73"

data
object
required

Response from the e-Filing portal.