Salaries
Create a salary record
Changed onCreates a new salary record for an employee, effective from the given date. Salary records are immutable — to change an employee's salary, create a new record with a later effective_from date rather than modifying an existing one.
post/employees/{employee_id}/salaries
Request
- Base URLhttps://test.api.kota.io
- URLhttps://test.api.kota.io/employees/{employee_id}/salaries
- AuthHTTP bearer
Path parameters
employee_idstring required
Example:ee_3b1333d87d9d4fd6ad83ba7f6b0e951a
Headers
Idempotency-Keystring
Unique key to ensure idempotent requests. If the same key is used for multiple identical & successful requests, the same response will be returned. Read more here
Request body
Example request
{
"amount": 123.45,
"effective_from": "2024-12-01"
}Response
OK
Example response
{
"id": "sal_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"employee_id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"amount": 123.45,
"effective_from": "2024-12-01"
}Changes
- warning
deleted the
headerrequest parameterX-Platform-Id
- warning
- info
endpoint added
- info