approveLeaveApplication
Approve a requested leave application by a unique leave application id
/LeaveApplications/{LeaveApplicationID}/approve
Usage and SDK Samples
import org.openapitools.client.api.*;
import org.openapitools.client.api.client.PayrollAuApi;
import org.openapitools.client.models.payrollAu.*;
import java.io.File;
import java.util.*;
public class PayrollAuApiExample {
private PayrollAuApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
ApiClient defaultClient = new ApiClient();
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
UUID leaveApplicationID = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
UUID leaveApplicationID = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c';
String idempotencyKey = 'KEY_VALUE';
try {
LeaveApplications result = apiInstance.approveLeaveApplication(accessToken, xeroTenantId, leaveApplicationID, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling PayrollAuApi#approveLeaveApplication");
e.printStackTrace();
}
}
}
Scopes
payroll.employees | Grant read-write access to payroll employees |
Parameters
Name | Description |
---|---|
LeaveApplicationID* |
UUID
(uuid)
Leave Application id for single object
Required
|
Name | Description |
---|---|
Xero-Tenant-Id* |
String
Xero identifier for Tenant
Required
|
Idempotency-Key |
String
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|