GetStockItem - accountsIQ/API-Wiki GitHub Wiki

The GetStockItem returns a specific stock item given its identifier.

Declaration

C#

public WSResult2OfStockItem GetStockItem(string token, string stockItemID)

Visual Basic

Public Function GetStockItem(ByVal token As String, ByVal stockItemID As String) As WSResult2OfStockItem

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.
stockItemID String The identifier that will be used inside the new item.

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
  WSResult2OfStockItem item = ws.GetStockItem(auth, "STOCKITEM1");
  Assert.IsTrue(item.Status == OperationStatus.Success && item.Result != null);
}

Visual Basic

Dim ws As New Integration

Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
  Dim item As WSResult2OfStockItem = Me.ws.GetStockItem(Me.auth, "STOCKITEM1")
  Assert.IsTrue(((item.Status = OperationStatus.Success) AndAlso (Not item.Result Is Nothing)))
End If

See Also

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