Class PayrollNzApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapproveTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, String idempotencyKey) Approves a timesheetcom.google.api.client.http.HttpResponseapproveTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, String idempotencyKey) Approves a timesheetconvert intput to byte arraycreateDeduction(String accessToken, String xeroTenantId, Deduction deduction, String idempotencyKey) Creates a new deduction for a specific employeecom.google.api.client.http.HttpResponsecreateDeductionForHttpResponse(String accessToken, String xeroTenantId, Deduction deduction, String idempotencyKey) Creates a new deduction for a specific employeecreateEarningsRate(String accessToken, String xeroTenantId, EarningsRate earningsRate, String idempotencyKey) Creates a new earnings ratecom.google.api.client.http.HttpResponsecreateEarningsRateForHttpResponse(String accessToken, String xeroTenantId, EarningsRate earningsRate, String idempotencyKey) Creates a new earnings ratecreateEmployee(String accessToken, String xeroTenantId, Employee employee, String idempotencyKey) Creates an employeescreateEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeID, EarningsTemplate earningsTemplate, String idempotencyKey) Creates earnings template records for an employeecom.google.api.client.http.HttpResponsecreateEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EarningsTemplate earningsTemplate, String idempotencyKey) Creates earnings template records for an employeecom.google.api.client.http.HttpResponsecreateEmployeeForHttpResponse(String accessToken, String xeroTenantId, Employee employee, String idempotencyKey) Creates an employeescreateEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeave employeeLeave, String idempotencyKey) Creates leave records for a specific employeecom.google.api.client.http.HttpResponsecreateEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeave employeeLeave, String idempotencyKey) Creates leave records for a specific employeecreateEmployeeLeaveSetup(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeaveSetup employeeLeaveSetup, String idempotencyKey) Creates a leave set-up for a specific employee.com.google.api.client.http.HttpResponsecreateEmployeeLeaveSetupForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeaveSetup employeeLeaveSetup, String idempotencyKey) Creates a leave set-up for a specific employee.createEmployeeLeaveType(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeaveType employeeLeaveType, String idempotencyKey) Creates leave type records for a specific employeecom.google.api.client.http.HttpResponsecreateEmployeeLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeaveType employeeLeaveType, String idempotencyKey) Creates leave type records for a specific employeecreateEmployeeOpeningBalances(String accessToken, String xeroTenantId, UUID employeeID, List<EmployeeOpeningBalance> employeeOpeningBalance, String idempotencyKey) Creates opening balances for a specific employeecom.google.api.client.http.HttpResponsecreateEmployeeOpeningBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, List<EmployeeOpeningBalance> employeeOpeningBalance, String idempotencyKey) Creates opening balances for a specific employeecreateEmployeePaymentMethod(String accessToken, String xeroTenantId, UUID employeeID, PaymentMethod paymentMethod, String idempotencyKey) Creates a payment method for an employeecom.google.api.client.http.HttpResponsecreateEmployeePaymentMethodForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, PaymentMethod paymentMethod, String idempotencyKey) Creates a payment method for an employeecreateEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeID, SalaryAndWage salaryAndWage, String idempotencyKey) Creates an employee salary and wage recordcom.google.api.client.http.HttpResponsecreateEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, SalaryAndWage salaryAndWage, String idempotencyKey) Creates an employee salary and wage recordcreateEmployeeWorkingPattern(String accessToken, String xeroTenantId, UUID employeeID, EmployeeWorkingPatternWithWorkingWeeksRequest employeeWorkingPatternWithWorkingWeeksRequest, String idempotencyKey) Creates an employee working patterncom.google.api.client.http.HttpResponsecreateEmployeeWorkingPatternForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeWorkingPatternWithWorkingWeeksRequest employeeWorkingPatternWithWorkingWeeksRequest, String idempotencyKey) Creates an employee working patterncreateEmployment(String accessToken, String xeroTenantId, UUID employeeID, Employment employment, String idempotencyKey) Creates an employment detail for a specific employeecom.google.api.client.http.HttpResponsecreateEmploymentForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, Employment employment, String idempotencyKey) Creates an employment detail for a specific employeecreateLeaveType(String accessToken, String xeroTenantId, LeaveType leaveType, String idempotencyKey) Creates a new leave typecom.google.api.client.http.HttpResponsecreateLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, LeaveType leaveType, String idempotencyKey) Creates a new leave typecreateMultipleEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeID, List<EarningsTemplate> earningsTemplate, String idempotencyKey) Creates multiple employee earnings template records for a specific employeecom.google.api.client.http.HttpResponsecreateMultipleEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, List<EarningsTemplate> earningsTemplate, String idempotencyKey) Creates multiple employee earnings template records for a specific employeecreatePayRun(String accessToken, String xeroTenantId, PayRun payRun, String idempotencyKey) Creates a pay runcreatePayRunCalendar(String accessToken, String xeroTenantId, PayRunCalendar payRunCalendar, String idempotencyKey) Creates a new payrun calendarcom.google.api.client.http.HttpResponsecreatePayRunCalendarForHttpResponse(String accessToken, String xeroTenantId, PayRunCalendar payRunCalendar, String idempotencyKey) Creates a new payrun calendarcom.google.api.client.http.HttpResponsecreatePayRunForHttpResponse(String accessToken, String xeroTenantId, PayRun payRun, String idempotencyKey) Creates a pay runcreateReimbursement(String accessToken, String xeroTenantId, Reimbursement reimbursement, String idempotencyKey) Creates a new reimbursementcom.google.api.client.http.HttpResponsecreateReimbursementForHttpResponse(String accessToken, String xeroTenantId, Reimbursement reimbursement, String idempotencyKey) Creates a new reimbursementcreateSuperannuation(String accessToken, String xeroTenantId, Benefit benefit, String idempotencyKey) Creates a new superannuationcom.google.api.client.http.HttpResponsecreateSuperannuationForHttpResponse(String accessToken, String xeroTenantId, Benefit benefit, String idempotencyKey) Creates a new superannuationcreateTimesheet(String accessToken, String xeroTenantId, Timesheet timesheet, String idempotencyKey) Creates a new timesheetcom.google.api.client.http.HttpResponsecreateTimesheetForHttpResponse(String accessToken, String xeroTenantId, Timesheet timesheet, String idempotencyKey) Creates a new timesheetcreateTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, TimesheetLine timesheetLine, String idempotencyKey) Create a new timesheet line for a specific time sheetcom.google.api.client.http.HttpResponsecreateTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, TimesheetLine timesheetLine, String idempotencyKey) Create a new timesheet line for a specific time sheetdeleteEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeID, UUID payTemplateEarningID) Deletes an employee's earnings template recordcom.google.api.client.http.HttpResponsedeleteEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID payTemplateEarningID) Deletes an employee's earnings template recorddeleteEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeID, UUID leaveID) Deletes a leave record for a specific employeecom.google.api.client.http.HttpResponsedeleteEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID leaveID) Deletes a leave record for a specific employeedeleteEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID) Deletes an employee's salary and wages recordcom.google.api.client.http.HttpResponsedeleteEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID) Deletes an employee's salary and wages recorddeleteEmployeeWorkingPattern(String accessToken, String xeroTenantId, UUID employeeID, UUID employeeWorkingPatternID) deletes employee's working patternscom.google.api.client.http.HttpResponsedeleteEmployeeWorkingPatternForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID employeeWorkingPatternID) deletes employee's working patternsdeleteTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) Deletes a timesheetcom.google.api.client.http.HttpResponsedeleteTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) Deletes a timesheetdeleteTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID) Deletes a timesheet line for a specific timesheetcom.google.api.client.http.HttpResponsedeleteTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID) Deletes a timesheet line for a specific timesheetget ApiClientgetDeduction(String accessToken, String xeroTenantId, UUID deductionId) Retrieves a single deduction by using a unique deduction IDcom.google.api.client.http.HttpResponsegetDeductionForHttpResponse(String accessToken, String xeroTenantId, UUID deductionId) Retrieves a single deduction by using a unique deduction IDgetDeductions(String accessToken, String xeroTenantId, Integer page) Retrieves deductions for a specific employeecom.google.api.client.http.HttpResponsegetDeductionsForHttpResponse(String accessToken, String xeroTenantId, Integer page) Retrieves deductions for a specific employeegetEarningsRate(String accessToken, String xeroTenantId, UUID earningsRateID) Retrieves a specific earnings rates by using a unique earnings rate idcom.google.api.client.http.HttpResponsegetEarningsRateForHttpResponse(String accessToken, String xeroTenantId, UUID earningsRateID) Retrieves a specific earnings rates by using a unique earnings rate idgetEarningsRates(String accessToken, String xeroTenantId, Integer page) Retrieves earnings ratescom.google.api.client.http.HttpResponsegetEarningsRatesForHttpResponse(String accessToken, String xeroTenantId, Integer page) Retrieves earnings ratesgetEmployee(String accessToken, String xeroTenantId, UUID employeeID) Retrieves an employees using a unique employee IDcom.google.api.client.http.HttpResponsegetEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves an employees using a unique employee IDgetEmployeeLeaveBalances(String accessToken, String xeroTenantId, UUID employeeID) Retrieves leave balances for a specific employeecom.google.api.client.http.HttpResponsegetEmployeeLeaveBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves leave balances for a specific employeegetEmployeeLeavePeriods(String accessToken, String xeroTenantId, UUID employeeID, org.threeten.bp.LocalDate startDate, org.threeten.bp.LocalDate endDate) Retrieves leave periods for a specific employeecom.google.api.client.http.HttpResponsegetEmployeeLeavePeriodsForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, org.threeten.bp.LocalDate startDate, org.threeten.bp.LocalDate endDate) Retrieves leave periods for a specific employeegetEmployeeLeaves(String accessToken, String xeroTenantId, UUID employeeID) Retrieves leave records for a specific employeecom.google.api.client.http.HttpResponsegetEmployeeLeavesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves leave records for a specific employeegetEmployeeLeaveTypes(String accessToken, String xeroTenantId, UUID employeeID) Retrieves leave types for a specific employeecom.google.api.client.http.HttpResponsegetEmployeeLeaveTypesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves leave types for a specific employeegetEmployeeOpeningBalances(String accessToken, String xeroTenantId, UUID employeeID) Retrieves the opening balance for a specific employeecom.google.api.client.http.HttpResponsegetEmployeeOpeningBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves the opening balance for a specific employeegetEmployeePaymentMethod(String accessToken, String xeroTenantId, UUID employeeID) Retrieves available payment methods for a specific employeecom.google.api.client.http.HttpResponsegetEmployeePaymentMethodForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves available payment methods for a specific employeegetEmployeePayTemplates(String accessToken, String xeroTenantId, UUID employeeID) Retrieves pay templates for a specific employeecom.google.api.client.http.HttpResponsegetEmployeePayTemplatesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves pay templates for a specific employeegetEmployees(String accessToken, String xeroTenantId, String filter, Integer page) Retrieves employeesgetEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID) Retrieves an employee's salary and wages record by using a unique salary and wage IDcom.google.api.client.http.HttpResponsegetEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID) Retrieves an employee's salary and wages record by using a unique salary and wage IDgetEmployeeSalaryAndWages(String accessToken, String xeroTenantId, UUID employeeID, Integer page) Retrieves an employee's salary and wagescom.google.api.client.http.HttpResponsegetEmployeeSalaryAndWagesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, Integer page) Retrieves an employee's salary and wagescom.google.api.client.http.HttpResponsegetEmployeesForHttpResponse(String accessToken, String xeroTenantId, String filter, Integer page) Retrieves employeesgetEmployeeTax(String accessToken, String xeroTenantId, UUID employeeID) Retrieves tax records for a specific employeecom.google.api.client.http.HttpResponsegetEmployeeTaxForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves tax records for a specific employeegetEmployeeWorkingPattern(String accessToken, String xeroTenantId, UUID employeeID, UUID employeeWorkingPatternID) Retrieves employee's working patternscom.google.api.client.http.HttpResponsegetEmployeeWorkingPatternForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID employeeWorkingPatternID) Retrieves employee's working patternsgetEmployeeWorkingPatterns(String accessToken, String xeroTenantId, UUID employeeID) Retrieves employee's working patternscom.google.api.client.http.HttpResponsegetEmployeeWorkingPatternsForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves employee's working patternsstatic PayrollNzApigetInstance(ApiClient apiClient) PayrollNzApi getInstancegetLeaveType(String accessToken, String xeroTenantId, UUID leaveTypeID) Retrieves a specific leave type by using a unique leave type IDcom.google.api.client.http.HttpResponsegetLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, UUID leaveTypeID) Retrieves a specific leave type by using a unique leave type IDgetLeaveTypes(String accessToken, String xeroTenantId, Integer page, Boolean activeOnly) Retrieves leave typescom.google.api.client.http.HttpResponsegetLeaveTypesForHttpResponse(String accessToken, String xeroTenantId, Integer page, Boolean activeOnly) Retrieves leave typesRetrieves a specific pay run by using a unique pay run IDgetPayRunCalendar(String accessToken, String xeroTenantId, UUID payrollCalendarID) Retrieves a specific payrun calendar by using a unique payroll calendar IDcom.google.api.client.http.HttpResponsegetPayRunCalendarForHttpResponse(String accessToken, String xeroTenantId, UUID payrollCalendarID) Retrieves a specific payrun calendar by using a unique payroll calendar IDgetPayRunCalendars(String accessToken, String xeroTenantId, Integer page) Retrieves payrun calendarscom.google.api.client.http.HttpResponsegetPayRunCalendarsForHttpResponse(String accessToken, String xeroTenantId, Integer page) Retrieves payrun calendarscom.google.api.client.http.HttpResponsegetPayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID) Retrieves a specific pay run by using a unique pay run IDgetPayRuns(String accessToken, String xeroTenantId, Integer page, String status) Retrieves pay runscom.google.api.client.http.HttpResponsegetPayRunsForHttpResponse(String accessToken, String xeroTenantId, Integer page, String status) Retrieves pay runsgetPaySlip(String accessToken, String xeroTenantId, UUID paySlipID) Retrieves a specific payslip by a unique pay slip IDcom.google.api.client.http.HttpResponsegetPaySlipForHttpResponse(String accessToken, String xeroTenantId, UUID paySlipID) Retrieves a specific payslip by a unique pay slip IDgetPaySlips(String accessToken, String xeroTenantId, UUID payRunID, Integer page) Retrieves payslipscom.google.api.client.http.HttpResponsegetPaySlipsForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, Integer page) Retrieves payslipsgetReimbursement(String accessToken, String xeroTenantId, UUID reimbursementID) Retrieves a specific reimbursement by using a unique reimbursement IDcom.google.api.client.http.HttpResponsegetReimbursementForHttpResponse(String accessToken, String xeroTenantId, UUID reimbursementID) Retrieves a specific reimbursement by using a unique reimbursement IDgetReimbursements(String accessToken, String xeroTenantId, Integer page) Retrieves reimbursementscom.google.api.client.http.HttpResponsegetReimbursementsForHttpResponse(String accessToken, String xeroTenantId, Integer page) Retrieves reimbursementsgetSettings(String accessToken, String xeroTenantId) Retrieves settingscom.google.api.client.http.HttpResponsegetSettingsForHttpResponse(String accessToken, String xeroTenantId) Retrieves settingsgetStatutoryDeduction(String accessToken, String xeroTenantId, UUID id) Retrieves a specific statutory deduction by using a unique statutory deductions idcom.google.api.client.http.HttpResponsegetStatutoryDeductionForHttpResponse(String accessToken, String xeroTenantId, UUID id) Retrieves a specific statutory deduction by using a unique statutory deductions idgetStatutoryDeductions(String accessToken, String xeroTenantId, Integer page) Retrieves statutory deductionscom.google.api.client.http.HttpResponsegetStatutoryDeductionsForHttpResponse(String accessToken, String xeroTenantId, Integer page) Retrieves statutory deductionsgetSuperannuation(String accessToken, String xeroTenantId, UUID superannuationID) Retrieves a specific superannuation using a unique superannuation IDcom.google.api.client.http.HttpResponsegetSuperannuationForHttpResponse(String accessToken, String xeroTenantId, UUID superannuationID) Retrieves a specific superannuation using a unique superannuation IDgetSuperannuations(String accessToken, String xeroTenantId, Integer page) Retrieves superannuationscom.google.api.client.http.HttpResponsegetSuperannuationsForHttpResponse(String accessToken, String xeroTenantId, Integer page) Retrieves superannuationsgetTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) Retrieves a specific timesheet by using a unique timesheet IDcom.google.api.client.http.HttpResponsegetTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) Retrieves a specific timesheet by using a unique timesheet IDgetTimesheets(String accessToken, String xeroTenantId, Integer page, String filter, String status, String startDate, String endDate, String sort) Retrieves timesheetscom.google.api.client.http.HttpResponsegetTimesheetsForHttpResponse(String accessToken, String xeroTenantId, Integer page, String filter, String status, String startDate, String endDate, String sort) Retrieves timesheetsgetTrackingCategories(String accessToken, String xeroTenantId) Retrieves tracking categoriescom.google.api.client.http.HttpResponsegetTrackingCategoriesForHttpResponse(String accessToken, String xeroTenantId) Retrieves tracking categoriesget user agentrevertTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, String idempotencyKey) Reverts a timesheet to draftcom.google.api.client.http.HttpResponserevertTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, String idempotencyKey) Reverts a timesheet to draftvoidsetApiClient(ApiClient apiClient) set ApiClientvoidsetUserAgent(String userAgent) set user agentupdateEmployee(String accessToken, String xeroTenantId, UUID employeeID, Employee employee, String idempotencyKey) Updates an existing employeeupdateEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeID, UUID payTemplateEarningID, EarningsTemplate earningsTemplate, String idempotencyKey) Updates an earnings template records for an employeecom.google.api.client.http.HttpResponseupdateEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID payTemplateEarningID, EarningsTemplate earningsTemplate, String idempotencyKey) Updates an earnings template records for an employeecom.google.api.client.http.HttpResponseupdateEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, Employee employee, String idempotencyKey) Updates an existing employeeupdateEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeID, UUID leaveID, EmployeeLeave employeeLeave, String idempotencyKey) Updates leave records for a specific employeecom.google.api.client.http.HttpResponseupdateEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID leaveID, EmployeeLeave employeeLeave, String idempotencyKey) Updates leave records for a specific employeeupdateEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID, SalaryAndWage salaryAndWage, String idempotencyKey) Updates an employee's salary and wages recordcom.google.api.client.http.HttpResponseupdateEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID, SalaryAndWage salaryAndWage, String idempotencyKey) Updates an employee's salary and wages recordupdateEmployeeTax(String accessToken, String xeroTenantId, UUID employeeID, EmployeeTax employeeTax, String idempotencyKey) Updates the tax records for a specific employeecom.google.api.client.http.HttpResponseupdateEmployeeTaxForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeTax employeeTax, String idempotencyKey) Updates the tax records for a specific employeeupdatePayRun(String accessToken, String xeroTenantId, UUID payRunID, PayRun payRun, String idempotencyKey) Updates a pay runcom.google.api.client.http.HttpResponseupdatePayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, PayRun payRun, String idempotencyKey) Updates a pay runupdatePaySlipLineItems(String accessToken, String xeroTenantId, UUID paySlipID, PaySlip paySlip, String idempotencyKey) Creates an employee pay slipcom.google.api.client.http.HttpResponseupdatePaySlipLineItemsForHttpResponse(String accessToken, String xeroTenantId, UUID paySlipID, PaySlip paySlip, String idempotencyKey) Creates an employee pay slipupdateTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID, TimesheetLine timesheetLine, String idempotencyKey) Updates a timesheet line for a specific timesheetcom.google.api.client.http.HttpResponseupdateTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID, TimesheetLine timesheetLine, String idempotencyKey) Updates a timesheet line for a specific timesheet
-
Constructor Details
-
PayrollNzApi
public PayrollNzApi()PayrollNzApi -
PayrollNzApi
PayrollNzApi- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
-
Method Details
-
getInstance
PayrollNzApi getInstance- Parameters:
apiClient- ApiClient pass into the new instance of this class- Returns:
- instance of this class
-
getApiClient
-
setApiClient
set ApiClient- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
setUserAgent
set user agent- Parameters:
userAgent- string to override the user agent
-
getUserAgent
-
approveTimesheet
public TimesheetObject approveTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, String idempotencyKey) throws IOException Approves a timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheetidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- TimesheetObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
approveTimesheetForHttpResponse
public com.google.api.client.http.HttpResponse approveTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, String idempotencyKey) throws IOException Approves a timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheetidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createDeduction
public DeductionObject createDeduction(String accessToken, String xeroTenantId, Deduction deduction, String idempotencyKey) throws IOException Creates a new deduction for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantdeduction- The deduction parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- DeductionObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createDeductionForHttpResponse
public com.google.api.client.http.HttpResponse createDeductionForHttpResponse(String accessToken, String xeroTenantId, Deduction deduction, String idempotencyKey) throws IOException Creates a new deduction for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantdeduction- The deduction parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEarningsRate
public EarningsRateObject createEarningsRate(String accessToken, String xeroTenantId, EarningsRate earningsRate, String idempotencyKey) throws IOException Creates a new earnings rate200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantearningsRate- The earningsRate parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EarningsRateObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEarningsRateForHttpResponse
public com.google.api.client.http.HttpResponse createEarningsRateForHttpResponse(String accessToken, String xeroTenantId, EarningsRate earningsRate, String idempotencyKey) throws IOException Creates a new earnings rate200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantearningsRate- The earningsRate parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployee
public EmployeeObject createEmployee(String accessToken, String xeroTenantId, Employee employee, String idempotencyKey) throws IOException Creates an employees200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantemployee- The employee parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeForHttpResponse(String accessToken, String xeroTenantId, Employee employee, String idempotencyKey) throws IOException Creates an employees200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantemployee- The employee parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployeeEarningsTemplate
public EarningsTemplateObject createEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeID, EarningsTemplate earningsTemplate, String idempotencyKey) throws IOException Creates earnings template records for an employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectearningsTemplate- The earningsTemplate parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EarningsTemplateObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeEarningsTemplateForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EarningsTemplate earningsTemplate, String idempotencyKey) throws IOException Creates earnings template records for an employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectearningsTemplate- The earningsTemplate parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployeeLeave
public EmployeeLeaveObject createEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeave employeeLeave, String idempotencyKey) throws IOException Creates leave records for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeLeave- The employeeLeave parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeLeaveObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeLeaveForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeave employeeLeave, String idempotencyKey) throws IOException Creates leave records for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeLeave- The employeeLeave parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployeeLeaveSetup
public EmployeeLeaveSetupObject createEmployeeLeaveSetup(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeaveSetup employeeLeaveSetup, String idempotencyKey) throws IOException Creates a leave set-up for a specific employee. This is required before viewing, configuring and requesting leave for an employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeLeaveSetup- The employeeLeaveSetup parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeLeaveSetupObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeLeaveSetupForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeLeaveSetupForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeaveSetup employeeLeaveSetup, String idempotencyKey) throws IOException Creates a leave set-up for a specific employee. This is required before viewing, configuring and requesting leave for an employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeLeaveSetup- The employeeLeaveSetup parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployeeLeaveType
public EmployeeLeaveTypeObject createEmployeeLeaveType(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeaveType employeeLeaveType, String idempotencyKey) throws IOException Creates leave type records for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeLeaveType- The employeeLeaveType parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeLeaveTypeObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeLeaveTypeForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeLeaveType employeeLeaveType, String idempotencyKey) throws IOException Creates leave type records for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeLeaveType- The employeeLeaveType parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployeeOpeningBalances
public EmployeeOpeningBalancesObject createEmployeeOpeningBalances(String accessToken, String xeroTenantId, UUID employeeID, List<EmployeeOpeningBalance> employeeOpeningBalance, String idempotencyKey) throws IOException Creates opening balances for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeOpeningBalance- The employeeOpeningBalance parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeOpeningBalancesObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeOpeningBalancesForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeOpeningBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, List<EmployeeOpeningBalance> employeeOpeningBalance, String idempotencyKey) throws IOException Creates opening balances for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeOpeningBalance- The employeeOpeningBalance parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployeePaymentMethod
public PaymentMethodObject createEmployeePaymentMethod(String accessToken, String xeroTenantId, UUID employeeID, PaymentMethod paymentMethod, String idempotencyKey) throws IOException Creates a payment method for an employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectpaymentMethod- The paymentMethod parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PaymentMethodObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeePaymentMethodForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeePaymentMethodForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, PaymentMethod paymentMethod, String idempotencyKey) throws IOException Creates a payment method for an employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectpaymentMethod- The paymentMethod parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployeeSalaryAndWage
public SalaryAndWageObject createEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeID, SalaryAndWage salaryAndWage, String idempotencyKey) throws IOException Creates an employee salary and wage record200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectsalaryAndWage- The salaryAndWage parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- SalaryAndWageObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeSalaryAndWageForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, SalaryAndWage salaryAndWage, String idempotencyKey) throws IOException Creates an employee salary and wage record200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectsalaryAndWage- The salaryAndWage parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployeeWorkingPattern
public EmployeeWorkingPatternWithWorkingWeeksObject createEmployeeWorkingPattern(String accessToken, String xeroTenantId, UUID employeeID, EmployeeWorkingPatternWithWorkingWeeksRequest employeeWorkingPatternWithWorkingWeeksRequest, String idempotencyKey) throws IOException Creates an employee working pattern200 - employee working pattern correctly added
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeWorkingPatternWithWorkingWeeksRequest- The employeeWorkingPatternWithWorkingWeeksRequest parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeWorkingPatternWithWorkingWeeksObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeWorkingPatternForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeWorkingPatternForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeWorkingPatternWithWorkingWeeksRequest employeeWorkingPatternWithWorkingWeeksRequest, String idempotencyKey) throws IOException Creates an employee working pattern200 - employee working pattern correctly added
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeWorkingPatternWithWorkingWeeksRequest- The employeeWorkingPatternWithWorkingWeeksRequest parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployment
public EmploymentObject createEmployment(String accessToken, String xeroTenantId, UUID employeeID, Employment employment, String idempotencyKey) throws IOException Creates an employment detail for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployment- The employment parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmploymentObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmploymentForHttpResponse
public com.google.api.client.http.HttpResponse createEmploymentForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, Employment employment, String idempotencyKey) throws IOException Creates an employment detail for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployment- The employment parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createLeaveType
public LeaveTypeObject createLeaveType(String accessToken, String xeroTenantId, LeaveType leaveType, String idempotencyKey) throws IOException Creates a new leave type200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveType- The leaveType parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- LeaveTypeObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createLeaveTypeForHttpResponse
public com.google.api.client.http.HttpResponse createLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, LeaveType leaveType, String idempotencyKey) throws IOException Creates a new leave type200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveType- The leaveType parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createMultipleEmployeeEarningsTemplate
public EmployeeEarningsTemplates createMultipleEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeID, List<EarningsTemplate> earningsTemplate, String idempotencyKey) throws IOException Creates multiple employee earnings template records for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectearningsTemplate- The earningsTemplate parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeEarningsTemplates
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createMultipleEmployeeEarningsTemplateForHttpResponse
public com.google.api.client.http.HttpResponse createMultipleEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, List<EarningsTemplate> earningsTemplate, String idempotencyKey) throws IOException Creates multiple employee earnings template records for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectearningsTemplate- The earningsTemplate parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayRun
public PayRunObject createPayRun(String accessToken, String xeroTenantId, PayRun payRun, String idempotencyKey) throws IOException Creates a pay run200 - created payrun results
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRun- The payRun parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PayRunObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPayRunForHttpResponse
public com.google.api.client.http.HttpResponse createPayRunForHttpResponse(String accessToken, String xeroTenantId, PayRun payRun, String idempotencyKey) throws IOException Creates a pay run200 - created payrun results
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRun- The payRun parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayRunCalendar
public PayRunCalendarObject createPayRunCalendar(String accessToken, String xeroTenantId, PayRunCalendar payRunCalendar, String idempotencyKey) throws IOException Creates a new payrun calendar200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunCalendar- The payRunCalendar parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PayRunCalendarObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPayRunCalendarForHttpResponse
public com.google.api.client.http.HttpResponse createPayRunCalendarForHttpResponse(String accessToken, String xeroTenantId, PayRunCalendar payRunCalendar, String idempotencyKey) throws IOException Creates a new payrun calendar200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunCalendar- The payRunCalendar parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createReimbursement
public ReimbursementObject createReimbursement(String accessToken, String xeroTenantId, Reimbursement reimbursement, String idempotencyKey) throws IOException Creates a new reimbursement200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantreimbursement- The reimbursement parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- ReimbursementObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createReimbursementForHttpResponse
public com.google.api.client.http.HttpResponse createReimbursementForHttpResponse(String accessToken, String xeroTenantId, Reimbursement reimbursement, String idempotencyKey) throws IOException Creates a new reimbursement200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantreimbursement- The reimbursement parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createSuperannuation
public SuperannuationObject createSuperannuation(String accessToken, String xeroTenantId, Benefit benefit, String idempotencyKey) throws IOException Creates a new superannuation200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantbenefit- The benefit parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- SuperannuationObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createSuperannuationForHttpResponse
public com.google.api.client.http.HttpResponse createSuperannuationForHttpResponse(String accessToken, String xeroTenantId, Benefit benefit, String idempotencyKey) throws IOException Creates a new superannuation200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantbenefit- The benefit parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createTimesheet
public TimesheetObject createTimesheet(String accessToken, String xeroTenantId, Timesheet timesheet, String idempotencyKey) throws IOException Creates a new timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenanttimesheet- The timesheet parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- TimesheetObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createTimesheetForHttpResponse
public com.google.api.client.http.HttpResponse createTimesheetForHttpResponse(String accessToken, String xeroTenantId, Timesheet timesheet, String idempotencyKey) throws IOException Creates a new timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenanttimesheet- The timesheet parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createTimesheetLine
public TimesheetLineObject createTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, TimesheetLine timesheetLine, String idempotencyKey) throws IOException Create a new timesheet line for a specific time sheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheettimesheetLine- The timesheetLine parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- TimesheetLineObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createTimesheetLineForHttpResponse
public com.google.api.client.http.HttpResponse createTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, TimesheetLine timesheetLine, String idempotencyKey) throws IOException Create a new timesheet line for a specific time sheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheettimesheetLine- The timesheetLine parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteEmployeeEarningsTemplate
public EarningsTemplateObject deleteEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeID, UUID payTemplateEarningID) throws IOException Deletes an employee's earnings template record200 - deletion successful
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectpayTemplateEarningID- Id for single pay template earnings object- Returns:
- EarningsTemplateObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteEmployeeEarningsTemplateForHttpResponse
public com.google.api.client.http.HttpResponse deleteEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID payTemplateEarningID) throws IOException Deletes an employee's earnings template record200 - deletion successful
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectpayTemplateEarningID- Id for single pay template earnings object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteEmployeeLeave
public EmployeeLeaveObject deleteEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeID, UUID leaveID) throws IOException Deletes a leave record for a specific employee200 - successful response
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectleaveID- Leave id for single object- Returns:
- EmployeeLeaveObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteEmployeeLeaveForHttpResponse
public com.google.api.client.http.HttpResponse deleteEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID leaveID) throws IOException Deletes a leave record for a specific employee200 - successful response
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectleaveID- Leave id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteEmployeeSalaryAndWage
public SalaryAndWageObject deleteEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID) throws IOException Deletes an employee's salary and wages record200 - deletion successful
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectsalaryAndWagesID- Id for single salary and wages object- Returns:
- SalaryAndWageObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteEmployeeSalaryAndWageForHttpResponse
public com.google.api.client.http.HttpResponse deleteEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID) throws IOException Deletes an employee's salary and wages record200 - deletion successful
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectsalaryAndWagesID- Id for single salary and wages object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteEmployeeWorkingPattern
public EmployeeLeaveObject deleteEmployeeWorkingPattern(String accessToken, String xeroTenantId, UUID employeeID, UUID employeeWorkingPatternID) throws IOException deletes employee's working patterns200 - successful response
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeWorkingPatternID- Employee working pattern id for single object- Returns:
- EmployeeLeaveObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteEmployeeWorkingPatternForHttpResponse
public com.google.api.client.http.HttpResponse deleteEmployeeWorkingPatternForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID employeeWorkingPatternID) throws IOException deletes employee's working patterns200 - successful response
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeWorkingPatternID- Employee working pattern id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteTimesheet
public TimesheetLine deleteTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException Deletes a timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheet- Returns:
- TimesheetLine
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteTimesheetForHttpResponse
public com.google.api.client.http.HttpResponse deleteTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException Deletes a timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheet- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteTimesheetLine
public TimesheetLine deleteTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID) throws IOException Deletes a timesheet line for a specific timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheettimesheetLineID- Identifier for the timesheet line- Returns:
- TimesheetLine
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteTimesheetLineForHttpResponse
public com.google.api.client.http.HttpResponse deleteTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID) throws IOException Deletes a timesheet line for a specific timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheettimesheetLineID- Identifier for the timesheet line- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getDeduction
public DeductionObject getDeduction(String accessToken, String xeroTenantId, UUID deductionId) throws IOException Retrieves a single deduction by using a unique deduction ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantdeductionId- Identifier for the deduction- Returns:
- DeductionObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getDeductionForHttpResponse
public com.google.api.client.http.HttpResponse getDeductionForHttpResponse(String accessToken, String xeroTenantId, UUID deductionId) throws IOException Retrieves a single deduction by using a unique deduction ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantdeductionId- Identifier for the deduction- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getDeductions
public Deductions getDeductions(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves deductions for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- Deductions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getDeductionsForHttpResponse
public com.google.api.client.http.HttpResponse getDeductionsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves deductions for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEarningsRate
public EarningsRateObject getEarningsRate(String accessToken, String xeroTenantId, UUID earningsRateID) throws IOException Retrieves a specific earnings rates by using a unique earnings rate id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantearningsRateID- Identifier for the earnings rate- Returns:
- EarningsRateObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEarningsRateForHttpResponse
public com.google.api.client.http.HttpResponse getEarningsRateForHttpResponse(String accessToken, String xeroTenantId, UUID earningsRateID) throws IOException Retrieves a specific earnings rates by using a unique earnings rate id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantearningsRateID- Identifier for the earnings rate- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEarningsRates
public EarningsRates getEarningsRates(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves earnings rates200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- EarningsRates
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEarningsRatesForHttpResponse
public com.google.api.client.http.HttpResponse getEarningsRatesForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves earnings rates200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployee
public EmployeeObject getEmployee(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves an employees using a unique employee ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- EmployeeObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves an employees using a unique employee ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeLeaveBalances
public EmployeeLeaveBalances getEmployeeLeaveBalances(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves leave balances for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- EmployeeLeaveBalances
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeLeaveBalancesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeLeaveBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves leave balances for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeLeavePeriods
public LeavePeriods getEmployeeLeavePeriods(String accessToken, String xeroTenantId, UUID employeeID, org.threeten.bp.LocalDate startDate, org.threeten.bp.LocalDate endDate) throws IOException Retrieves leave periods for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectstartDate- Filter by start dateendDate- Filter by end date- Returns:
- LeavePeriods
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeLeavePeriodsForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeLeavePeriodsForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, org.threeten.bp.LocalDate startDate, org.threeten.bp.LocalDate endDate) throws IOException Retrieves leave periods for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectstartDate- Filter by start dateendDate- Filter by end date- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeLeaveTypes
public EmployeeLeaveTypes getEmployeeLeaveTypes(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves leave types for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- EmployeeLeaveTypes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeLeaveTypesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeLeaveTypesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves leave types for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeLeaves
public EmployeeLeaves getEmployeeLeaves(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves leave records for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- EmployeeLeaves
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeLeavesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeLeavesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves leave records for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeOpeningBalances
public EmployeeOpeningBalancesObject getEmployeeOpeningBalances(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves the opening balance for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- EmployeeOpeningBalancesObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeOpeningBalancesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeOpeningBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves the opening balance for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeePayTemplates
public EmployeePayTemplates getEmployeePayTemplates(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves pay templates for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- EmployeePayTemplates
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeePayTemplatesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeePayTemplatesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves pay templates for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeePaymentMethod
public PaymentMethodObject getEmployeePaymentMethod(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves available payment methods for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- PaymentMethodObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeePaymentMethodForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeePaymentMethodForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves available payment methods for a specific employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeSalaryAndWage
public SalaryAndWages getEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID) throws IOException Retrieves an employee's salary and wages record by using a unique salary and wage ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectsalaryAndWagesID- Id for single pay template earnings object- Returns:
- SalaryAndWages
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeSalaryAndWageForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID) throws IOException Retrieves an employee's salary and wages record by using a unique salary and wage ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectsalaryAndWagesID- Id for single pay template earnings object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeSalaryAndWages
public SalaryAndWages getEmployeeSalaryAndWages(String accessToken, String xeroTenantId, UUID employeeID, Integer page) throws IOException Retrieves an employee's salary and wages200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- SalaryAndWages
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeSalaryAndWagesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeSalaryAndWagesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, Integer page) throws IOException Retrieves an employee's salary and wages200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeTax
public EmployeeTaxObject getEmployeeTax(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves tax records for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- EmployeeTaxObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeTaxForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeTaxForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves tax records for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeWorkingPattern
public EmployeeWorkingPatternWithWorkingWeeksObject getEmployeeWorkingPattern(String accessToken, String xeroTenantId, UUID employeeID, UUID employeeWorkingPatternID) throws IOException Retrieves employee's working patterns200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeWorkingPatternID- Employee working pattern id for single object- Returns:
- EmployeeWorkingPatternWithWorkingWeeksObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeWorkingPatternForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeWorkingPatternForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID employeeWorkingPatternID) throws IOException Retrieves employee's working patterns200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeWorkingPatternID- Employee working pattern id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployeeWorkingPatterns
public EmployeeWorkingPatternsObject getEmployeeWorkingPatterns(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves employee's working patterns200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- EmployeeWorkingPatternsObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeWorkingPatternsForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeWorkingPatternsForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves employee's working patterns200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployees
public Employees getEmployees(String accessToken, String xeroTenantId, String filter, Integer page) throws IOException Retrieves employees200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantfilter- Filter by first name and/or lastnamepage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeesForHttpResponse(String accessToken, String xeroTenantId, String filter, Integer page) throws IOException Retrieves employees200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantfilter- Filter by first name and/or lastnamepage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getLeaveType
public LeaveTypeObject getLeaveType(String accessToken, String xeroTenantId, UUID leaveTypeID) throws IOException Retrieves a specific leave type by using a unique leave type ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveTypeID- Identifier for the leave type- Returns:
- LeaveTypeObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getLeaveTypeForHttpResponse
public com.google.api.client.http.HttpResponse getLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, UUID leaveTypeID) throws IOException Retrieves a specific leave type by using a unique leave type ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveTypeID- Identifier for the leave type- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getLeaveTypes
public LeaveTypes getLeaveTypes(String accessToken, String xeroTenantId, Integer page, Boolean activeOnly) throws IOException Retrieves leave types200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.activeOnly- Filters leave types by active status. By default the API returns all leave types.- Returns:
- LeaveTypes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getLeaveTypesForHttpResponse
public com.google.api.client.http.HttpResponse getLeaveTypesForHttpResponse(String accessToken, String xeroTenantId, Integer page, Boolean activeOnly) throws IOException Retrieves leave types200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.activeOnly- Filters leave types by active status. By default the API returns all leave types.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayRun
public PayRunObject getPayRun(String accessToken, String xeroTenantId, UUID payRunID) throws IOException Retrieves a specific pay run by using a unique pay run ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- Identifier for the pay run- Returns:
- PayRunObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayRunForHttpResponse
public com.google.api.client.http.HttpResponse getPayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID) throws IOException Retrieves a specific pay run by using a unique pay run ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- Identifier for the pay run- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayRunCalendar
public PayRunCalendarObject getPayRunCalendar(String accessToken, String xeroTenantId, UUID payrollCalendarID) throws IOException Retrieves a specific payrun calendar by using a unique payroll calendar ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayrollCalendarID- Identifier for the payrun calendars- Returns:
- PayRunCalendarObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayRunCalendarForHttpResponse
public com.google.api.client.http.HttpResponse getPayRunCalendarForHttpResponse(String accessToken, String xeroTenantId, UUID payrollCalendarID) throws IOException Retrieves a specific payrun calendar by using a unique payroll calendar ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayrollCalendarID- Identifier for the payrun calendars- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayRunCalendars
public PayRunCalendars getPayRunCalendars(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves payrun calendars200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- PayRunCalendars
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayRunCalendarsForHttpResponse
public com.google.api.client.http.HttpResponse getPayRunCalendarsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves payrun calendars200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayRuns
public PayRuns getPayRuns(String accessToken, String xeroTenantId, Integer page, String status) throws IOException Retrieves pay runs200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.status- By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status.- Returns:
- PayRuns
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayRunsForHttpResponse
public com.google.api.client.http.HttpResponse getPayRunsForHttpResponse(String accessToken, String xeroTenantId, Integer page, String status) throws IOException Retrieves pay runs200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.status- By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPaySlip
public PaySlipObject getPaySlip(String accessToken, String xeroTenantId, UUID paySlipID) throws IOException Retrieves a specific payslip by a unique pay slip ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaySlipID- Identifier for the payslip- Returns:
- PaySlipObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPaySlipForHttpResponse
public com.google.api.client.http.HttpResponse getPaySlipForHttpResponse(String accessToken, String xeroTenantId, UUID paySlipID) throws IOException Retrieves a specific payslip by a unique pay slip ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaySlipID- Identifier for the payslip- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPaySlips
public PaySlips getPaySlips(String accessToken, String xeroTenantId, UUID payRunID, Integer page) throws IOException Retrieves payslips200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.page- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- PaySlips
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPaySlipsForHttpResponse
public com.google.api.client.http.HttpResponse getPaySlipsForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, Integer page) throws IOException Retrieves payslips200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.page- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReimbursement
public ReimbursementObject getReimbursement(String accessToken, String xeroTenantId, UUID reimbursementID) throws IOException Retrieves a specific reimbursement by using a unique reimbursement ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreimbursementID- Identifier for the reimbursement- Returns:
- ReimbursementObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReimbursementForHttpResponse
public com.google.api.client.http.HttpResponse getReimbursementForHttpResponse(String accessToken, String xeroTenantId, UUID reimbursementID) throws IOException Retrieves a specific reimbursement by using a unique reimbursement ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreimbursementID- Identifier for the reimbursement- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReimbursements
public Reimbursements getReimbursements(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves reimbursements200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- Reimbursements
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReimbursementsForHttpResponse
public com.google.api.client.http.HttpResponse getReimbursementsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves reimbursements200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSettings
Retrieves settings200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- Returns:
- Settings
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getSettingsForHttpResponse
public com.google.api.client.http.HttpResponse getSettingsForHttpResponse(String accessToken, String xeroTenantId) throws IOException Retrieves settings200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getStatutoryDeduction
public StatutoryDeductionObject getStatutoryDeduction(String accessToken, String xeroTenantId, UUID id) throws IOException Retrieves a specific statutory deduction by using a unique statutory deductions id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantid- Identifier for the statutory deduction- Returns:
- StatutoryDeductionObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getStatutoryDeductionForHttpResponse
public com.google.api.client.http.HttpResponse getStatutoryDeductionForHttpResponse(String accessToken, String xeroTenantId, UUID id) throws IOException Retrieves a specific statutory deduction by using a unique statutory deductions id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantid- Identifier for the statutory deduction- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getStatutoryDeductions
public StatutoryDeductions getStatutoryDeductions(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves statutory deductions200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- StatutoryDeductions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getStatutoryDeductionsForHttpResponse
public com.google.api.client.http.HttpResponse getStatutoryDeductionsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves statutory deductions200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSuperannuation
public SuperannuationObject getSuperannuation(String accessToken, String xeroTenantId, UUID superannuationID) throws IOException Retrieves a specific superannuation using a unique superannuation ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantsuperannuationID- Identifier for the superannuation- Returns:
- SuperannuationObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getSuperannuationForHttpResponse
public com.google.api.client.http.HttpResponse getSuperannuationForHttpResponse(String accessToken, String xeroTenantId, UUID superannuationID) throws IOException Retrieves a specific superannuation using a unique superannuation ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantsuperannuationID- Identifier for the superannuation- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSuperannuations
public Superannuations getSuperannuations(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves superannuations200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- Superannuations
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getSuperannuationsForHttpResponse
public com.google.api.client.http.HttpResponse getSuperannuationsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException Retrieves superannuations200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTimesheet
public TimesheetObject getTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException Retrieves a specific timesheet by using a unique timesheet ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheet- Returns:
- TimesheetObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTimesheetForHttpResponse
public com.google.api.client.http.HttpResponse getTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException Retrieves a specific timesheet by using a unique timesheet ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheet- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTimesheets
public Timesheets getTimesheets(String accessToken, String xeroTenantId, Integer page, String filter, String status, String startDate, String endDate, String sort) throws IOException Retrieves timesheets200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.filter- Filter by employeeId and/or payrollCalendarIdstatus- filter results by any timesheets with a matching timesheet statusstartDate- filter results by any timesheets with a startDate on or after the provided dateendDate- filter results by any timesheets with a endDate on or before the provided datesort- 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.- Returns:
- Timesheets
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTimesheetsForHttpResponse
public com.google.api.client.http.HttpResponse getTimesheetsForHttpResponse(String accessToken, String xeroTenantId, Integer page, String filter, String status, String startDate, String endDate, String sort) throws IOException Retrieves timesheets200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpage- Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.filter- Filter by employeeId and/or payrollCalendarIdstatus- filter results by any timesheets with a matching timesheet statusstartDate- filter results by any timesheets with a startDate on or after the provided dateendDate- filter results by any timesheets with a endDate on or before the provided datesort- 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.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTrackingCategories
public TrackingCategories getTrackingCategories(String accessToken, String xeroTenantId) throws IOException Retrieves tracking categories200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- Returns:
- TrackingCategories
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTrackingCategoriesForHttpResponse
public com.google.api.client.http.HttpResponse getTrackingCategoriesForHttpResponse(String accessToken, String xeroTenantId) throws IOException Retrieves tracking categories200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
revertTimesheet
public TimesheetObject revertTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, String idempotencyKey) throws IOException Reverts a timesheet to draft200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheetidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- TimesheetObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
revertTimesheetForHttpResponse
public com.google.api.client.http.HttpResponse revertTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, String idempotencyKey) throws IOException Reverts a timesheet to draft200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheetidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateEmployee
public EmployeeObject updateEmployee(String accessToken, String xeroTenantId, UUID employeeID, Employee employee, String idempotencyKey) throws IOException Updates an existing employee200 - successful response
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployee- The employee parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateEmployeeForHttpResponse
public com.google.api.client.http.HttpResponse updateEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, Employee employee, String idempotencyKey) throws IOException Updates an existing employee200 - successful response
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployee- The employee parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateEmployeeEarningsTemplate
public EarningsTemplateObject updateEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeID, UUID payTemplateEarningID, EarningsTemplate earningsTemplate, String idempotencyKey) throws IOException Updates an earnings template records for an employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectpayTemplateEarningID- Id for single pay template earnings objectearningsTemplate- The earningsTemplate parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EarningsTemplateObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateEmployeeEarningsTemplateForHttpResponse
public com.google.api.client.http.HttpResponse updateEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID payTemplateEarningID, EarningsTemplate earningsTemplate, String idempotencyKey) throws IOException Updates an earnings template records for an employee200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectpayTemplateEarningID- Id for single pay template earnings objectearningsTemplate- The earningsTemplate parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateEmployeeLeave
public EmployeeLeaveObject updateEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeID, UUID leaveID, EmployeeLeave employeeLeave, String idempotencyKey) throws IOException Updates leave records for a specific employee200 - successful response
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectleaveID- Leave id for single objectemployeeLeave- The employeeLeave parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeLeaveObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateEmployeeLeaveForHttpResponse
public com.google.api.client.http.HttpResponse updateEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID leaveID, EmployeeLeave employeeLeave, String idempotencyKey) throws IOException Updates leave records for a specific employee200 - successful response
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectleaveID- Leave id for single objectemployeeLeave- The employeeLeave parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateEmployeeSalaryAndWage
public SalaryAndWageObject updateEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID, SalaryAndWage salaryAndWage, String idempotencyKey) throws IOException Updates an employee's salary and wages record200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectsalaryAndWagesID- Id for single pay template earnings objectsalaryAndWage- The salaryAndWage parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- SalaryAndWageObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateEmployeeSalaryAndWageForHttpResponse
public com.google.api.client.http.HttpResponse updateEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, UUID salaryAndWagesID, SalaryAndWage salaryAndWage, String idempotencyKey) throws IOException Updates an employee's salary and wages record200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectsalaryAndWagesID- Id for single pay template earnings objectsalaryAndWage- The salaryAndWage parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateEmployeeTax
public EmployeeTaxObject updateEmployeeTax(String accessToken, String xeroTenantId, UUID employeeID, EmployeeTax employeeTax, String idempotencyKey) throws IOException Updates the tax records for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeTax- The employeeTax parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- EmployeeTaxObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateEmployeeTaxForHttpResponse
public com.google.api.client.http.HttpResponse updateEmployeeTaxForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, EmployeeTax employeeTax, String idempotencyKey) throws IOException Updates the tax records for a specific employee200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployeeTax- The employeeTax parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updatePayRun
public PayRunObject updatePayRun(String accessToken, String xeroTenantId, UUID payRunID, PayRun payRun, String idempotencyKey) throws IOException Updates a pay run200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- Identifier for the pay runpayRun- The payRun parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PayRunObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updatePayRunForHttpResponse
public com.google.api.client.http.HttpResponse updatePayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, PayRun payRun, String idempotencyKey) throws IOException Updates a pay run200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- Identifier for the pay runpayRun- The payRun parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updatePaySlipLineItems
public PaySlipObject updatePaySlipLineItems(String accessToken, String xeroTenantId, UUID paySlipID, PaySlip paySlip, String idempotencyKey) throws IOException Creates an employee pay slip200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaySlipID- Identifier for the payslippaySlip- The paySlip parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PaySlipObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updatePaySlipLineItemsForHttpResponse
public com.google.api.client.http.HttpResponse updatePaySlipLineItemsForHttpResponse(String accessToken, String xeroTenantId, UUID paySlipID, PaySlip paySlip, String idempotencyKey) throws IOException Creates an employee pay slip200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaySlipID- Identifier for the payslippaySlip- The paySlip parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateTimesheetLine
public TimesheetLineObject updateTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID, TimesheetLine timesheetLine, String idempotencyKey) throws IOException Updates a timesheet line for a specific timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheettimesheetLineID- Identifier for the timesheet linetimesheetLine- The timesheetLine parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- TimesheetLineObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateTimesheetLineForHttpResponse
public com.google.api.client.http.HttpResponse updateTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID, TimesheetLine timesheetLine, String idempotencyKey) throws IOException Updates a timesheet line for a specific timesheet200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Identifier for the timesheettimesheetLineID- Identifier for the timesheet linetimesheetLine- The timesheetLine parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
convertInputToByteArray
convert intput to byte array- Parameters:
is- InputStream the server status code returned- Returns:
- byteArrayInputStream a ByteArrayInputStream
- Throws:
IOException- for failed or interrupted I/O operations
-