GetSupplier - accountsIQ/API-Wiki GitHub Wiki

The GetSupplierfunction retrieves a single Supplier given its supplier code from an entity.

Declaration

C#

public WSResult2OfSupplier GetSupplier(string token, string suppliercode)

Visual Basic

Public Function GetSupplier(ByVal token As String, ByVal supplier As String) As WSResult2OfSupplier

Parameter List

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

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
  WSResult2OfSupplier wssupplier = ws.GetSupplier(auth, "TESTINTEGR");
  Supplier supplier = wssupplier.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 supplier As Supplier = Me.ws.GetSupplier(Me.auth, "TESTINTEGR").Result
End If

See Also

Supplier
WSResultStatus

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