Skip to main content
Published: June 28 2011, 6:07:00 AMUpdated: November 28 2020, 9:53:06 PM

Use the ReviseFixedPriceItem call to change the properties of an active fixed-price listing.

Here is a C# ReviseFixedPriceItem sample that demonstrates how to delete the item's sub-title. 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 */

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

namespace Trading_Samples
{
    public class Revise
    {  
        private void ReviseFixedPriceItem()    
      {
                        
            //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 = "725";
            context.Site = SiteCodeType.Australia;   

            ReviseFixedPriceItemCall reviseFP = new ReviseFixedPriceItemCall(context);

            ItemType item = new ItemType();
            item.SKU = "1724";          


            //Delete SubTitle
            StringCollection DeletedFields = new StringCollection();
            DeletedFields.Add("Item.SubTitle");

            reviseFP.DeletedFieldList = DeletedFields;

            reviseFP.Item = item;
            reviseFP.Execute();
            Console.WriteLine(reviseFP.ApiResponse.Ack + " Revised SKU " + reviseFP.SKU);        

        }
   }

}

How well did this answer your question?