GetStockItem - accountsIQ/API-Wiki GitHub Wiki
The GetStockItem
returns a specific stock item given its identifier.
public WSResult2OfStockItem GetStockItem(string token, string stockItemID)
Public Function GetStockItem(ByVal token As String, ByVal stockItemID As String) As WSResult2OfStockItem
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
stockItemID | String | The identifier that will be used inside the new item. |
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);
}
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