Xero · Schema
EmployeeLeaveSetup
AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business
Properties
| Name | Type | Description |
|---|---|---|
| includeHolidayPay | boolean | Identifier if holiday pay will be included in each payslip |
| holidayPayOpeningBalance | number | Initial holiday pay balance. A percentage — usually 8% — of gross earnings since their last work anniversary. |
| annualLeaveOpeningBalance | number | Initial annual leave balance. The balance at their last anniversary, less any leave taken since then and excluding accrued annual leave. |
| negativeAnnualLeaveBalancePaidAmount | number | The dollar value of annual leave opening balance if negative. |
| SickLeaveToAccrueAnnually | number | Number of units accrued annually for sick leave. The type of units is determined by the property "TypeOfUnitsToAccrue" on the "Sick Leave" leave type |
| SickLeaveMaximumToAccrue | number | Maximum number of units accrued annually for sick leave. The type of units is determined by the property "TypeOfUnitsToAccrue" on the "Sick Leave" leave type |
| sickLeaveOpeningBalance | number | Initial sick leave balance. This will be positive unless they've taken sick leave in advance |
| SickLeaveScheduleOfAccrual | string | Set Schedule of Accrual Type for Sick Leave |
| SickLeaveAnniversaryDate | string | If Sick Leave Schedule of Accrual is "OnAnniversaryDate", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date |
| AnnualLeaveAnniversaryDate | string | The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/EmployeeLeaveSetup",
"title": "EmployeeLeaveSetup",
"type": "object",
"properties": {
"includeHolidayPay": {
"description": "Identifier if holiday pay will be included in each payslip",
"type": "boolean",
"example": false
},
"holidayPayOpeningBalance": {
"description": "Initial holiday pay balance. A percentage \u2014 usually 8% \u2014 of gross earnings since their last work anniversary.",
"type": "number",
"format": "double",
"x-is-money": true,
"example": 10.5
},
"annualLeaveOpeningBalance": {
"description": "Initial annual leave balance. The balance at their last anniversary, less any leave taken since then and excluding accrued annual leave.",
"type": "number",
"format": "double",
"x-is-money": true,
"example": 25.89
},
"negativeAnnualLeaveBalancePaidAmount": {
"description": "The dollar value of annual leave opening balance if negative.",
"type": "number",
"format": "double",
"x-is-money": true,
"example": 10.0
},
"SickLeaveToAccrueAnnually": {
"description": "Number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type",
"type": "number",
"format": "double",
"x-is-money": true,
"example": 100.5
},
"SickLeaveMaximumToAccrue": {
"description": "Maximum number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type",
"type": "number",
"format": "double",
"x-is-money": true,
"example": 200.5
},
"sickLeaveOpeningBalance": {
"description": "Initial sick leave balance. This will be positive unless they've taken sick leave in advance",
"type": "number",
"format": "double",
"x-is-money": true,
"example": 10.5
},
"SickLeaveScheduleOfAccrual": {
"description": "Set Schedule of Accrual Type for Sick Leave",
"type": "string",
"example": "OnAnniversaryDate"
},
"SickLeaveAnniversaryDate": {
"description": "If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date",
"type": "string",
"format": "date",
"example": "2020-01-19",
"x-is-date": true
},
"AnnualLeaveAnniversaryDate": {
"description": "The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date",
"type": "string",
"format": "date",
"example": "2020-01-19",
"x-is-date": true
}
}
}