The YourPayroll API supports OData (v3) filtering for most GET operations.
The following OData query parameters are supported. Please note that $expand
is not supported.
$skip
: number of results to skip. e.g.: to skip the first 20 results: $skip=20
$top
: number of results to retrieve. e.g.: to retrieve the first 10 results: $top=10
(note default value, if not specified, and maximum value is 100)$orderby
: specify the field(s) used to order the collection of results.$select
: specify a subset of properties to return. Note that $select
is only currently supported for the Employee API.$filter
: filter on field values. e.g.: $filter=FirstName eq 'Paul'
$filter
for more information on available filter operations.Refer to the OData documentation for more information about OData query parameters.
The employee list API limits the number of results to 100 per request. To retrieve all results, paging must be implemented:
/api/v2/business/{id}/employee/unstructured?$skip=0&$top=100
/api/v2/business/{id}/employee/unstructured?$skip=100&$top=100
/api/v2/business/39/paycategory?$filter=DefaultSuperRate ne 9.5M
(note the 'M' is required in '9.5M' to specify the value as a decimal)/api/v2/business/39/timesheet?$filter=StartTime gt datetime'2016-04-01T00:00:00'
/api/v2/business/39/worktype?$orderby=Name
/api/v2/business/{id}/employee/unstructured?$select=Id,FirstName,Surname,DateOfBirth