Creates a new leave allowance template for the business.

Request

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

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

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

{
    "externalId": "string",
    "id": "int32",
    "leaveCategories": [
        {
            "canApplyForLeave": "boolean",
            "contingentPeriod": "double",
            "entitlementPeriod": "double",
            "leaveCategoryId": "int32",
            "leaveLoading": "double",
            "unitType": "string",
            "units": "double"
        }
    ],
    "name": "string",
    "source": "string"
}

Properties

Name Type
externalId string
id int32
leaveCategories[] array
leaveCategories[].canApplyForLeave boolean
leaveCategories[].contingentPeriod double
leaveCategories[].entitlementPeriod double
leaveCategories[].leaveCategoryId int32
leaveCategories[].leaveLoading double
leaveCategories[].unitType string
leaveCategories[].units double
name string
source string

Response

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

Status code Description Resource
200 OK

OK