Amazon MWS problem with _POST_INVENTORY_AVAILABILITY_DATA_

前端 未结 2 1735
猫巷女王i
猫巷女王i 2021-01-23 07:25

im using the \"C# Library for Batch Data Exchange Feeds\" from https://mws.amazon.com/doc/en_US/bde/feeds/v20090901/cSharp.html

I want to update the quantity of a produc

相关标签:
2条回答
  • 2021-01-23 07:48
        Thread.Sleep(240000);
                            errorMessage = string.Empty;
                            errorArticleIDList = new SortedList<string, string>();
                            if (GetSubmitFeedReport(feedSubmissionId, out errorMessage, out errorArticleIDList))
                            {
                                if (errorMessage != string.Empty)
                                {
                                    _log.ErrorFormat("FEHLER UpdateAmazonArticleStock: {0}", errorMessage);
                                }
    
                                foreach (AmazonArticleInfo amzArticle in rcavAmzArticleList)
                                {
                                    if (errorArticleIDList.Count > 0)
                                    {
                                        if (!errorArticleIDList.ContainsKey(amzArticle.ArticleID.ToString()))
                                        {
                                            // Die Artikelbestände von den relevanten Artikel aktuallisieren, bzw deaktivierte Artikel wieder aktivieren
                                            // Bestand = 0 --> deaktiviert
                                        if (!amzArticle.StockToLow && !amzArticle.NotAmazonRelevant)
                                            {
                                                amzArticle.AmazonActive = true;
                                            }
                                            // Alle nicht mehr relevanten Artikel in amazon deaktivieren
                                            else
                                            {
                                                amzArticle.AmazonActive = false;
                                            }
                                            dlAmazon.UpdateAmazonArticleAVDB(amzArticle);
                                        }
                                    }
                                    else
                                    {
                                        if (errorMessage == string.Empty)
                                        {
                                            dlAmazon.UpdateAmazonArticleAVDB(amzArticle);
                                        }
                                    }
                                }
                            }
    
    0 讨论(0)
  • 2021-01-23 07:55

    You should check the status of your feed by its ID by using the operation getfeedsubmissionresult

    0 讨论(0)
提交回复
热议问题