amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
612 stars 736 forks source link

Generating report for GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2 resulting in error Request for report type 1118 is not allowed at this time #2010

Closed shahviren1985 closed 1 year ago

shahviren1985 commented 3 years ago

POST Request URL - https://sellingpartnerapi-eu.amazon.com/reports/2021-06-30/reports

Request Body - { "reportType": "GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2", "marketplaceIds":["A21TJRUUN4KGV"] }

Response - 400 bad request { "errors": [ { "code": "InvalidInput", "message": "Request for report type 1118 is not allowed at this time", "details": "" } ] }

whitedevils commented 2 years ago

This report can't be scheduled, only requested.

0573xieguojia commented 2 years ago

https://github.com/amzn/selling-partner-api-docs/blob/main/references/reports-api/reporttype-values.md#settlement-reports

Settlement reports cannot be requested or scheduled. They are automatically scheduled by Amazon. You can search for these reports using the getReports operation.

Anuj4444 commented 2 years ago

Hello @shahviren1985

Have you got solution to this problem? I am getting the same error. Please let me know

stefnats commented 2 years ago

@Anuj4444 if I'm not mistaking, then @0573xieguojia already gave the answer?!

Anuj4444 commented 2 years ago

@shahviren1985 yes He gave answer, but this is kind of dead end, I was hoping if you got any solution to this issue.

shahviren1985 commented 2 years ago

Anuj,

you need to call GET api using this URL - change the api endpoint and marketlace ids according to your marketplace. In response you will get the auto generated settlement reports from Amazon.

https://sellingpartnerapi-eu.amazon.com/reports/2021-06-30/reports?reportTypes=GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE&marketplaceIds=A21TJRUUN4KGV

This is working and you will get the settlement data reports.

github-actions[bot] commented 1 year ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.

github-actions[bot] commented 1 year ago

closed for inactivity

usman-rind commented 1 year ago

POST Request URL - https://sellingpartnerapi-eu.amazon.com/reports/2021-06-30/reports

Request Body - { "reportType": "GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2", "marketplaceIds":["A21TJRUUN4KGV"] }

Response - 400 bad request { "errors": [ { "code": "InvalidInput", "message": "Request for report type 1118 is not allowed at this time", "details": "" } ] }

Did you get any solution please share it will be hepful.

hugoganet commented 10 months ago

Hello @usman-rind, those type of report cannot be requested or scheduled. You have to "skip the first step". Directly use the getReports operation, it doesn't take a reportId, only reportType.

Here is the doc for this operation : Operation: getReports And here is the doc about the Settlement report

Hope it help.

yashraj021 commented 3 months ago

Anuj,

you need to call GET api using this URL - change the api endpoint and marketlace ids according to your marketplace. In response you will get the auto generated settlement reports from Amazon.

https://sellingpartnerapi-eu.amazon.com/reports/2021-06-30/reports?reportTypes=GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE&marketplaceIds=A21TJRUUN4KGV

This is working and you will get the settlement data reports.

Why is this sending reports for multiple market IDs when I am just mentioning the USA Marketplace ID

b1bee commented 3 months ago

Anuj, you need to call GET api using this URL - change the api endpoint and marketlace ids according to your marketplace. In response you will get the auto generated settlement reports from Amazon. https://sellingpartnerapi-eu.amazon.com/reports/2021-06-30/reports?reportTypes=GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE&marketplaceIds=A21TJRUUN4KGV This is working and you will get the settlement data reports.

Why is this sending reports for multiple market IDs when I am just mentioning the USA Marketplace ID

Same here

jonagoldman commented 1 month ago

From the Settlement Reports Docs:

[!WARNING] Settlement reports cannot be requested or scheduled. They are automatically scheduled by Amazon (usually every 14 days) and are tied to the disbursement cycle of a seller account.

[!IMPORTANT] A report is available for 90 days after creation. After this time, you must manually regenerate the report in Seller Central.

So you can't generate a settlement report.