eBay大中华区API开发者平台 开发者专区

搜 索
首页>API开发者平台>技术文档>调用ReviseFixedPriceItem更改某个一口价商品的属性

技术文档

问题
调用ReviseFixedPriceItem更改某个一口价商品的属性
解答
0
人觉得答案有帮助)

 

具体代码如下。相应的SOAP 请求附于文末。

请注意,例程使用了下列SKU:

                1724

你需要先调用AddFixedPriceItem,使用这个SKU创建一个新商品。

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

namespace Trading_Samples 

    public class Revise 
    { 
        static void Main(string[] args) 
        { 
            Revise test = new Revise(); 
            test.ReviseFixedPriceItem(); 
        } 

        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 = "673"; 
            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); 

        } 
    } 


 

 

 

  附件
   • XML document ReviseFPItem DeletedField 673.xml

 


答案对您有帮助吗?

是,对我很有帮助
否,没解决我的问题