Get PayRuns endpoint is not effective
If a user has more than 200 pay runs, I need to retrieve the first page initially of https://developer.xero.com/documentation/api/payrolluk/payruns#get-payruns endpoint, then it will provide the number of items in response and then I need to retrieve the following pages with pay runs that I need to process.
More paid pay runs means more call to Xero, so it can be a problem on production env in a few weeks/years.
It makes sense to add additional request parameters to filter not needed pay runs. For instance, posted date, then I can retrieve items only for the last week.
Best practices of developing any functionality tells that it should be tested. We have automation tests that create a few pay runs every day. It would be have an option to delete/archive not needed pay runs