We have released a minor API update today. This update introduces a new ‘employee basic details’ endpoint.
This endpoint returns a subset of the ‘unstructured employee data’ endpoint - primarily the basic employee details such as name, date of birth, addresses and contact details. It is much more efficient than the ‘unstructured employee data’ endpoint, if you only require these basic employee details.
The ‘List’ endpoint also supports OData queries (including $select), so the following works just fine:
GET https://keypay.yourpayroll.com.au/api/v2/business/{id}/employee/details?$filter=startswith(tolower(FirstName),'ant')&$select=Id,FirstName,Surname&$orderby=Surname
For documentation on these new endpoints, see: