Skip to navigation

Add Staff Tax Declarations

Adds income tax declarations for one staff member for a financial year. Add only: it cannot change an existing declaration. Shared rules: see Writing data. Needs Payroll on your plan.

This can change the staff member’s TDS.

  • A declaration added through the API is accepted straight away (status ACCEPTED) and counts towards tax.
  • One added by any other role, including Custom, stays PENDING until approved in the SalaryBox app. It doesn’t count until then.
  • Payroll for the current month is recalculated afterwards unless that month is finalised.
  • The staff member gets the usual notification.
  • There is no API to change or remove a declaration. Corrections are made in the SalaryBox app.

Request

  • salarybox_id is required, at max 50 characters.
  • financial_year is a JSON number, the year it starts in: 2026 means April 2026 to March 2027. Only the current or next financial year; otherwise 400 on it.
  • declarations is required, at max 50 entries. All or nothing: if any entry is refused, none is saved.
  • Each entry needs section and amount (a JSON number, 0 or more, max 12 digits, 2 decimals). For HRA the amount is per month.
  • period_start and period_end are optional, YYYY-MM-DD, both or neither, inside the financial year, start not after end. Left out means the whole financial year. They are required for HRA (“HRA needs period_start and period_end.” under period_start).
  • comments is optional, at max 500 characters, trimmed.
  • HRA only, optional: landlord_name (1-200), landlord_address (at max 500), city (at max 100), landlord_pan (upper case, format ABCDE1234F).
  • 24B only, optional: lender_name (1-200), lender_address (at max 500), lender_pan (upper case, format ABCDE1234F).
  • LTA only, optional: lta_origin, lta_destination (1-200), lta_claimed (JSON number, 0 or more, 2 decimals).
  • A detail field on the wrong section gives 400 on it, for example “Only used with section HRA.”
  • Proof documents can’t be sent (unknown field 400); they are added in the SalaryBox app.

Errors

  • Per-entry errors come back under declarations as a list in the order sent. For example a period outside the year gives period_start: “The period must be inside the financial year.”
  • A declaration with the same section, period and amount already on file and not rejected, or repeated in the request, gives section: “This declaration is already on file.” Repeating a request that succeeded is therefore refused with 400, which is harmless.
  • 500 “The declarations could not be saved, so nothing was changed. Try again.” if saving fails.

Response

  • declared_amount is the stored total, the same as declared_amount on GET /payroll/tax-declarations. For HRA it is the monthly amount times the months.
  • status is ACCEPTED or PENDING. Third parties’ PANs are never returned.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
salarybox_idstringRequired1-50 characters
SalaryBox ID of an active staff member.
financial_yeardoubleRequired

The year the financial year starts in, so 2026 means April 2026 to March 2027. Only the current or next financial year.

declarationslist of objectsRequired

Response

The declarations were added.
messagestringOptional
statusbooleanOptional
dataobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error