approveLeaveApplication
Approve a requested leave application by a unique leave application id
/LeaveApplications/{LeaveApplicationID}/approve
Usage and SDK Samples
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = XeroAPI\XeroPHP\Configuration::getDefaultConfiguration()->setAccessToken( 'YOUR_ACCESS_TOKEN' );
$apiInstance = new XeroAPI\XeroPHP\Api\PayrollAuApi(
new GuzzleHttp\Client(),
$config
);
$xeroTenantId = "xeroTenantId_example";
$leaveApplicationID = "4ff1e5cc-9835-40d5-bb18-09fdb118db9c";
$idempotencyKey = "KEY_VALUE";
try {
$result = $apiInstance->approveLeaveApplication($xeroTenantId, $leaveApplicationID, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling PayrollAuApi->approveLeaveApplication: ', $e->getMessage(), PHP_EOL;
}
?>
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.
|