GetInventory Overview
Request
Field Name | Data Type | Description |
req |
GetInventoryRequest |
Properties required to request a product inventory |
response |
GetInventoryResponse |
An object with the product's inventory details |
URL is http://xx.ws.sellercloud.com/SCInventoryService.asmx the XX should be replaced with your serverID
Dim sc As New SC.SCInventoryServiceSoapClient() Dim auth As New SC.AuthHeader auth.ApplicationName = "GetInventoryApplication" auth.ApplicationVersion = "1" auth.UserName = tbUserName.Text.Trim //your CWA username goes here auth.Password = tbPassword.Text.Trim //your CWA password goes here Dim inv As New SC.GetInventoryResponseType Try inv = sc.GetInventory(auth, ProductID, warehouseID) Catch ex As Exception InvLabel.ForeColor = Color.Red InvLabel.Text = "Error getting inventory. ErrorMessage: " & ex.Message End Try // You can now reference the ResponseType Object Dim result as string = "" result += "ProductID: " & inv.ProductID & vbcrlf result += "WarehouseName: " & inv.WarehouseName & vbcrlf result += "Available Qty: " & inv.AvailQty & vbcrlf result += "Physical Qty: " & inv.PhysicalQty & vbcrlf result += "Inventory Date: " & inv.InventoryDate & vbcrlf lblResult.text = result
Attachments: