Skip to content

GetCustomer

Leandro Rowies edited this page Sep 27, 2022 · 3 revisions

The GetCustomerfunction retrieves a single Customer given its customer code from an entity.

Declaration

C#

public WSResult2OfCustomer GetCustomer(string token, string customerCode)

Visual Basic

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

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.
customerCode string The code of the customer to retrieve.

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
  WSResult2OfCustomer wscustomer = ws.GetCustomer(auth, "TESTINTEGR");
  Customer customer = wscustomer.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 customer As Customer = Me.ws.GetCustomer(Me.auth, "TESTINTEGR").Result
End If

See Also

Customer
WSResultStatus

Clone this wiki locally