Skip to content

Settlement Report ERROR 'message': 'Access to requested resource is denied.', 'code': 'Unauthorized' #3144

Answered by ezpinsky
Noorilahi asked this question in General
Discussion options

You must be logged in to vote

The settlement report can't be created by using the createReport operation. It is auto generated by Amazon for data within the last 90 days and each report generated contains 2 weeks of data. To access these generated reports you need to hit the getReports operation in the reports api and filter for the settlement report. Be sure to notice that this operation does not use startDate and endDate but createdUntil and createdSince. Default time interval is 90 days back I think. Anyway, the response will have the report ids of the pre generated settlement reports. Just save the report ids from the response and now you can use your normal report API flow to download the report. Hope this helps!

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Noorilahi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants