Skip to main content
Sandbox’s income tax compliance APIs connect to the Income Tax Department’s e-Filing portal. Use them in your tax software to:
  • File returns: add taxpayers as clients, fetch their prefill data, and validate, file and e-verify their income tax returns (ITRs). Sandbox calls the portal as an e-return intermediary (ERI).
  • Pay income tax: create income tax challans through the e-Pay Tax service and confirm that they are paid.

Key features

Add clients

Add a taxpayer as your client with an OTP, or register a taxpayer who has no e-Filing account.

Prefill data

Download the taxpayer’s prefill data for an assessment year, with their consent.

Validate and file

Check the ITR JSON against the e-Filing portal’s validations and file the return.

E-verify and track

E-verify the return with an Aadhaar OTP or EVC, get the ITR-V and track the return.

Create challans

Create a challan for advance tax or self-assessment tax and get the RTGS or NEFT details to pay it.

Confirm payments

Confirm that a challan is paid and get the details to report the tax paid in the return.

File a return

1

Add the taxpayer as your client

Call Add client with the PAN and date of birth, and verify the OTP the taxpayer receives with Verify add client OTP. For a taxpayer without an e-Filing account, use Register client and Verify register client OTP instead.
2

Fetch prefill data

Optional. Generate an OTP for the assessment year and verify it to get the prefill JSON. Use it to prepare the return.
3

Validate the return

Send the ITR JSON to Validate ITR and fix the errors the e-Filing portal reports.
4

File the return

Send the same JSON to Submit ITR. Save data.arnNumber, the acknowledgement number. The next steps need it.
5

Verify the return

E-verify it with Generate EVC and Validate EVC. To verify it by ITR-V or later instead, use Update verification mode.

Pay income tax

1

Start a payment session

Call Generate OTP with the PAN and a mobile number, then Verify OTP to get a taxpayer access token.
2

Create a challan

Call Create challan with the taxpayer access token. The response has the challan reference number (CRN) and the RTGS or NEFT details to pay it.
3

Pay the challan

Transfer the exact challan amount by RTGS or NEFT to the account in the response before the challan expires. The payment happens outside the API.
4

Confirm the payment

Call Get challan for the payment details, or Get payment status to check the status without OTP verification.

Before you start

Get your API key and access token from the Quickstart guide. Send the API key in x-api-key and a token in the Authorization header: You also need:
  • The OTPs the Income Tax Department sends the taxpayer. The ERI APIs need one to add a client, to download prefill data and to e-verify a return. The tax payment APIs need one to start a payment session.
  • For ITR filing, the ITR JSON in the schema the Income Tax Department publishes for each form and assessment year on the e-Filing portal.

Errors

When a request fails, the response has code, timestamp, transaction_id and message instead of data.

API reference

ERI client APIs

ERI prefill APIs

ERI ITR APIs

Tax payment APIs