> ## Client identification
>
> Requests to this API should include a `Client-Platform` header alongside
> `Authorization`, identifying the application, tool, or model making the
> request. This is used for integration support and analytics.
>
> Use your model or tool name, for example `claude-code` or `chatgpt`.
>
> Example:
>
> ```bash
> curl https://api.salaryboxapp.com/... \
>   -H "Authorization: Api-Key <api-key>" \
>   -H "Client-Platform: claude-code"
> ```

# List Tax Declarations

GET https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations

Returns the income-tax investment and exemption declarations staff submitted for a financial year, with their approval status. Proof documents are not included. Requires Payroll Pro. Includes inactive staff; staff with no declarations are listed with an empty list.

Only `ACCEPTED` declarations reduce TDS. The submission deadline is in Get Payroll Settings.


Reference: https://docs.salarybox.in/api-reference/payroll/tax-declarations-retrieve

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key   `) — Format: "Api-Key \{api-key}"

## Request

### Query parameters

- `financial_year` (integer, optional) — Year the financial year starts in: `2026` means April 2026 to March 2027. Defaults to the current financial year.
- `salarybox_ids` (list of string, optional) — Repeatable. Limits the result to these staff members, for example `salarybox_ids=SBK7Q2M9TX&salarybox_ids=SBK3H8D1LP`.
- `page` (integer, optional) — Page number, starting at 1.
- `page_size` (integer, optional) — Results per page. Default and maximum 50.

## Response

### 200

The tax declarations for the financial year.

- `message` (string, required)
- `status` (boolean, required)
- `data` (list of EmployeeTaxDeclarations, required)
- `count` (integer, required)
- `prev` (string, required, nullable)
- `next` (string, required, nullable)

## Errors

### 400 Bad Request Error

A parameter is invalid.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 403 Forbidden Error

Your plan does not include payroll.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

## Types

### EmployeeTaxDeclarations

Identity fields shared by per-employee payroll responses.

- `financial_year` (integer, required) — Starting year of the financial year, so 2026 means April 2026 to March 2027.
- `declarations` (list of TaxDeclaration, required) — The staff member's declarations. Empty list if none.
- `salarybox_id` (string, optional) — SalaryBox ID of the staff member. Not null.
- `employee_id` (string, optional) — The employee ID your company assigned. Not null, may be empty.
- `name` (string, optional) — Full name of the staff member. Not null.
- `branches` (list of string, optional) — Names of the branches the staff member belongs to. Empty list if none.
- `departments` (list of string, optional) — Names of the departments the staff member belongs to. Empty list if none.

### TaxDeclaration

One tax declaration a staff member submitted.

- `category` (enum, required) — - `exemption`: for example HRA or LTA. - `deduction`: for example home loan interest (section 24B). - `section_80_deduction`: for example 80C or 80D.
  - Allowed values: `exemption`, `deduction`, `section_80_deduction`
- `section` (string, required) — Tax section, for example `HRA`, `LTA`, `24B`, `80C`, `80CCD(1B)`, `80D`, `80G`, `80TTA`.
- `declared_amount` (string, required) — Total amount the staff member declared for the declaration period, as a 2-decimal string. For HRA this is the total rent for the months in `details.number_of_months` (divide by it for the monthly rent). Always in the same unit as `approved_amount`.
- `status` (enum, required) — Review status. Only `ACCEPTED` declarations reduce TDS.
  - Allowed values: `PENDING`, `ACCEPTED`, `REJECTED`
- `submitted_on` (datetime, required) — When the declaration was submitted, in IST (`+05:30`).
- `approved_amount` (string, optional, nullable) — Amount the admin accepted, as a 2-decimal string, in the same unit as `declared_amount` (for HRA, the total for the declared months). Null until reviewed.
- `period_start` (date, optional, nullable) — Start of the period the declaration applies to. Null if not applicable.
- `period_end` (date, optional, nullable) — End of the period the declaration applies to. Null if not applicable.
- `admin_remark` (string, optional, nullable) — Remark added by the admin when reviewing. Null if none.
- `comments` (string, optional, nullable) — Comment written by the staff member. Null if none.
- `details` (map from string to any, optional) — Extra section-specific details, such as rent, landlord or home-loan information. The keys vary by section. Empty object if none. Landlord and lender PANs are never included, nor are uploaded proof documents.

## Examples

**Response**

```json
{
  "message": "Success",
  "status": true,
  "data": [
    {
      "financial_year": 2026,
      "declarations": [
        {
          "category": "exemption",
          "section": "HRA",
          "declared_amount": "300000.00",
          "status": "ACCEPTED",
          "submitted_on": "2026-06-12T18:30:44+05:30",
          "approved_amount": "300000.00",
          "period_start": "2026-04-01",
          "period_end": "2027-03-31",
          "admin_remark": "Rent receipts verified",
          "comments": "Rented flat in Andheri",
          "details": {
            "city_type": "metro",
            "landlord_name": "Suresh Mehta",
            "number_of_months": "12"
          }
        },
        {
          "category": "section_80_deduction",
          "section": "80C",
          "declared_amount": "150000.00",
          "status": "PENDING",
          "submitted_on": "2026-06-14T10:05:09+05:30",
          "approved_amount": null,
          "period_start": null,
          "period_end": null,
          "admin_remark": null,
          "comments": null,
          "details": {}
        }
      ],
      "salarybox_id": "SBK7Q2M9TX",
      "employee_id": "EMP-0042",
      "name": "Aarav Sharma",
      "branches": [
        "Mumbai HQ"
      ],
      "departments": [
        "Engineering"
      ]
    },
    {
      "financial_year": 2026,
      "declarations": [],
      "salarybox_id": "SBK3H8D1LP",
      "employee_id": "EMP-0057",
      "name": "Priya Nair",
      "branches": [
        "Bengaluru"
      ],
      "departments": [
        "Sales"
      ]
    }
  ],
  "count": 2,
  "prev": null,
  "next": null
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations"

querystring = {"financial_year":"2026"}

headers = {"Authorization": "Api-Key  <apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations?financial_year=2026';
const options = {method: 'GET', headers: {Authorization: 'Api-Key  <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations?financial_year=2026"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Example
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations?financial_year=2026")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'

response = http.request(request)
puts response.read_body
```

```java Example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations?financial_year=2026")
  .header("Authorization", "Api-Key  <apiKey>")
  .asString();
```

```php Example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations?financial_year=2026', [
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations?financial_year=2026");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = ["Authorization": "Api-Key  <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/payroll/tax-declarations?financial_year=2026")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```