getBankStatementAccounting
Get Bank Statement Accounting
For lenders that prefer using bank statement data as the source of truth. We provide a data point that will allow access to customer bank statements, plus for reconciled bank transactions the matching accounting, invoice and billing data as well. As customers reconcile bank statements to invoices and bills, this transaction detail will provide valuable insight for lender's assessment measures.
/BankStatementsPlus/statements
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';
UUID bankAccountID = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
UUID bankAccountID = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
String fromDate = '2020-07-01';
String toDate = '2021-06-30';
Boolean summaryOnly = true;
try {
BankStatementAccountingResponse result = apiInstance.getBankStatementAccounting(accessToken, xeroTenantId, bankAccountID, fromDate, toDate, summaryOnly);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling FinanceApi#getBankStatementAccounting");
e.printStackTrace();
}
}
}
Scopes
| finance.bankstatementsplus.read | Grant read-only access to bank statements accounting data |
Parameters
| Name | Description |
|---|---|
| xero-tenant-id* |
String
Xero identifier for Tenant
Required
|
| Name | Description |
|---|---|
| BankAccountID* |
UUID
(uuid)
string, GUID Bank account Id
Required
|
| FromDate* |
String
date, yyyy-MM-dd Specifies the start date of the query period. The maximum range of the query period is 12 months. If the specified query period is more than 12 months the request will be rejected.
Required
|
| ToDate* |
String
date, yyyy-MM-dd Specifies the end date of the query period. If the end date is a future date, the request will be rejected.
Required
|
| SummaryOnly |
Boolean
boolean, true/false The default value is true if no parameter is provided. In summary mode, the response will exclude the computation-heavy LineItems fields from bank transaction, invoice, credit note, prepayment and overpayment data, making the API calls quicker and more efficient. |