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

Use the EndFixedPriceItem call to end the specified fixed-price listing before the date and time at which it would normally end (per the listing duration). For e.g. you may need to use this call to pull down listing from the site if you discover that you are out of stock on that particular listing.

Here is a C# EndFixedPriceItem sample for ending a listing. 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 EndListing
        private void EndFixedPriceItem()     
            //create the context
            ApiContext context = new ApiContext();

            //set the User token
            context.ApiCredential.eBayToken = "Your token";

            //set the server url
            context.SoapApiServerUrl = "";

            //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;   

            EndFixedPriceItemCall endFP = new EndFixedPriceItemCall(context);

            endFP.SKU = "4539";
            endFP.EndingReason = EndReasonCodeType.NotAvailable;

            Console.WriteLine(endFP.ApiResponse.Ack + " Ended SKU " + endFP.SKU);



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