GetBankAccountBalance - accountsIQ/API-Wiki GitHub Wiki

The GetBankAccountBalance function returns the balance of the bank account, in the currency of the bank account, at a given point in time.

Declaration

C#

public WSResult2OfWSBankAccountBalance GetBankAccountBalance(string token, string bankGlAccountCode, DateTime pointInTime)

Visual Basic

Public Function GetBankAccountBalance(ByVal token As String, ByVal bankGlAccountCode as String, ByVal pointInTime As DateTime) As WSResult2OfWSBankAccountBalance 

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.
GLAccountCode String The GL Account code associated with the given bank.
pointInTime DateTime The date at which the balance should be retrieved.

Example

The following example retrieves the balance of the bank 6010:

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
  WSResult2OfWSBankAccountBalance result = this.ws.GetBankAccountBalance(this.auth, "6010", DateTime.Now);
  Console.WriteLine(String.Format("Balance for {0} at {1}: {2}", "6010", DateTime.Now, result.Result.Balance);
}
⚠️ **GitHub.com Fallback** ⚠️