GetCustomerDefaults - accountsIQ/API-Wiki GitHub Wiki
The GetCustomerDefaults
function retrieves all default values used when creating new customers.
public WSResult2OfAccountDefaults GetCustomerDefaults(string token)
Public Function GetCustomerDefaults(ByVal token As String) As WSResult2OfAccountDefaults
Parameter Type Description
token | String | The session token retrieved during authentication. |
---|
The following example loads the current customer defaults.
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
WSResult2OfAccountDefaults defaults = this.ws.GetCustomerDefaults(this.auth);
if( defaults.Status == OperationStatus.SUCCESS )
{
String controlAccount = defaults.ControlGLAccountCode;
// ...
}
}
Dim ws As New Integration_1_1
Dim auth As String = ws.Login(entityID, partnerKey, userKey)
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