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
View JSON Schema on GitHub

JSON Schema

xero-employeeleavesetup-schema.json Raw ↑
{
  "$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
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/xero-employeeleavesetup"
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.