拒绝访问请求的资源403 SP-API AMAZON-C# [英] Access to requested resource is denied 403 SP-API AMAZON - C#
本文介绍了拒绝访问请求的资源403 SP-API AMAZON-C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题,以调用新的SP-API AMAZON.我正在使用Amazon提供的C#库.
Problem with to call the new SP-API AMAZON. I am using the C# library provided by Amazon.
https://github.com/amzn/selling-partner-api-models/tree/main/clients/sellingpartner-api-aa-csharp!
resource api : https://sandbox.sellingpartnerapi-na.amazon.com/orders/v0/orders
{
"errors": [
{
"message": "Access to requested resource is denied.",
"code": "Unauthorized",
"details": ""
}
]
}
解决方案
I had the same error, and after days of struggle I found my solution, hope it helps somebody else.
I followed every single step in the Selling Partner API Developer Guide, but, when creating the app in the Amazon Seller Central, I used the User ARN. This was my mistake. To solve the problem I created a new app using the Rol ARN instead of the User ARN.
Like this:
这篇关于拒绝访问请求的资源403 SP-API AMAZON-C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文