Maintain Leave Balances

put/accounts/{accountId}/employees/{employeeId}/leave-balances

Creates/Updates the list of employees leave balances. If the leave balances exist they will be updated otherwise they will be created.

The following fields are mandatory for this request when using AU: * Annual Leave (annualLeave) * Personal Leave (personalLeave) * Long Service Leave (longServiceLeave)

The following fields are mandatory for this request when using NZ: * Annual Leave (annualLeave) * Sick Leave (sickLeave) * Parental Leave (parentalLeave) * Alternative Holidays (alternativeHolidays) * Long Service Leave (longServiceLeave) * Bereavement Leave (bereavementLeave) * Domestic Violence Leave (domesticViolenceLeave)

The leave balances are captured in hours. If the user is providing more than 2 decimal places then we round-off the leave balance. Example: 3.91501956 becomes 3.92 and 3.9956 becomes 4.

Scope: manage:employees:payroll

Request

Path Parameters

NameTypeRequiredExampleDescription
accountIdstringrequired4eb62cb48c9f429c93bc26664c1a5a4d

Unique identifier of an account.

employeeIdstringrequiredb48c9f429c93bc26664c1a5a4d1273

Unique identifier of an employee within an account.

Request Body

    Responses

    Employee Leave Balances created/updated successfully
    © 2022 enableHR · All rights reserved