Xero · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Xero Payroll Nz API

72 actions 72 updates phrasing extends openapi/xero-payrollnz-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Xero's API. It is a proposal applied on top of the contract, not a document Xero publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 72 · first 16 shown; the file carries all of them

$.info
$.paths['/Employees'].get
$.paths['/Employees'].post
$.paths['/Employees/{EmployeeID}'].get
$.paths['/Employees/{EmployeeID}'].put
$.paths['/Employees/{EmployeeID}/Employment'].post
$.paths['/Employees/{EmployeeID}/Tax'].get
$.paths['/Employees/{EmployeeID}/Tax'].post
$.paths['/Employees/{EmployeeID}/OpeningBalances'].get
$.paths['/Employees/{EmployeeID}/OpeningBalances'].post
$.paths['/Employees/{EmployeeID}/Leave'].get
$.paths['/Employees/{EmployeeID}/Leave'].post
$.paths['/Employees/{EmployeeID}/Leave/{LeaveID}'].put
$.paths['/Employees/{EmployeeID}/Leave/{LeaveID}'].delete
$.paths['/Employees/{EmployeeID}/LeaveBalances'].get
$.paths['/Employees/{EmployeeID}/LeavePeriods'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Xero Payroll Nz API
  version: 1.0.0
extends: openapi/xero-payrollnz-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-15'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 71
- target: $.paths['/Employees'].get
  update:
    x-apievangelist-phrasing:
      intent: List employees
      effect: read
      questions:
      - How do I pull all the employees on my New Zealand payroll?
      - Can I filter my employees by first name?
      instructions:
      - text: List all employees.
      - text: Find employees matching {filter}.
        slots:
          filter: query.filter
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees'].post
  update:
    x-apievangelist-phrasing:
      intent: Add an employee
      effect: write
      questions:
      - How do I add a new employee to the payroll?
      - What do I need to supply to create an employee record?
      instructions:
      - text: Create employee {firstName} {lastName} born {dateOfBirth}.
        slots:
          firstName: requestBody.firstName
          lastName: requestBody.lastName
          dateOfBirth: requestBody.dateOfBirth
      - text: Add {firstName} {lastName} with email {email} and phone {phoneNumber}.
        slots:
          firstName: requestBody.firstName
          lastName: requestBody.lastName
          email: requestBody.email
          phoneNumber: requestBody.phoneNumber
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an employee
      effect: read
      questions:
      - How do I look up one employee's record by ID?
      - What details are returned for a single employee?
      instructions:
      - text: Get employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show the record for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update an employee
      effect: write
      questions:
      - How do I change an existing employee's address or phone number?
      - Can I update an employee's job title?
      instructions:
      - text: Update employee {EmployeeID} to address {address}.
        slots:
          EmployeeID: path.EmployeeID
          address: requestBody.address
      - text: Change employee {EmployeeID}'s job title to {jobTitle}.
        slots:
          EmployeeID: path.EmployeeID
          jobTitle: requestBody.jobTitle
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/Employment'].post
  update:
    x-apievangelist-phrasing:
      intent: Record an employee's employment
      effect: write
      questions:
      - How do I record when an employee started working?
      - Can I set an end date for a fixed-term employment?
      instructions:
      - text: Record employment for employee {EmployeeID} starting {startDate} on calendar {payrollCalendarID}.
        slots:
          EmployeeID: path.EmployeeID
          startDate: requestBody.startDate
          payrollCalendarID: requestBody.payrollCalendarID
      - text: Add {engagementType} employment for {EmployeeID} ending {fixedTermEndDate}.
        slots:
          engagementType: requestBody.engagementType
          EmployeeID: path.EmployeeID
          fixedTermEndDate: requestBody.fixedTermEndDate
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/Tax'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an employee's tax records
      effect: read
      questions:
      - How do I see an employee's tax code and KiwiSaver setup?
      - What student loan and special tax rate does an employee have?
      instructions:
      - text: Get tax records for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show the tax code and student loan balance for {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/Tax'].post
  update:
    x-apievangelist-phrasing:
      intent: Update an employee's tax records
      effect: write
      questions:
      - How do I change an employee's tax code?
      - Can I record a student loan balance for an employee?
      instructions:
      - text: Set tax code {taxCode} for employee {EmployeeID}.
        slots:
          taxCode: requestBody.taxCode
          EmployeeID: path.EmployeeID
      - text: Record student loan balance {studentLoanBalance} for {EmployeeID}.
        slots:
          studentLoanBalance: requestBody.studentLoanBalance
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/OpeningBalances'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an employee's opening balances
      effect: read
      questions:
      - How do I see an employee's opening balances for leave and pay?
      - What opening balances were set for a new employee?
      instructions:
      - text: Get opening balances for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show the opening leave and pay balances for {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/OpeningBalances'].post
  update:
    x-apievangelist-phrasing:
      intent: Set an employee's opening balances
      effect: write
      questions:
      - How do I set the opening balances for a new employee?
      - Can I record an opening balance for sick leave?
      instructions:
      - text: Create opening balances for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Set the opening sick leave balance for {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/Leave'].get
  update:
    x-apievangelist-phrasing:
      intent: List an employee's leave records
      effect: read
      questions:
      - How do I see the leave records on an employee's file?
      - What leave has an employee taken?
      instructions:
      - text: List leave records for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show the leave taken by {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/Leave'].post
  update:
    x-apievangelist-phrasing:
      intent: Record an employee's leave
      effect: write
      questions:
      - How do I record an employee taking sick leave?
      - Can I record leave with a start and end date?
      instructions:
      - text: Record leave for {EmployeeID} from {startDate} to {endDate} described as {description}.
        slots:
          EmployeeID: path.EmployeeID
          startDate: requestBody.startDate
          endDate: requestBody.endDate
          description: requestBody.description
      - text: Add a leave record {leaveTypeID} for {EmployeeID} starting {startDate}.
        slots:
          leaveTypeID: requestBody.leaveTypeID
          EmployeeID: path.EmployeeID
          startDate: requestBody.startDate
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/Leave/{LeaveID}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update an employee's leave record
      effect: write
      questions:
      - How do I change the dates of an existing leave record?
      - Can I edit the description of leave already recorded?
      instructions:
      - text: Change leave {LeaveID} for {EmployeeID} to end {endDate}.
        slots:
          LeaveID: path.LeaveID
          EmployeeID: path.EmployeeID
          endDate: requestBody.endDate
      - text: Update leave {LeaveID} on {EmployeeID} to {description}.
        slots:
          LeaveID: path.LeaveID
          EmployeeID: path.EmployeeID
          description: requestBody.description
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/Leave/{LeaveID}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete an employee's leave record
      effect: destructive
      questions:
      - How do I remove a leave record from an employee?
      - Can I delete a leave record by its ID?
      instructions:
      - text: Delete leave {LeaveID} from employee {EmployeeID}.
        slots:
          LeaveID: path.LeaveID
          EmployeeID: path.EmployeeID
      - text: Remove leave record {LeaveID} on {EmployeeID}.
        slots:
          LeaveID: path.LeaveID
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/LeaveBalances'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an employee's leave balances
      effect: read
      questions:
      - How do I see how much leave an employee has left?
      - What are the current leave balances for an employee?
      instructions:
      - text: Get leave balances for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show the remaining leave balances for {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/LeavePeriods'].get
  update:
    x-apievangelist-phrasing:
      intent: List an employee's leave periods
      effect: read
      questions:
      - How do I see the leave periods an employee has taken?
      - Can I filter an employee's leave periods by date?
      instructions:
      - text: List leave periods for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show leave periods for {EmployeeID} between {startDate} and {endDate}.
        slots:
          EmployeeID: path.EmployeeID
          startDate: query.startDate
          endDate: query.endDate
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/LeaveSetup'].post
  update:
    x-apievangelist-phrasing:
      intent: Set up an employee's leave balances
      effect: write
      questions:
      - How do I set the opening balance for an employee's annual leave?
      - Can I include holiday pay in an employee's leave setup?
      instructions:
      - text: Set up leave for employee {EmployeeID} with annual leave opening balance {annualLeaveOpeningBalance}.
        slots:
          EmployeeID: path.EmployeeID
          annualLeaveOpeningBalance: requestBody.annualLeaveOpeningBalance
      - text: Include holiday pay in the leave setup for {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/LeaveTypes'].get
  update:
    x-apievangelist-phrasing:
      intent: List an employee's leave types
      effect: read
      questions:
      - How do I see what leave types an employee has?
      - What leave types are set up for an employee?
      instructions:
      - text: List leave types for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show the leave types set up on {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/LeaveTypes'].post
  update:
    x-apievangelist-phrasing:
      intent: Add leave types to an employee
      effect: write
      questions:
      - How do I give an employee a new leave type with an accrual schedule?
      - Can I set opening leave balance and maximum accrual for an employee?
      - What can I record about the policy of an employee's leave type?
      instructions:
      - text: Add leave type {leaveTypeID} to employee {EmployeeID} with {scheduleOfAccrual} accrual.
        slots:
          leaveTypeID: requestBody.leaveTypeID
          EmployeeID: path.EmployeeID
          scheduleOfAccrual: requestBody.scheduleOfAccrual
      - text: Give employee {EmployeeID} a {unitsAccruedAnnually} unit leave type capped at {maximumToAccrue}.
        slots:
          EmployeeID: path.EmployeeID
          unitsAccruedAnnually: requestBody.unitsAccruedAnnually
          maximumToAccrue: requestBody.maximumToAccrue
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/PaymentMethods'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an employee's payment methods
      effect: read
      questions:
      - How do I see how an employee gets paid?
      - What bank accounts are on an employee's payment method?
      instructions:
      - text: Get payment methods for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show the bank accounts on {EmployeeID}'s payment method.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/PaymentMethods'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a payment method to an employee
      effect: write
      questions:
      - How do I set up direct deposit for an employee?
      - Can I record a bank account on an employee's payment method?
      instructions:
      - text: Add payment method {paymentMethod} to employee {EmployeeID}.
        slots:
          paymentMethod: requestBody.paymentMethod
          EmployeeID: path.EmployeeID
      - text: Record bank accounts {bankAccounts} on {EmployeeID}'s payment method.
        slots:
          bankAccounts: requestBody.bankAccounts
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/PayTemplates'].get
  update:
    x-apievangelist-phrasing:
      intent: List an employee's pay templates
      effect: read
      questions:
      - What pay templates are set up for a particular employee?
      - Can I see how an employee is paid on a template?
      instructions:
      - text: List pay templates for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Show the pay templates set up for {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/PayTemplates/Earnings'].post
  update:
    x-apievangelist-phrasing:
      intent: Add one earnings template to an employee
      effect: write
      questions:
      - How do I add a single earnings template to an employee?
      - Can I set a fixed amount or rate per unit on one employee earnings template?
      instructions:
      - text: Add earnings template {name} to employee {EmployeeID} at {ratePerUnit} per unit.
        slots:
          name: requestBody.name
          EmployeeID: path.EmployeeID
          ratePerUnit: requestBody.ratePerUnit
      - text: Create one employee earnings template for {EmployeeID} with a fixed amount of {fixedAmount}.
        slots:
          EmployeeID: path.EmployeeID
          fixedAmount: requestBody.fixedAmount
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/PayTemplates/Earnings/{PayTemplateEarningID}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update an employee's earnings template
      effect: write
      questions:
      - Can I change the rate on an existing employee earnings template?
      - How do I edit an employee earnings template record?
      instructions:
      - text: Update employee {EmployeeID}'s earnings template {PayTemplateEarningID} to {ratePerUnit} per unit.
        slots:
          EmployeeID: path.EmployeeID
          PayTemplateEarningID: path.PayTemplateEarningID
          ratePerUnit: requestBody.ratePerUnit
      - text: Change the fixed amount on employee {EmployeeID}'s earnings template {PayTemplateEarningID} to {fixedAmount}.
        slots:
          EmployeeID: path.EmployeeID
          PayTemplateEarningID: path.PayTemplateEarningID
          fixedAmount: requestBody.fixedAmount
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/PayTemplates/Earnings/{PayTemplateEarningID}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete an employee's earnings template
      effect: destructive
      questions:
      - How do I remove an earnings template from an employee?
      - Can I delete one employee earnings template record?
      instructions:
      - text: Delete earnings template {PayTemplateEarningID} from employee {EmployeeID}.
        slots:
          PayTemplateEarningID: path.PayTemplateEarningID
          EmployeeID: path.EmployeeID
      - text: Remove employee {EmployeeID}'s earnings template {PayTemplateEarningID}.
        slots:
          EmployeeID: path.EmployeeID
          PayTemplateEarningID: path.PayTemplateEarningID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Employees/{EmployeeID}/PayTemplateEarnings'].post
  update:
    x-apievangelist-phrasing:
      intent: Add several earnings templates to an employee
      effect: write
      questions:
      - Can I add multiple earnings templates to an employee at once?
      - How do I bulk-create employee earnings templates?
      instructions:
      - text: Create several earnings templates for employee {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      - text: Bulk-add new earnings templates to {EmployeeID}.
        slots:
          EmployeeID: path.EmployeeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Deductions'].get
  update:
    x-apievangelist-phrasing:
      intent: List an employee's deductions
      effect: read
      questions:
      - What deductions are set up for a specific employee?
      - Can I page through an employee's deduction records?
      instructions:
      - text: List deductions for employee {EmployeeID}.
        slots:
          EmployeeID: header.Xero-Tenant-Id
      - text: Show page {page} of deductions for {EmployeeID}.
        slots:
          page: query.page
          EmployeeID: header.Xero-Tenant-Id
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Deductions'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a deduction for an employee
      effect: write
      questions:
      - How do I add a new deduction for an employee?
      - Can I set a standard amount on a new deduction?
      instructions:
      - text: Create deduction {deductionName} of category {deductionCategory} for employee {EmployeeID}.
        slots:
          deductionName: requestBody.deductionName
          deductionCategory: requestBody.deductionCategory
          EmployeeID: header.Xero-Tenant-Id
      - text: Add deduction {deductionName} with standard amount {standardAmount} for {EmployeeID}.
        slots:
          deductionName: requestBody.deductionName
          standardAmount: requestBody.standardAmount
          EmployeeID: header.Xero-Tenant-Id
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Deductions/{deductionId}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a deduction
      effect: read
      questions:
      - What are the details of one deduction?
      - Can I look up a deduction by its ID?
      instructions:
      - text: Get deduction {deductionId}.
        slots:
          deductionId: path.deductionId
      - text: Show the deduction record {deductionId}.
        slots:
          deductionId: path.deductionId
      method: generated
      generated: '2026-11-15'
- target: $.paths['/StatutoryDeductions'].get
  update:
    x-apievangelist-phrasing:
      intent: List statutory deductions
      effect: read
      questions:
      - What statutory deductions are set up for the payroll?
      - Can I page through statutory deduction records?
      instructions:
      - text: List statutory deductions.
      - text: Show page {page} of statutory deductions.
        slots:
          page: query.page
      method: generated
      generated: '2026-11-15'
- target: $.paths['/StatutoryDeductions/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a statutory deduction
      effect: read
      questions:
      - What is the deduction rate for KiwiSaver enrolment?
      - Can I look up one statutory deduction by its ID?
      instructions:
      - text: Show statutory deduction {id}.
        slots:
          id: path.id
      - text: Get the statutory deduction for employee enrolment {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Superannuations'].get
  update:
    x-apievangelist-phrasing:
      intent: List superannuation funds
      effect: read
      questions:
      - What superannuation funds are set up for the payroll?
      - Can I page through superannuation fund records?
      instructions:
      - text: List superannuation funds.
      - text: Show page {page} of superannuation funds.
        slots:
          page: query.page
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Superannuations'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a superannuation fund
      effect: write
      questions:
      - How do I add a new superannuation fund?
      - Can I set a percentage or fixed amount on a superannuation fund?
      instructions:
      - text: Create superannuation fund {name} of category {category} with liability account {liabilityAccountId} and expense account {expenseAccountId}.
        slots:
          name: requestBody.name
          category: requestBody.category
          liabilityAccountId: requestBody.liabilityAccountId
          expenseAccountId: requestBody.expenseAccountId
      - text: Add superannuation fund {name} with {percentage} percent of taxable earnings.
        slots:
          name: requestBody.name
          percentage: requestBody.percentage
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Superannuations/{SuperannuationID}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a superannuation fund
      effect: read
      questions:
      - What are the details of one superannuation fund?
      - Can I look up a superannuation fund by its ID?
      instructions:
      - text: Get superannuation fund {SuperannuationID}.
        slots:
          SuperannuationID: path.SuperannuationID
      - text: Show the superannuation fund record {SuperannuationID}.
        slots:
          SuperannuationID: path.SuperannuationID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/EarningsRates'].get
  update:
    x-apievangelist-phrasing:
      intent: List earnings rates
      effect: read
      questions:
      - What earnings rates are set up for the payroll?
      - Can I page through earnings rate records?
      instructions:
      - text: List earnings rates.
      - text: Show page {page} of earnings rates.
        slots:
          page: query.page
      method: generated
      generated: '2026-11-15'
- target: $.paths['/EarningsRates'].post
  update:
    x-apievangelist-phrasing:
      intent: Create an earnings rate
      effect: write
      questions:
      - How do I add a new earnings rate?
      - Can I set a rate per unit or a multiple of ordinary earnings on an earnings rate?
      instructions:
      - text: Create earnings rate {name} of type {earningsType} with rate per unit {ratePerUnit}.
        slots:
          name: requestBody.name
          earningsType: requestBody.earningsType
          ratePerUnit: requestBody.ratePerUnit
      - text: Add earnings rate {name} as a multiple {multipleOfOrdinaryEarningsRate} of the employee's ordinary earnings rate.
        slots:
          name: requestBody.name
          multipleOfOrdinaryEarningsRate: requestBody.multipleOfOrdinaryEarningsRate
      method: generated
      generated: '2026-11-15'
- target: $.paths['/EarningsRates/{EarningsRateID}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an earnings rate
      effect: read
      questions:
      - What are the details of one earnings rate?
      - Can I look up an earnings rate by its ID?
      instructions:
      - text: Get earnings rate {EarningsRateID}.
        slots:
          EarningsRateID: path.EarningsRateID
      - text: Show the earnings rate record {EarningsRateID}.
        slots:
          EarningsRateID: path.EarningsRateID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/LeaveTypes'].get
  update:
    x-apievangelist-phrasing:
      intent: List leave types
      effect: read
      questions:
      - What leave types are set up for the payroll?
      - Can I list only active leave types?
      instructions:
      - text: List leave types.
      - text: Show leave types with active only {ActiveOnly}.
        slots:
          ActiveOnly: query.ActiveOnly
      method: generated
      generated: '2026-11-15'
- target: $.paths['/LeaveTypes'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a leave type
      effect: write
      questions:
      - How do I add a new leave type?
      - Can I make a leave type paid and show it on payslips?
      instructions:
      - text: Create leave type {name} that is paid leave {isPaidLeave} and shows on payslips {showOnPayslip}.
        slots:
          name: requestBody.name
          isPaidLeave: requestBody.isPaidLeave
          showOnPayslip: requestBody.showOnPayslip
      - text: Add leave type {name} with {typeOfUnits} units.
        slots:
          name: requestBody.name
          typeOfUnits: requestBody.typeOfUnits
      method: generated
      generated: '2026-11-15'
- target: $.paths['/LeaveTypes/{LeaveTypeID}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a leave type
      effect: read
      questions:
      - What are the details of one leave type?
      - Can I look up a leave type by its ID?
      instructions:
      - text: Get leave type {LeaveTypeID}.
        slots:
          LeaveTypeID: path.LeaveTypeID
      - text: Show the leave type record {LeaveTypeID}.
        slots:
          LeaveTypeID: path.LeaveTypeID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Reimbursements'].get
  update:
    x-apievangelist-phrasing:
      intent: List reimbursements
      effect: read
      questions:
      - What reimbursements have been processed?
      - Can I page through reimbursement records?
      instructions:
      - text: List reimbursements.
      - text: Show page {page} of reimbursements.
        slots:
          page: query.page
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Reimbursements'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a reimbursement
      effect: write
      questions:
      - How do I record a tax reimbursement for an employee?
      - Can I set a fixed amount or rate per unit for a reimbursement?
      instructions:
      - text: Create a reimbursement named {name} on account {accountID}.
        slots:
          name: requestBody.name
          accountID: requestBody.accountID
      - text: Add a {calculationType} reimbursement {name} of {standardAmount} on account {accountID}.
        slots:
          calculationType: requestBody.calculationType
          name: requestBody.name
          standardAmount: requestBody.standardAmount
          accountID: requestBody.accountID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Reimbursements/{ReimbursementID}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a reimbursement
      effect: read
      questions:
      - What account and amount is a particular reimbursement on?
      - Can I look up one reimbursement by its ID?
      instructions:
      - text: Get reimbursement {reimbursementID}.
        slots:
          reimbursementID: path.ReimbursementID
      - text: Show the account and amount of reimbursement {reimbursementID}.
        slots:
          reimbursementID: path.ReimbursementID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Timesheets'].get
  update:
    x-apievangelist-phrasing:
      intent: List employee timesheets
      effect: read
      questions:
      - Which employees have timesheets for a given period?
      - Can I filter timesheets by status or employee?
      instructions:
      - text: List timesheets for {filter}.
        slots:
          filter: query.filter
      - text: Show {status} timesheets between {startDate} and {endDate}.
        slots:
          status: query.status
          startDate: query.startDate
          endDate: query.endDate
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Timesheets'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a timesheet
      effect: write
      questions:
      - How do I record hours worked for an employee on a payroll calendar?
      - Can I set the total hours on a new timesheet?
      instructions:
      - text: Create a timesheet for employee {employeeID} on calendar {payrollCalendarID} from {startDate} to {endDate}.
        slots:
          employeeID: requestBody.employeeID
          payrollCalendarID: requestBody.payrollCalendarID
          startDate: requestBody.startDate
          endDate: requestBody.endDate
      - text: Record {totalHours} hours on a new timesheet for {employeeID} on {payrollCalendarID} ({startDate} to {endDate}).
        slots:
          totalHours: requestBody.totalHours
          employeeID: requestBody.employeeID
          payrollCalendarID: requestBody.payrollCalendarID
          startDate: requestBody.startDate
          endDate: requestBody.endDate
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Timesheets/{TimesheetID}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a timesheet
      effect: read
      questions:
      - What hours are recorded on a specific timesheet?
      - Can I fetch one timesheet by its ID?
      instructions:
      - text: Get timesheet {timesheetID}.
        slots:
          timesheetID: path.TimesheetID
      - text: Show the hours on timesheet {timesheetID}.
        slots:
          timesheetID: path.TimesheetID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Timesheets/{TimesheetID}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a timesheet
      effect: destructive
      questions:
      - How do I delete a timesheet I submitted by mistake?
      - Can I remove a timesheet record from a pay run?
      instructions:
      - text: Delete timesheet {TimesheetID}.
        slots:
          TimesheetID: path.TimesheetID
      - text: Remove the timesheet {TimesheetID} from payroll.
        slots:
          TimesheetID: path.TimesheetID
      method: generated
      generated: '2026-11-15'
- target: $.paths['/Timesheets/{TimesheetID}/Lines'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a timesheet line
      effect: write
      questions:
      - How do I record hours worked on a timesheet?
      - Can I link a tracking item to a timesheet line?
      instructions:
      - text: Add a {numberOfUnits} unit timesheet line for {date} to timesheet {TimesheetID}.
        slots:
          numberOfUnits: requestBody.numberOfUnits
          date: requestBody.date
          TimesheetID: path.TimesheetID
      - text: Record {numberOfUnits} units of {earningsRateID} on {date} on timesheet {TimesheetID}.
        slots:
          numberOfUnits: requestBody.numberOfUnits
          earningsRateID: requestBody.earningsRateID
          date: requestBody.date
          TimesheetID: path.TimesheetID
      method: generated
      generated: '2026-11-15'


# --- truncated at 32 KB (48 KB total) ---
# Full source: https://artifacts.apis.io/xero/overlays/xero-payrollnz-api-phrasing-overlay.yaml

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay 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 overlay
curl "https://apis.io/api/v1/overlays/xero-payrollnz-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.