Skip to main content
Published: July 13 2011, 5:28:00 AMUpdated: November 28 2020, 9:55:14 PM

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 C# 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.

using eBay.Service.Call;
using eBay.Service.Core.Sdk;
using eBay.Service.Util;
using eBay.Service.Core.Soap;

namespace Trading_Samples
{
public class RelistFixedPriceItem
{
//Relist an ended item
private void RelistFixedPriceItem()
{

//create the context
ApiContext context = 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; 

            RelistFixedPriceItemCall relistFP = new RelistFixedPriceItemCall(context);

            ItemType item = new ItemType();
            item.InventoryTrackingMethod = InventoryTrackingMethodCodeType.SKU;
            item.SKU = "8870";
            item.Title = "Relisting item with new title";


            StringCollection DeletedFields = 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);

}
}
}


How well did this answer your question?
Answers others found helpful