abuzuhri / Amazon-SP-API-CSharp

.Net C# library for the new Amazon Selling Partner API
MIT License
215 stars 191 forks source link

Feed pricing failed #664

Open Coder7777 opened 1 year ago

Coder7777 commented 1 year ago

Whatever how long I wait, the update price action always stay at "IN PROGRESS"

I can not get ResultFeedDocumentId

ReportManager reportManager = new ReportManager(amazonConnection);
var products = reportManager.GetProducts();
var line1 = products.First();
var productRow = products.Take(1).Select(x => new PriceMessage()
{
    SKU = x.SellerSku,
    BusinessPrice = 999.99M,
    MaximumSellerAllowedPrice = new StandardPrice()
    {
        currency = MarketPlace.Canada.CurrencyCode.ToString(),
        Value = "999.99"
    },
    MinimumSellerAllowedPrice = new StandardPrice()
    {
        currency = MarketPlace.Canada.CurrencyCode.ToString(),
        Value = "999.99"
    },
    StandardPrice = new StandardPrice()
    {
        currency = MarketPlace.Canada.CurrencyCode.ToString(),
        Value = "999.99"
    }
}).ToList();

ConstructFeedService createDocument = new ConstructFeedService("", "1.02");

createDocument.AddPriceMessage(productRow);
var xml = createDocument.GetXML();

var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_PRODUCT_PRICING_DATA);

Thread.Sleep(1000 * 60);

var feedOutput = amazonConnection.Feed.GetFeed(feedID);

var outPut = amazonConnection.Feed.GetFeedDocument(feedOutput.ResultFeedDocumentId);
var reportOutpit = outPut.Url;

var processingReport = await amazonConnection.Feed.GetFeedDocumentProcessingReportAsync(outPut.Url);

Console.WriteLine("Hello, World!");
image
Coder7777 commented 1 year ago

I found not only Pricing like this, for inventory is the same, always keeping INPROGRESS.

I can get all orders, but it seems I can not modify anything.