GetCustomerDefaults - accountsIQ/API-Wiki GitHub Wiki

The GetCustomerDefaults function retrieves all default values used when creating new customers.

Declaration

C#

public WSResult2OfAccountDefaults GetCustomerDefaults(string token)

Visual Basic

Public Function GetCustomerDefaults(ByVal token As String) As WSResult2OfAccountDefaults

Parameter List

Parameter Type Description

token String The session token retrieved during authentication.

Example

The following example loads the current customer defaults.

C#

Integration ws = new Integration();

String auth = "";// See Authentication page for more
if( auth != null )
{
  WSResult2OfAccountDefaults defaults = this.ws.GetCustomerDefaults(this.auth);
  if( defaults.Status == OperationStatus.SUCCESS )
  {
    String controlAccount = defaults.ControlGLAccountCode;
    // ...
  }
}

Visual Basic

Dim ws As New Integration_1_1

Dim auth As String = "" // See Authentication page for more  
If (Not Me.auth Is Nothing) Then
  Dim defaults As WSResult2OfAccountDefaults = Me.ws.GetCustomerDefaults(Me.auth)
  If (defaults.Status = OperationStatus.Success) Then
      Dim controlAccount As String
      controlAccount = defaults.ControlGLAccountCode
      ' ...
  End If
End If

See Also

⚠️ **GitHub.com Fallback** ⚠️