HowTo: getReport from SP-API using MWS reportRequestId #3148
-
👋 hello! I'm in the process of migrating existing customers to the new Selling Partner API. These customer's integrations are currently powered by MWS, and part of the integration is the implementation of the asynchronous I'm currently caching the I'll be migrating our report generation process to also using the SP API, but I'm hoping to account for customers who will have reports requested before cutover and fetching their reports after cutover. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 3 replies
-
Please try to read the documentation here to help you migrate. In short, you can not just use the reportRequestId. In SP-API, you use createReport operation to get a reportId, you then poll a report using the getReport operation passing the reportId and if you receive a DONE status, you will also receive a reportDocumentId in the response. You will need to cache the reportDocumentId and use that with the getReportDocument operation to receive a url where you're report can be downloaded from. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Please try to read the documentation here to help you migrate. In short, you can not just use the reportRequestId. In SP-API, you use createReport operation to get a reportId, you then poll a report using the getReport operation passing the reportId and if you receive a DONE status, you will also receive a reportDocumentId in the response. You will need to cache the reportDocumentId and use that with the getReportDocument operation to receive a url where you're report can be downloaded from. Hope this helps.