getAccountingActivityAccountUsage
Get account usage
A summary of how each account is being transacted on exposing the level of detail and amounts attributable to manual adjustments.
/AccountingActivities/AccountUsage
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\FinanceApi(
new GuzzleHttp\Client(),
$config
);
$xeroTenantId = "YOUR_XERO_TENANT_ID";
$startMonth = "2020-09";
$endMonth = "2021-09";
try {
$result = $apiInstance->getAccountingActivityAccountUsage($xeroTenantId, $startMonth, $endMonth);
} catch (Exception $e) {
echo 'Exception when calling FinanceApi->getAccountingActivityAccountUsage: ', $e->getMessage(), PHP_EOL;
}
?>
Scopes
finance.accountingactivity.read | Grant read-only access to Xero usage activity |
Parameters
Name | Description |
---|---|
xero-tenant-id* |
String
Xero identifier for Tenant
Required
|
Name | Description |
---|---|
startMonth |
String
date, yyyy-MM If no parameter is provided, the month 12 months prior to the end month will be used. Account usage for up to 12 months from this date will be returned. |
endMonth |
String
date, yyyy-MM If no parameter is provided, the current month will be used. Account usage for up to 12 months prior to this date will be returned. |