-
Notifications
You must be signed in to change notification settings - Fork 2
GetCustomer
Leandro Rowies edited this page Sep 27, 2022
·
3 revisions
The GetCustomer
function 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 = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
WSResult2OfCustomer wscustomer = ws.GetCustomer(auth, "TESTINTEGR");
Customer customer = wscustomer.Result;
}
Dim ws As New Integration
Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
Dim customer As Customer = Me.ws.GetCustomer(Me.auth, "TESTINTEGR").Result
End If