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

Request

POST https://api.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
employeeIdType string
leaveAllowances object
leaveAllowances.<key> map of array
leaveAllowances.<key>.automaticallyAccrues boolean
leaveAllowances.<key>.hoursPerYear double
leaveAllowances.<key>.leaveCategoryId string
leaveAllowances.<key>.leaveCategoryName string
leaveAllowances.<key>.leaveLoading double
leaveAllowances.<key>.unitType string
leaveAllowances.<key>.units double
leaveCategoryIdType string

Response

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

Status code Description Resource
200 OK

OK