> ## Documentation Index
> Fetch the complete documentation index at: https://developer.sandbox.co.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Salary payments

> Prepare Form 138 Sheet JSON for the TDS Potential Notices API. Upload payment and challan details and download the assessment.

Use Form 138 to check potential TDS notices for salary payments. Submit `form: "138"` with a `tax_year` such as `TY 2026-27`, then upload a `form138_workbook` in Sheet JSON format.

Form 138 supports Q1, Q2, and Q3. Q4 is unavailable until the government releases its format. Salary short deduction is not assessed, so its summary status is `N/A`. The other checks use reported deductions.

## Prepare your workbook

Start with the [Form 138 sample](https://developer.sandbox.co.in/data/tds/analytics/forms/form138_workbook.data.json) and validate it against the [input schema](https://developer.sandbox.co.in/data/tds/analytics/forms/form138_workbook.schema.json). Keep table headers in schema order. Each value in a row corresponds to the header at the same position.

* Set `is_pan_operative` to a JSON boolean in each payee row.
* Set `utilized_amount` to the challan credit already used outside the payments in this workbook.
* Use Unix timestamps in milliseconds for date fields. `payment_date_epoch` means the earlier of payment or credit.
* Match the workbook TAN, tax year, and quarter to the job request.

The sample uses synthetic data with TAN `AHMA00000C`, tax year `TY 2026-27`, and quarter `Q1`. Its deductions and deposits are on time, but submitting it after the filing deadline can still produce a filing fee.

## Generate the report

1. [Create a job](https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/endpoints/submit_job.md) and save its `job_id` and `input_json_url`.
2. Upload the workbook to `input_json_url` using a PUT request and `Content-Type: application/json`.
3. [Poll the job](https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/endpoints/poll_job.md) until its status is `succeeded` or `failed`.
4. On success, download `output_json_url` for Sheet JSON or `output_excel_url` for Excel. If row validation fails, download `validation_json_url` for JSON issues or `validation_excel_report_url` for annotated Excel.

The report uses the job creation time as its calculation cutoff.

See the [output workbook](https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/get_response/form138.md) for summary flags, interest fields, and assessment limits.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.