Create leave allowances for specific employees (dictionary keyed by employee ID).

Request

POST https://keypay.yourpayroll.com.au/api/v2/business/{businessId}/leaveallowances

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

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

{
    "employeeIdType": "string",
    "leaveAllowances": {
        "<key>": "array"
    },
    "leaveCategoryIdType": "string"
}

Properties

Name Type Description
employeeIdType string IdType

Possible values are:

  • Standard
  • External
leaveAllowances object Dictionary
leaveAllowances.<key> map of array List
leaveAllowances.<key>.automaticallyAccrues boolean Boolean
leaveAllowances.<key>.hoursPerYear double Decimal
leaveAllowances.<key>.leaveCategoryId string String
leaveAllowances.<key>.leaveCategoryName string String
leaveAllowances.<key>.leaveLoading double Decimal
leaveAllowances.<key>.unitType string String
leaveAllowances.<key>.units double Nullable
leaveCategoryIdType string IdType

Possible values are:

  • Standard
  • External

Response

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

Status code Description Resource
200 OK

OK