Payroll AU API - Unscheduled Payruns & Payslips
After creating an unscheduled payrun via the Payroll AU API when you get the payrun it returns an array of payslips where the employee id and payrun id do not exist (the only fields returned are FirstName, LastName & UdatedDateUTC). If you then proceed into the xero admin (in the browser) and view the payrun you can then click to include an employee. Returning back to the API if you retrieve the payrun again the employee id and payrun id are then set for that employees payslip entry.
We also tried creating approved timesheets for employees before the unscheduled payrun but the same issue is present.
There should be the facility to include employees in an unscheduled payrun without having to manually do this via the xero in the browser.
The employee id and payslip id should always be returned in a request.
Potentially there should be a status on the payslip that can be updated via the API to include the employee (or not) in the payrun.
Rosey Cockerill commented
This is vitally important to the smooth running of our business.