Sets the leave allowances for the specified employee

Request

PUT https://keypay.yourpayroll.com.au/api/v2/business/{businessId}/employee/{employeeId}/leaveallowances

Path parameters

Parameter name Value Description Additional
businessId string Required
employeeId string Required

Request body

The request body takes a complete LeaveAllowanceModel resource, containing the following writable properties:

{
    "automaticallyAccrues": "boolean",
    "hoursPerYear": "double",
    "leaveAccrualRule": {
        "accrualType": "string",
        "accrueInAdvance": "boolean",
        "capType": "string",
        "carryOverAmount": "double",
        "carryOverBehaviour": "string",
        "id": "int32",
        "unitCap": "double"
    },
    "leaveCategoryId": "string",
    "leaveCategoryName": "string",
    "leaveLoading": "double",
    "unitType": "string",
    "units": "double"
}

Properties

Name Type Description
automaticallyAccrues boolean Boolean
hoursPerYear double Decimal
leaveAccrualRule object LeaveAccrualRuleViewModel
leaveAccrualRule.accrualType string LeaveAccrualType

Possible values are:

  • Ongoing
  • Yearly
leaveAccrualRule.accrueInAdvance boolean Boolean
leaveAccrualRule.capType string LeaveAccrualCapType

Possible values are:

  • NotLimited
  • Limited
leaveAccrualRule.carryOverAmount double Decimal
leaveAccrualRule.carryOverBehaviour string LeaveAccrualCarryOverBehaviour

Possible values are:

  • CarryEntireAmount
  • CarryHours
leaveAccrualRule.id int32 Int32
leaveAccrualRule.unitCap double Decimal
leaveCategoryId string String
leaveCategoryName string String
leaveLoading double Decimal
unitType string String
units double Nullable

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK