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

`403 Forbidden` response: { "errors": [ { "message": "Access to requested resource is denied.", "code": "Unauthorized", "det (truncated...) #1705

Closed KernelRun closed 2 years ago

KernelRun commented 3 years ago

Hello, We have gone through the Documentation and set up everything as it should be. We can make queries with orders & reports with the same credentials. But for Inventory, we got this error. We opened a CASE 7203859712 but couldn't get answer since july 28. We need help ASAP.

Assume Role request GET https://sts.eu-west-1.amazonaws.com/?Version=2011-06-15&Action=AssumeRole&RoleSessionName=postmanSpApi&RoleArn=arn:aws:iam::1384.......:role/SellingPartnerRole AccessKey

AKIASAPQN3.......... SecretKey DMoS+zacor0tedOq4sl................... AWS Region eu-west-1

Response

AROASAPQN3QAO6VHSHSP4:postmanSpApi arn:aws:sts::1384........:assumed-role/SellingPartnerRole/postmanSpApi ASIASAP............ DB1ocVqNJTqOX29.................... IQoJb3JpZ2luX2VjEHMaCWV1LXdlc3QtMSJHMEUCIHStiFiaSkpw9/dAtZkpJsIS1QKml4gcmBftpr9y/b1hAiEA1vMsHMj3ri7JAMYAFiVmZws4WyCJjv3OS/xYD3HF0dsqmQIIfBAAGgwxMzg0ODAwNDkxNTIiDBTWnPmzi6N/tTnOQyr2AU0qLEdLLjjWgbV4cdYN+6................ 2021-07-28T19:55:50Z 7509ea66-9f3c-49ca-...............

Token request https://api.amazon.com/auth/o2/token refresh_token

Response { "access_token": "Atza|IwEBIGv7bhIQgwYljzlWpCi4lgQjNjG7Spd-iiVrZt8fweahKF-jtRqSbRgyKI7CHvMZA1JhDd4v8INlJhGHIHE9a8iYqpu..........", "refresh_token": "Atzr|IwEBIEI942tMvs................", "token_type": "bearer", "expires_in": 3600 }

Inventory request: https://sellingpartnerapi-eu.amazon.com/fba/inventory/v1/summaries?granularityType=Marketplace&granularityId=ATVPDK........&details=true&marketplaceIds=ATVPDK.......

AWS Region: eu-west-1 Service Name: execute-api

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

RamprasadAkella commented 3 years ago

We are also facing the same issue. @jenilew, @parvathm, @ShivikaK or another dev, could you please help us out here? Thank you!

@KernelRun Were you able to solve this ? Please advise.

ShivikaK commented 3 years ago

Hello @KernelRun,

Thank you for raising this issue.

FBA Inventory API is not launched in EU yet and is only available in NA. Hence you are receiving access denied error for this endpoint.

We have added the regional disclaimer to the FBA Inventory API reference documentation that confirms the same.

https://github.com/amzn/selling-partner-api-docs/blob/main/references/fba-inventory-api/fbaInventory.md

Thanks, Shivika Khare Selling Partner API Developer Support

xbaha commented 3 years ago

@ShivikaK Hello, Thank you for the clarifications. quote: "In 2021 we plan to release this API in the Europe and Far East regions." did you mean 2022 or is it 2021 ? which month or quarter?

github-actions[bot] commented 2 years 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.