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
public WSResult2OfArrayOfWSAccountContact GetCustomerContacts(string token, string customerCode)
Public Function GetCustomerContacts(ByVal token As String, ByVal customerCodeAs String) As WSResult2OfArrayOfWSAccountContact
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. |
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
var wsCustomerContacts = ws.GetCustomerContacts(auth, "TESTINTEGR");
var customerContacts = wsCustomerContacts.Result;
}
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
WSAccountContact
WSResultStatus
GetSupplierContacts
GetAllCustomerContacts