-
Notifications
You must be signed in to change notification settings - Fork 2
GetStockItem
Arivetti edited this page Aug 8, 2025
·
2 revisions
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 = "";// See Authentication page for more
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 = "" // See Authentication page for more
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