GetCustomer - accountsIQ/API-Wiki GitHub Wiki
The GetCustomerfunction retrieves a single Customer given its customer code from an entity.
public WSResult2OfCustomer GetCustomer(string token, string customerCode)Public Function GetCustomer(ByVal token As String, ByVal customerCode As String) As WSResult2OfCustomer| Parameter | Type | Description |
|---|---|---|
| token | String | The session token retrieved during authentication. |
| customerCode | string | The code of the customer to retrieve. |
Integration ws = new Integration();
String auth = "";// See Authentication page for more
if (auth != null)
{
WSResult2OfCustomer wscustomer = ws.GetCustomer(auth, "TESTINTEGR");
Customer customer = wscustomer.Result;
}Dim ws As New Integration
Dim auth As String = "" // See Authentication page for more
If (Not Me.auth Is Nothing) Then
Dim customer As Customer = Me.ws.GetCustomer(Me.auth, "TESTINTEGR").Result
End If