Allow querying payslips of an employee
Please provide a way to fetch payslips by employee id.
Either adding a payslips element to Employees or providing a Payrolls API will do.
Jaime Blackwell commented
It would be very helpful to be able to pull out the data showing all payslips, for all employees, over a given time period. Using only one API call rather than one for each payrun.
As far as I can find, there's no search function in the Payroll API endpoints. Which means the only solution for anything to do with them seems to be to fetch all payruns and from that data fetch all (relevant) payslips.
- 1 API call to get the PayRun list
- 1 API Call for each relevant RayRun (based on dates) to get the PaySlips list associated with it
- 1 API Call for each PaySlip (based on EmployeeID)
When that could all be done with a single API call the same way we can for fetching eg. Invoice Data
- 1 API Call for PaySlips Where employeeID==The_ID AND periodStartDate>=...
Same for Paystubs on the US side