Getting order items in order API #365
-
Hello, the order API doesn't send the items of that orders. I want to show the orders with their items like in Amazon Seller central in my inventory. Calling the get items for every order will be unwise. Is there any other way to achieve this? I saw some suggestions to use the reports API. Do I need to create a report for every request? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, yes, Reports are the way to go. Ideally, you create a subscription using create_report_schedule
The report will be generated every 30 minutes (or whatever value is best for you), starting from To get the reports, you can then request a list of reports every n minutes using get_reports, then download the report. The better approach is to setup notifications using a queue though. To do this, you can follow this guide to setup a queue: MWS SQS Notifications. Then register that as a destination for Notifications using Notifications You can find some examples in this library's tests folder...
You'll then get a message in the queue you can listen to, and run whatever logic you need only when a report is available. |
Beta Was this translation helpful? Give feedback.
Hi,
yes, Reports are the way to go.
Ideally, you create a subscription using create_report_schedule
The report will be generated every 30 minutes (or whatever value is best for you), starting from
nextReportCreationTime
.To get the reports, you can then request a list of reports every n minutes using get_reports, then download the report.
The better approach is to setup notifications using a queue though. To do this, you can follow this guide to setup a queue: