Skip to content

Getting order items in order API #365

Answered by saleweaver
rashedoz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

yes, Reports are the way to go.

Ideally, you create a subscription using create_report_schedule

Reports().create_report_schedule(
    reportType=ReportType.GET_FLAT_FILE_ORDER_REPORT_DATA_SHIPPING, # or whatever report is best for you
    period=Schedules.MINUTES_30.value,
    nextReportCreationTime="2019-12-10T20:11:24.000Z"
)

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:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rashedoz
Comment options

Answer selected by saleweaver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants