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
using System;
using System.Diagnostics;
using Xero.NetStandard.OAuth2.Api;
using Xero.NetStandard.OAuth2.Client;
using Xero.NetStandard.OAuth2.Model;
namespace Example
{
public class GetBankStatementAccountingExample
{
public async Task Main()
{
var accessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FinanceApi();
var xeroTenantId = "YOUR_XERO_TENANT_ID";
var bankAccountID = Guid.Parse("38400000-8cf0-11bd-b23e-10b96e4ef00d");
var fromDate = "2020-07-01";
var toDate = "2021-06-30";
var summaryOnly = true;
try {
var result = await apiInstance.GetBankStatementAccountingAsync(accessToken, xeroTenantId, bankAccountID, fromDate, toDate, summaryOnly);
Console.WriteLine(result);
}
catch (Exception e)
{
Console.WriteLine("Exception when calling apiInstance.GetBankStatementAccounting: " + e.Message );
}
}
}
}
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. |