Update inventory stocks #43
-
Ho, Thank you very much, Happy holiday |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 5 replies
-
Hi @ferrarinim , Thanks :) Do you try this example , you can add Up to 10GB messages I thing its will be more than 200K messages ConstructFeedService createDocument = new ConstructFeedService("A3J37AJU4O9RHK", "1.02");
var list = new List<PriceMessage>();
list.Add(new PriceMessage()
{
SKU = "8201031206122...",
StandardPrice = new StandardPrice()
{
currency = BaseCurrencyCode.AED.ToString(),
Value = (201.0522M).ToString("0.00")
}
});
createDocument.AddPriceMessage(list);
var xml = createDocument.GetXML();
var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_PRODUCT_PRICING_DATA);
Thread.Sleep(1000*30);
var feedOutput=amazonConnection.Feed.GetFeed(feedID);
var outPut=amazonConnection.Feed.GetFeedDocument(feedOutput.ResultFeedDocumentId);
var reportOutpit = outPut.Url; |
Beta Was this translation helpful? Give feedback.
-
Here Update stock sample ConstructFeedService createDocument = new ConstructFeedService("A3J37AJU4O9RHK", "1.02");
var list = new List<InventoryMessage>();
list.Add(new InventoryMessage()
{
SKU = "8201031206122...",
Quantity = 2,
FulfillmentLatency = "11",
});
createDocument.AddInventoryMessage(list);
var xml = createDocument.GetXML();
var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_INVENTORY_AVAILABILITY_DATA); |
Beta Was this translation helpful? Give feedback.
-
@abuzuhri I got this work, but ended up having to use WebRequest to stream the content to a string variable. For some reason, 'GetFeedDocumentProcessingReport' is not recognized as a member of 'amazonConnection.Feed'. Thanks,
|
Beta Was this translation helpful? Give feedback.
-
@abuzuhri While it looks like that code segment above is working, there is an issue. The SKU that I submitted in the feed did not exist in the catalog and should have resulted in a response similar to the one below, but it didn't. It indicated no errors at all. Thanks,
|
Beta Was this translation helpful? Give feedback.
-
Hi @wheelersf After checking this code for change price ConstructFeedService createDocument = new ConstructFeedService("{SellerID}", "1.02");
var list = new List<PriceMessage>();
list.Add(new PriceMessage()
{
SKU = "820103120612.2...",
StandardPrice = new StandardPrice()
{
currency = BaseCurrencyCode.AED.ToString(),
Value = (201.0522M).ToString("0.00")
}
});
createDocument.AddPriceMessage(list);
var xml = createDocument.GetXML();
var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_PRODUCT_PRICING_DATA);
Thread.Sleep(1000 * 30);
var feedOutput = amazonConnection.Feed.GetFeed(feedID);
var outPut = amazonConnection.Feed.GetFeedDocument(feedOutput.ResultFeedDocumentId);
Thread.Sleep(1000 * 30);
var reportOutpit = outPut.Url;
var processingReport = amazonConnection.Feed.GetFeedDocumentProcessingReport(reportOutpit); I get ResultDescription
|
Beta Was this translation helpful? Give feedback.
-
Hi @abuzuhri , That's actually a different feed than what I used. I used the INVENTORY feed, not the PRICING feed. The INVENTORY feed is what indicated no errors with the bad SKU. Also, my build (1.0.29) doesn't have .GetFeedDocumentProcessingReport as a member of feed. Was that recently added? Anyone else experiencing what I am? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Seems that if you call GetFeedDocumentProcessingReport (which calls GetFeedDocumentProcessingReportAsync) you get the correct result. If you call GetFeedDocumentProcessingReport directly it doesn't return the result. |
Beta Was this translation helpful? Give feedback.
Here Update stock sample