Creates a new Tiered Leave Allowance template for the business.

Request

POST https://apisg.yourpayroll.io/api/v2/business/{businessId}/tieredleaveallowancetemplate

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

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

{
    "deleted": "boolean",
    "id": "int32",
    "leaveAllowanceTemplateTiers": [
        {
            "leaveAllowanceTemplateId": "int32",
            "leaveAllowanceTemplateName": "string",
            "maxUnit": "int32",
            "minUnit": "int32"
        }
    ],
    "name": "string",
    "tierOption": "string"
}

Properties

Name Type Description
deleted boolean Boolean
id int32 Int32
leaveAllowanceTemplateTiers[] array
leaveAllowanceTemplateTiers[].leaveAllowanceTemplateId int32 Int32
leaveAllowanceTemplateTiers[].leaveAllowanceTemplateName string String
leaveAllowanceTemplateTiers[].maxUnit int32 Nullable
leaveAllowanceTemplateTiers[].minUnit int32 Nullable
name string String
tierOption string Nullable

Possible values are:

  • Anniversary
  • AnniversaryInMonths

Response

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

Status code Description Resource
200 OK

OK

TieredLeaveAllowanceTemplateApiModel