+
+
import org.openapitools.client.api.*;
+import org.openapitools.client.api.client.PayrollAuV2Api;
+import org.openapitools.client.models.payrollAuV2.*;
+
+import java.io.File;
+import java.util.*;
+
+public class PayrollAuV2ApiExample {
+ private PayrollAuV2Api apiInstance;
+
+ public static void main(String[] args) {
+ String accessToken = "YOUR_ACCESS_TOKEN";
+ ApiClient defaultClient = new ApiClient();
+
+ apiInstance = AccountingApi.getInstance(defaultClient);
+ String xeroTenantId = 'xeroTenantId_example';
+ Integer page = 5;
+ String filter = 'employeeId==00000000-0000-0000-0000-000000000000,payrollCalendarId==00000000-0000-0000-0000-000000000000';
+ String status = 'Draft';
+ String startDate = '2019-01-02';
+ String endDate = '2020-01-02';
+ String sort = 'startDate';
+
+ try {
+ Timesheets result = apiInstance.getTimesheets(accessToken, xeroTenantId, page, filter, status, startDate, endDate, sort);
+ System.out.println(result);
+ } catch (XeroException e) {
+ System.err.println("Exception when calling PayrollAuV2Api#getTimesheets");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ | Name |
+ Description |
+
+ | page |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
+
+
+
+
+ |
+
+
+ | filter |
+
+
+
+
+
+
+
+ String
+
+
+
+Filter by employeeId and/or payrollCalendarId
+
+
+
+
+ |
+
+
+ | status |
+
+
+
+
+
+
+
+ String
+
+
+
+filter results by any timesheets with a matching timesheet status
+
+
+
+
+ |
+
+
+ | startDate |
+
+
+
+
+
+
+
+ String
+
+
+
+filter results by any timesheets with a startDate on or after the provided date
+
+
+
+
+ |
+
+
+ | endDate |
+
+
+
+
+
+
+
+ String
+
+
+
+filter results by any timesheets with a endDate on or before the provided date
+
+
+
+
+ |
+
+
+ | sort |
+
+
+
+
+
+
+
+ String
+
+
+
+sort the order of timesheets returned. The default is based on the timesheets createdDate, sorted oldest to newest. Currently, the only other option is to reverse the order based on the timesheets startDate, sorted newest to oldest.
+
+
+
+
+ |
+
+
+
+