跳至内容

ANY_OFFER_CHANGED notification with SQS

0

Hi there,

The application under development uses the ANY_OFFER_CHANGED notification to monitor the price changes of the items we sell on Amazon. According to the documentation, if the price of any of the top 20 sellers changes, a notification is generated. Suppose we have an item that no one is currently selling on Amazon. Updating our inventory, we put this item on the list for sale as the only seller. In this case, would an ANY_OFFER_CHANGED notificaton be triggered?

Best regards, intellagent

已提问 3 年前1083 查看次数

3 回答
1

You will only receive ANY_OFFER_CHANGED notifications for items for which you have active offers. You cannot subscribe to notifications for items for which you do not have active offers. To know more about the notification, Kindly refer [+].

[+] https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide#any_offer_changed:~:text=ed4ec98dd746%22%0A%20%20%20%7D%0A%20%7D-,ANY_OFFER_CHANGED,-Sellers%20can%20subscribe

AWS
专家

已回答 3 年前

0

I'm using SP-API to create notification messages whenever a product's offer changes (notification type: ANY_OFFER_CHANGED).

It is working because I can see messages when I go to Amazon SQS --> Queues and I can see a bunch of messages available.

My question: What function in the API do we call in our application in order to actually get and enumerate through the messages?

Calling getDestination() or getSubscription() only seem to return ID's in the payload, but I don't know what function to call in order to enumerate through all these messages sitting in the Queue.

Our goal is to call our application every few minutes to process messages and update the prices of our products based on these notification messages in the queue. I just need someone to point me on what API function is used to retrieve these messages.

已回答 2 年前

0

See, e.g., AWS SDK for .NET API Documentation: AmazonSQSClient.ReceiveMessage (ReceiveMessageRequest) .

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。