Countries
Read onlyI am successfully able to generate the access key, secret key, and session token. Additionally, I can retrieve the marketplace ID and seller information using the API without any issues. However, when I attempt to call the ProductListing API, I receive the following error message:
Client error: POST https://sellingpartnerapi-eu.amazon.com/listings/2021-08-01/items resulted in a 403 Forbidden response: { "errors": [ { "code": "Unauthorized", "message": "Access to requested resource is denied.", "d (truncated...)
I have already granted the necessary permissions, and I also reauthorized the application. Could you please assist in identifying the cause of this issue? Any guidance would be greatly appreciated.
Hi @Seller_lvQuJYcXjzy6E,
Since you mentioned successfully retrieving marketplace ID and seller information, it seems your general Selling Partner API authentication is set up correctly.
However, the Listings Items API is a sub-API, and it requires you to explicitly pass the appropriate credentials during its initialization.
Double-check your code to verify that these credentials are being included when initializing the Listings Items API. If this step is missed or configured incorrectly, the API won’t authenticate your requests, leading to the "Access to requested resource is denied" error.
Michael
Hello! @Seller_lvQuJYcXjzy6E
This is Roberto. Thank you for using the Forums, I wanted to follow up here and highlight the response provided by @Seller_i6S8knzW6zU6Z (Thank you!).
If you still need support, I would encourage you to connect with our Developer Support.
Regards,