应用程序无权访问一个或多个请求的数据元素:[buyerInfo, ShippingAddress]

发布于 2025-01-17 20:27:58 字数 649 浏览 4 评论 0原文

我正在尝试请求受限访问令牌,但收到此错误。我的要求有问题吗?

请求

POST https:// sellpartnerapi-na.amazon.com/tokens/ 2021-03-01/restrictedDataToken? HTTP/1.1 接受:应用程序/json x-amz-访问令牌:X x-amz-日期:20220330T131704Z 授权:X 签名=X 内容类型:application/json 主机:sellingpartnerapi-na.amazon.com 内容长度:116 预期:100-继续

{"restrictedResources":[{"method":"GET","path":"/orders/v0/orders","dataElements":["buyerInfo","shippingAddress"]}]}

响应:

{ “错误”:[ { "code": "无效输入", "message": "应用程序无权访问一个或多个请求的数据元素:[buyerInfo, ShippingAddress]", “细节”: ”” } ] }

I am trying to request a restricted access token, but I get this error. Is something wrong with my request?

Request

POST https://sellingpartnerapi-na.amazon.com/tokens/2021-03-01/restrictedDataToken? HTTP/1.1
Accept: application/json
x-amz-access-token: X
x-amz-date: 20220330T131704Z
Authorization: X
Signature=X
Content-Type: application/json
Host: sellingpartnerapi-na.amazon.com
Content-Length: 116
Expect: 100-continue

{"restrictedResources":[{"method":"GET","path":"/orders/v0/orders","dataElements":["buyerInfo","shippingAddress"]}]}

Response:

{
"errors": [
{
"code": "InvalidInput",
"message": "Application does not have access to one or more requested data elements: [buyerInfo, shippingAddress]",
"details": ""
}
]
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枯叶蝶 2025-01-24 20:27:58

您必须先申请限制角色:“直接面向消费者的运输、税务发票、税务汇款”。
我通过邮递员成功调用了 RDT,但我无法通过调用订单 api 使用 rdt 获取买家姓名。

You have to apply for restricted roles first :"Direct-to-Consumer Shipping,Tax Invoicing,Tax Remittance".
I called RDT by postman successfully, but I can't get buyer name with rdt by calling orders api.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文