-
Notifications
You must be signed in to change notification settings - Fork 2
GetBankAccountBalance
Arivetti edited this page Aug 8, 2025
·
3 revisions
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 = "";// See Authentication page for more
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);
}