Employees

Update an employee employment.

Updates an employee employment and returns it.

put/payrolls/employees/{id}/salaryinfo/employments/{employmentId}

Request

  • Base URL: https://pts-api.procountor.com/api
  • URL: https://pts-api.procountor.com/api/payrolls/employees/{id}/salaryinfo/employments/{employmentId}
  • Auth: HTTP bearer

Path parameters

idinteger required

ID of the employee

employmentIdinteger required

ID of the employment

Request body

startDatestring date

Employment start date.

endDatestring date

Employment end date.

type'PERMANENT' | 'FIXED_TERM' | 'TEMPORARY' | 'PART_TIME' | 'TRAINEE' | 'PENSIONER' | 'NOT_EMPLOYED'

Type. Can be enum value or any string.

terminationReason'NOT_APPLICABLE' | 'EMPLOYEES_RESIGNATION' | 'OTHER' | 'TERMINATION_GROUNDS' | 'FINANCIAL_AND_PRODUCTION_GROUNDS' | 'JOINT_AGREEMENT' | 'RETIREMENT' | 'FIXED_TERM_EMPLOYMENT_TERMINATION' required

Reason for termination. When employment type is Keva, the reason code must be from Kevas numeric codes.

registrationGroundIdstring

Registration grounds id (Keva).

hoursPerWeeknumber

Hours per week. Scale: 2.

employmentType'FULL_TIME' | 'NOT_AVAILABLE' | 'PART_TIME'

Employment type.

partTimePercentnumber

Part-time percent. Required when employment type is set to "PART_TIME". Scale: 2.

idinteger

Unique identifier of employee employment.

kevaboolean required

Keva.

versionstring date-time

Version. Not allowed in POST. Required in PUT.

Response

Employment was successfully updated.

startDatestring date

Employment start date.

endDatestring date

Employment end date.

type'PERMANENT' | 'FIXED_TERM' | 'TEMPORARY' | 'PART_TIME' | 'TRAINEE' | 'PENSIONER' | 'NOT_EMPLOYED'

Type. Can be enum value or any string.

terminationReason'NOT_APPLICABLE' | 'EMPLOYEES_RESIGNATION' | 'OTHER' | 'TERMINATION_GROUNDS' | 'FINANCIAL_AND_PRODUCTION_GROUNDS' | 'JOINT_AGREEMENT' | 'RETIREMENT' | 'FIXED_TERM_EMPLOYMENT_TERMINATION' required

Reason for termination. When employment type is Keva, the reason code must be from Kevas numeric codes.

registrationGroundIdstring

Registration grounds id (Keva).

hoursPerWeeknumber

Hours per week. Scale: 2.

employmentType'FULL_TIME' | 'NOT_AVAILABLE' | 'PART_TIME'

Employment type.

partTimePercentnumber

Part-time percent. Required when employment type is set to "PART_TIME". Scale: 2.

idinteger

Unique identifier of employee employment.

kevaboolean required

Keva.

versionstring date-time

Version. Not allowed in POST. Required in PUT.

Changes

No recorded changes to this operation across all 1 revision of this API.