GetCustomerContacts - accountsIQ/API-Wiki GitHub Wiki

The GetCustomerContacts function retrieves all contacts for a particular Customer given its customer code from an entity.

HelpJuice links:
How do I Maintain Customer Master Records?
Adding & Editing a Customer Account

Declaration

C#

public WSResult2OfArrayOfWSAccountContact GetCustomerContacts(string token, string customerCode)

Visual Basic

Public Function GetCustomerContacts(ByVal token As String, ByVal customerCodeAs String) As WSResult2OfArrayOfWSAccountContact

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.
customerCode string The code of the customer you want to retrieve all contacts from.

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
  var wsCustomerContacts = ws.GetCustomerContacts(auth, "TESTINTEGR");
  var customerContacts = wsCustomerContacts.Result;
}

Visual Basic

Dim ws As New Integration

Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
  Dim customerContacts As WSResult2OfArrayOfWSAccountContact = Me.ws.GetCustomerContacts(Me.auth, "TESTINTEGR").Result
End If

See Also

WSAccountContact
WSResultStatus
GetSupplierContacts
GetAllCustomerContacts

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