Home
Find the answer to your question
The RelistFixedPriceItem call can be used to to relist fixed-price item that has ended. It is recommended to use this call instead of creating a new listing using the AddFixedPriceItem call to take advantage of the recent sales score associated with the listing.
Here is a VB.NET RelistFixedPriceItem sample for re-listing an item with some minor modifications (title updated. subtitle deleted) This sample has been written using the .NET SDK.
Below is the code. Corresponding SOAP request is attached with this article.
Imports eBay.Service.Call Imports eBay.Service.Core.Sdk Imports eBay.Service.Util Imports eBay.Service.Core.Soap Namespace Trading_Samples Public Class RelistFixedPriceItem 'Relist an ended item Private Sub RelistFixedPriceItem() '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 = "727" context.Site = SiteCodeType.Australia Dim relistFP As New RelistFixedPriceItemCall(context) Dim item As New ItemType() item.InventoryTrackingMethod = InventoryTrackingMethodCodeType.SKU item.SKU = "8870" item.Title = "Relisting item with new title" Dim DeletedFields As New StringCollection() DeletedFields.Add("Item.SubTitle") relistFP.DeletedFieldList = DeletedFields relistFP.Item = item relistFP.Execute() Console.WriteLine(relistFP.ApiResponse.Ack + " Relisted SKU. The new ItemID is " + relistFP.ItemID) End Sub End Class End Namespace |