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.
public WSResult2OfWSBankAccountBalance GetBankAccountBalance(string token, string bankGlAccountCode, DateTime pointInTime)
Public Function GetBankAccountBalance(ByVal token As String, ByVal bankGlAccountCode as String, ByVal pointInTime As DateTime) As WSResult2OfWSBankAccountBalance
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. |
The following example retrieves the balance of the bank 6010:
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);
}