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 (
statusACCEPTED) and counts towards tax. - One added by any other role, including Custom, stays
PENDINGuntil 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_idis required, at max 50 characters.financial_yearis a JSON number, the year it starts in:2026means April 2026 to March 2027. Only the current or next financial year; otherwise400on it.declarationsis required, at max 50 entries. All or nothing: if any entry is refused, none is saved.- Each entry needs
sectionandamount(a JSON number, 0 or more, max 12 digits, 2 decimals). ForHRAthe amount is per month. period_startandperiod_endare 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 forHRA(“HRA needs period_start and period_end.” underperiod_start).commentsis optional, at max 500 characters, trimmed.HRAonly, optional:landlord_name(1-200),landlord_address(at max 500),city(at max 100),landlord_pan(upper case, formatABCDE1234F).24Bonly, optional:lender_name(1-200),lender_address(at max 500),lender_pan(upper case, formatABCDE1234F).LTAonly, optional:lta_origin,lta_destination(1-200),lta_claimed(JSON number, 0 or more, 2 decimals).- A detail field on the wrong section gives
400on 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
declarationsas a list in the order sent. For example a period outside the year givesperiod_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 with400, which is harmless. 500“The declarations could not be saved, so nothing was changed. Try again.” if saving fails.
Response
declared_amountis the stored total, the same asdeclared_amountonGET /payroll/tax-declarations. ForHRAit is the monthly amount times the months.statusisACCEPTEDorPENDING. Third parties’ PANs are never returned.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
salarybox_id
SalaryBox ID of an active staff member.
financial_year
The year the financial year starts in, so 2026 means April 2026 to March 2027. Only the current or next financial year.
declarations
Response
The declarations were added.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
