Add Staff Employment History
Adds one past job to a staff member’s employment history. Shared rules: see Writing Data.
salarybox_idgoes in the URL path, not the body.- Each call adds a new entry.
- Dates can’t be in the future, and the leaving date can’t be before the joining date.
salaryis returned as a string with 2 decimals, ornull.- Editing an entry is not available; correct it in the SalaryBox app. Use List Staff Employment History to read entries back.
Custom role needs: staff_details:edit.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Path parameters
salarybox_id
SalaryBox ID of the staff member.
Request
This endpoint expects an object.
company_name
Previous employer (extra spaces around it are trimmed).
designation
Job title held there (up to 100 characters).
joining_date
YYYY-MM-DD; not in the future.
leaving_date
YYYY-MM-DD; not in the future and not before joining_date.
salary
A number (not text), 0 or more, up to 2 decimal places and 12 digits in total.
company_gst
A valid GSTIN, for example 24AAACB5343E1Z7 (upper-cased for you).
currency
Response
The employment history entry was added.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
