Xero · Schema
EmployeeLeaveType
AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business
Properties
| Name | Type | Description |
|---|---|---|
| leaveTypeID | string | The Xero identifier for leave type |
| scheduleOfAccrual | string | The schedule of accrual |
| unitsAccruedAnnually | number | The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is "NoAccruals" |
| typeOfUnitsToAccrue | string | The type of units accrued for the leave annually |
| maximumToAccrue | number | The maximum number of units that can be accrued for the leave |
| openingBalance | number | The initial number of units assigned when the leave was added to the employee |
| openingBalanceTypeOfUnits | string | The type of units for the opening balance |
| rateAccruedHourly | number | not supported in Payroll NZ |
| percentageOfGrossEarnings | number | Specific for scheduleOfAccrual having percentage of gross earnings. Identifies how much percentage of gross earnings is accrued per pay period. |
| includeHolidayPayEveryPay | boolean | Specific to Holiday pay. Flag determining if pay for leave type is added on each pay run. |
| showAnnualLeaveInAdvance | boolean | Specific to Annual Leave. Flag to include leave available to take in advance in the balance in the payslip |
| annualLeaveTotalAmountPaid | number | Specific to Annual Leave. Annual leave balance in dollars |
| scheduleOfAccrualDate | string | The date when an employee becomes entitled to their accrual. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/EmployeeLeaveType",
"title": "EmployeeLeaveType",
"type": "object",
"properties": {
"leaveTypeID": {
"description": "The Xero identifier for leave type",
"type": "string",
"format": "uuid"
},
"scheduleOfAccrual": {
"description": "The schedule of accrual",
"type": "string",
"enum": [
"AnnuallyAfter6Months",
"OnAnniversaryDate",
"PercentageOfGrossEarnings",
"NoAccruals"
]
},
"unitsAccruedAnnually": {
"description": "The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\"",
"type": "number",
"format": "double",
"x-is-money": true
},
"typeOfUnitsToAccrue": {
"description": "The type of units accrued for the leave annually",
"type": "string"
},
"maximumToAccrue": {
"description": "The maximum number of units that can be accrued for the leave",
"type": "number",
"format": "double",
"x-is-money": true
},
"openingBalance": {
"description": "The initial number of units assigned when the leave was added to the employee",
"type": "number",
"format": "double",
"x-is-money": true
},
"openingBalanceTypeOfUnits": {
"description": "The type of units for the opening balance",
"type": "string"
},
"rateAccruedHourly": {
"description": "not supported in Payroll NZ",
"type": "number",
"format": "double",
"x-is-money": true
},
"percentageOfGrossEarnings": {
"description": "Specific for scheduleOfAccrual having percentage of gross earnings. Identifies how much percentage of gross earnings is accrued per pay period.",
"type": "number",
"format": "double",
"x-is-money": true
},
"includeHolidayPayEveryPay": {
"description": "Specific to Holiday pay. Flag determining if pay for leave type is added on each pay run.",
"type": "boolean"
},
"showAnnualLeaveInAdvance": {
"description": "Specific to Annual Leave. Flag to include leave available to take in advance in the balance in the payslip",
"type": "boolean"
},
"annualLeaveTotalAmountPaid": {
"description": "Specific to Annual Leave. Annual leave balance in dollars",
"type": "number",
"format": "double",
"x-is-money": true
},
"scheduleOfAccrualDate": {
"description": "The date when an employee becomes entitled to their accrual.",
"type": "string",
"format": "date",
"example": "2020-01-19",
"x-is-date": true
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/xero-employeeleavetype"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.