For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

VB.NET ReviseInventoryStatus sample

  • Answer ID 1642
  • Published 07/30/2010 05:17 PM
  • Updated 10/20/2013 06:41 AM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=1642
Product

ReviseInventoryStatus is an efficient light-weight call that we recommend sellers use when they want to revise price and/or quantity of their fixed-price listing. The call allows you to revise these parameters for 4 items in a single request.

When revising the quantity, specify the quantity that is currently available for sale. If you are out of stock for the item then you should end the item. However there is a slight difference for multi-variation items.

ReviseInventoryStatus can be used to take the available quantity down to zero for a given variation in a multi-variation listing (by reference to a specific SKU). If the particular variation has had sales then the variation will show as 'Out of Stock' on the eBay View Item Page. If the variation has not had any sales then it will be removed from the listing with a warning. That variation will no longer be visible on the eBay View Item page.

Caution: If only one variation has stock left you cannot use ReviseInventoryStatus to reduce the available quantity to zero. In this situation, you must invoke the EndFixedPriceItem call, which will end the entire multi-variation listing.

Here is a VB.NET ReviseInventoryStatus sample. This sample has been written using the .NET SDK v817.


*Prerequisite - make sure to have added an item with the SKU's below

Below is the code. Corresponding SOAP request is attached with this article.

© 2010-2013 eBay Inc., All Rights Reserved
'Licensed under CDDL 1.0 - http://opensource.org/licenses/cddl1.php
Imports eBay.Service.Call Imports eBay.Service.Core.Sdk Imports eBay.Service.Util Imports eBay.Service.Core.Soap Namespace Trading_Samples Public Class Revise 'ReviseInventoryStatus Private Sub ReviseInventoryStatus() 'create the context Dim context As New ApiContext() 'set the User token context.ApiCredential.eBayToken = "Your token" 'set the server url context.SoapApiServerUrl = "https://api.sandbox.ebay.com/wsapi" 'enable logging context.ApiLogManager = New ApiLogManager() context.ApiLogManager.ApiLoggerList.Add(New FileLogger("log.txt", True, True, True)) context.ApiLogManager.EnableLogging = True 'set the version context.Version = "817" context.Site = SiteCodeType.UK Dim ris As New ReviseInventoryStatusCall(context) 'RIS is a light-weight call that allows you to revise price and/qty of 4 SKUs at a time ris.InventoryStatuList = New InventoryStatusTypeCollection() Dim atUp As New AmountType() atUp.currencyID = CurrencyCodeType.GBP atUp.Value = 75 Dim atDown As New AmountType() atDown.currencyID = CurrencyCodeType.GBP atDown.Value = 25 Dim InvStatus1 As New InventoryStatusType() 'Assumption item is listed with InventoryTrackingMethod = SKU. This SKU could be the SKU of a
'regular fixed price item 'or the SKU of one of the variations of a multi-variations item InvStatus1.SKU = "1359" 'Revising price and qty InvStatus1.StartPrice = atDown InvStatus1.Quantity = 20 ris.InventoryStatuList.Add(InvStatus1) Dim InvStatus2 As New InventoryStatusType() InvStatus2.SKU = "9013" InvStatus2.StartPrice = atUp InvStatus2.Quantity = 20 ris.InventoryStatuList.Add(InvStatus2) 'Revising price only Dim InvStatus3 As New InventoryStatusType() InvStatus3.SKU = "1724" InvStatus3.StartPrice = atDown ris.InventoryStatuList.Add(InvStatus3) 'Revising qty only Dim InvStatus4 As New InventoryStatusType() InvStatus4.SKU = "4539" InvStatus4.Quantity = 20 ris.InventoryStatuList.Add(InvStatus4) ris.Execute() Console.WriteLine(ris.ApiResponse.Ack) End Sub End Class End Namespace
File Attachments

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter