Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Payroll Payslips and leave

Started by George Malkoun -   in API Endpoints


Having problem with payslips and leave. xero c# api

We have a annual leave pay item set up under leave

1. Under employee we create a Leave Application - annual leave.
2. We create a payslip updating customer pay items.
3. In the code we find the Leave Application created and try to insert into payslips with earnings pay items.
4. We get an error

Payslips for employees aged 18 years or over must include a Superannuation Guarantee Contribution line with a calculation rate of Percentage or Statutory Rate

5. Remove Leave Application for employee and resend payslip with earnings lines, no leave lines and we have a success.

How do i get Leave accruals into payslips?

Thanks in advance