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 AuLeaveAllowanceTemplateModel resource, containing the following writable properties:

{
    "awardId": "int32",
    "awardName": "string",
    "externalId": "string",
    "id": "int32",
    "leaveAccrualStartDateType": "string",
    "leaveCategories": [
        {
            "accrualRuleLeaveYearOffsetAmount": "int32",
            "canApplyForLeave": "boolean",
            "contingentPeriod": "double",
            "entitlementPeriod": "double",
            "leaveAccrualRuleAccrualType": "string",
            "leaveAccrualRuleAccrueInAdvance": "boolean",
            "leaveAccrualRuleCapType": "string",
            "leaveAccrualRuleCarryOverAmount": "double",
            "leaveAccrualRuleCarryOverBehaviour": "string",
            "leaveAccrualRuleUnitCap": "double",
            "leaveCategoryId": "int32",
            "leaveCategoryName": "string",
            "leaveLoading": "double",
            "leaveUnitType": "string",
            "unitType": "string",
            "units": "double"
        }
    ],
    "leaveLoadingCalculatedFromPayCategoryId": "int32",
    "leaveYearStart": "date-time",
    "name": "string",
    "source": "string"
}

Properties

Name Type Description
awardId int32 Nullable
awardName string String
externalId string String
id int32 Int32
leaveAccrualStartDateType string Nullable

Possible values are:

  • EmployeeStartDate
  • SpecifiedDate
  • CalendarYear
  • CategorySpecificDate
leaveCategories[] array
leaveCategories[].accrualRuleLeaveYearOffsetAmount int32 Nullable
leaveCategories[].canApplyForLeave boolean Boolean
leaveCategories[].contingentPeriod double Nullable
leaveCategories[].entitlementPeriod double Nullable
leaveCategories[].leaveAccrualRuleAccrualType string LeaveAccrualType

Possible values are:

  • Ongoing
  • Yearly
  • BasedOnLengthOfService
leaveCategories[].leaveAccrualRuleAccrueInAdvance boolean Boolean
leaveCategories[].leaveAccrualRuleCapType string LeaveAccrualCapType

Possible values are:

  • NotLimited
  • Limited
leaveCategories[].leaveAccrualRuleCarryOverAmount double Decimal
leaveCategories[].leaveAccrualRuleCarryOverBehaviour string LeaveAccrualCarryOverBehaviour

Possible values are:

  • CarryEntireAmount
  • CarryHours
leaveCategories[].leaveAccrualRuleUnitCap double Decimal
leaveCategories[].leaveCategoryId int32 Int32
leaveCategories[].leaveCategoryName string String
leaveCategories[].leaveLoading double Nullable
leaveCategories[].leaveUnitType string Nullable

Possible values are:

  • Hours
  • Days
  • Weeks
leaveCategories[].unitType string Nullable

Possible values are:

  • Days
  • Weeks
  • HoursPerHourWorked
  • HoursPerPayRun
  • StandardDays
  • StandardWeeks
  • DayPerCalendarDay
  • DayPerMonth
leaveCategories[].units double Nullable
leaveLoadingCalculatedFromPayCategoryId int32 Nullable
leaveYearStart date-time Nullable
name string String
source string ExternalService

Possible values are:

  • None
  • Saasu
  • Xero
  • MYOB
  • Deputy
  • EmployeeTimePunch
  • ClickSuper
  • IntegratedTimesheets
  • FileImport
  • FileExport
  • QuickBooks
  • Harmony
  • AwardStore
  • Attache
  • IntegratedRostering
  • ReckonAccounts
  • API
  • MicroPower
  • RosterLive
  • NetSuite
  • Kounta
  • TimeAndAttendanceKiosk
  • DetailedFileExport
  • JonasPremier
  • WageEasy
  • Maestrano
  • WorkZone
  • EmployeePortal
  • RosterTemplate
  • Onboarding
  • Admin
  • WorkZoneClockOnOff
  • NetSuiteOneWorld
  • Sage50
  • PensionSync
  • FinancialsOffice
  • ProntoXI
  • PayRunDefault
  • StandardWorkDay
  • Beam
  • PayRunAutomation
  • BureauDashboard
  • Wiise
  • QBOMigrationTool
  • AbridgedFileImport
  • QBOForcedMigration
  • HmrcDpsUpdate
  • HmrcDpsStudentLoan
  • HmrcDpsPostGradLoan
  • Sage50FileImporter
  • FPSFileImporter
  • OAuth
  • FreshBooks
  • StarFileImporter
  • ActiveCampaign
  • SummaryAndDetailsExport
  • Telleroo
  • EmployeeAdvancedHoursUpload
  • BusinessCentral
  • Paytron
  • AccessFinancials
  • Comma
  • Zoho
  • FlatFileEmployeeImporter
  • Twinfield
  • SageAccounting
  • Square
  • Quickfile
  • Tide
  • TideSso
  • FreeAgent
  • Akahu
  • InstaPay
  • Zepto
  • Slack
  • Caxton
  • QuickbooksStandalonePayroll
  • ImportEmployeeSelfSetup
  • XeroIdentityPayrollSignUp
  • XeroIdentityHrSignUp
  • SageIntacct
  • InstaPayDaily
  • Salesforce
  • AutomatedPublicHolidayNotWorked
  • EmployeePayRatesUpload
  • Zapier
  • StapledSuperFund
  • Swag

Response

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

Status code Description Resource
200 OK

OK

AuLeaveAllowanceTemplateModel