Skip to main content
Published: July 13 2011, 5:09:00 AMUpdated: November 28 2020, 9:54:02 PM

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

Here is a C# ReviseFixedPriceItem sample for revising item specifics of an existing item. 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 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 = "727";
            context.Site = SiteCodeType.Australia;  

            ReviseFixedPriceItemCall reviseFP = new ReviseFixedPriceItemCall(context);

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

            //Specify the entire item specifics container
            item.ItemSpecifics = new NameValueListTypeCollection();

            NameValueListTypeCollection ItemSpecs = new NameValueListTypeCollection();

            NameValueListType nv1 = new NameValueListType();
            StringCollection valueCol1 = new StringCollection();

            nv1.Name = "Brand";
            valueCol1.Add("Ralph Lauren");
            nv1.Value = valueCol1;

            ItemSpecs.Add(nv1);
            
            NameValueListType nv2 = new NameValueListType();
            StringCollection valueCol2 = new StringCollection();
            nv2.Name = "Size";
            valueCol2.Add("M");
            nv2.Value = valueCol2;
            ItemSpecs.Add(nv2);

            NameValueListType nv3 = new NameValueListType();
            StringCollection valueCol3 = new StringCollection();
            nv3.Name = "Colour";
            valueCol3.Add("Blue");
            nv3.Value = valueCol3;
            ItemSpecs.Add(nv3);

            item.ItemSpecifics = ItemSpecs;

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

    }

}

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