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
580 stars 730 forks source link

Report Apis is giving Unauthorized error. #721

Closed RonyFrancis closed 3 years ago

RonyFrancis commented 3 years ago

I facing this issue. Report API is giving Unauthorised error. Is anyone else facing this issue

request:

url: https://sellingpartnerapi-na.amazon.com/reports/2020-09-04/reports header: X-Amz-Date: 20201022T093416Z X-Amz-Access-Token: Authorization: Accept: application/json Content-type: application/json body: { "reportOptions": {}, "reportType": "_GET_MERCHANT_LISTINGS_ALLDATA", "dataStartTime": "2019-12-10T20:11:24.000Z", "dataEndTime": "", "MarketplaceIds": [ "A1PA6795UKMFR9", "ATVPDKIKX0DER" ] }

reponse: header: X-Amzn-Requestid: c2e5bf7b-223e-4e1e-95d4-b36aef58fc94 X-Amzn-Errortype: AccessDeniedException Content-type: application/json

body: { "errors": [ { "message": "Access to requested resource is denied.", "code": "Unauthorized", "details": "" } ] }

p-prins commented 3 years ago

This might be related to amzn/selling-partner-api-models#690 amzn/selling-partner-api-models#699 amzn/selling-partner-api-models#713 .

rodrigojob commented 3 years ago

Of course that you removed security info header of your post. I'm triyng generate signature without success. With AWS SDK or not. What language you are using?

ShivikaK commented 3 years ago

Hello @RonyFrancis

We will need to work with you via a support case to resolve this issue. Please open a support case so we can pursue the investigation.

Thanks, 
Shivika Khare
 Selling Partner API Developer Support