GetNewCustomerFromDefaults - accountsIQ/API-Wiki GitHub Wiki

The GetNewCustomerFromDefaults returns a new customer pre-populated with the customer defaults values.

The system maintains a set of default settings for each new customer created in the system. This is maintainable from the front-end.

Important Note: The returned customer has not yet been created in the system and needs to be saved using the UpdateCustomer method.

Declaration

C#

public WSResult2OfCustomer GetNewCustomerFromDefaults(string token, string customerCode)

Visual Basic

Public Function GetNewCustomerFromDefaults(ByVal token As String, ByVal customerCode As String) As WSResult2OfCustomer

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
  WSResult2OfCustomer it = ws.GetNewCustomerFromDefaults(auth);
  Assert.IsTrue(it.Result != null);
  Assert.IsTrue(it.Status == OperationStatus.Success);
}

Visual Basic

Dim ws As New Integration

Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not auth Is Nothing) Then
  Dim it As WSResult2OfCustomer = Me.ws.GetNewCustomerFromDefaults(Me.auth)
  Assert.IsTrue((Not it.Result Is Nothing))
  Assert.IsTrue((it.Status = OperationStatus.Success))
End If

See Also

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