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.
Below is the code. Corresponding SOAP request is attached with this article.
/* 2012-2013 eBay Inc., All Rights Reserved */ /* Licensed under CDDL 1.0 - http://opensource.org/licenses/cddl1.php */
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"
'set the version context.Version = "725" context.Site = SiteCodeType.Australia
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.AUD atUp.Value = 75
Dim atDown As New AmountType() atDown.currencyID = CurrencyCodeType.AUD 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
Dim InvStatus2 As New InventoryStatusType() InvStatus2.SKU = "9013" InvStatus2.StartPrice = atUp InvStatus2.Quantity = 20
'Revising price only Dim InvStatus3 As New InventoryStatusType() InvStatus3.SKU = "1724" InvStatus3.StartPrice = atDown
'Revising qty only Dim InvStatus4 As New InventoryStatusType() InvStatus4.SKU = "4539" InvStatus4.Quantity = 20