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
import org.openapitools.client.api.*;
import org.openapitools.client.api.client.FinanceApi;
import org.openapitools.client.models.finance.*;
import java.io.File;
import java.util.*;
public class FinanceApiExample {
private FinanceApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
ApiClient defaultClient = new ApiClient();
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
String startMonth = '2020-09';
String endMonth = '2021-09';
try {
AccountUsageResponse result = apiInstance.getAccountingActivityAccountUsage(accessToken, xeroTenantId, startMonth, endMonth);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling FinanceApi#getAccountingActivityAccountUsage");
e.printStackTrace();
}
}
}
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. |