【问题标题】:Amazon SP API RDT token API gives 400 errorAmazon SP API RDT 令牌 API 给出 ​​400 错误
【发布时间】:2022-08-03 08:00:27
【问题描述】:

Amazon SP API 有一个端点来获取受限数据令牌。这个 API 给了我一个 400 错误。我很确定我的代码有问题,无法找到它。

端点:https://sellingpartnerapi-eu.amazon.com/tokens/2021-03-01/restrictedDataToken

请求标头(屏蔽):

Content-Type: application/json
host: sellingpartnerapi-eu.amazon.com
x-amz-access-token: Atza|IwEBIBsHaH1Q98exxxxxxxxxxxxxxxxxx
Authorization: AWS4-HMAC-SHA256 Credential=AKIAxxxxxxxxxxx/20220719/eu-west-1/execute-api/aws4_request,SignedHeaders=content-type;host;x-amz-access-token;x-amz-date,Signature=814ed46xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

有效载荷:

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

响应标头:

http_status_message: Bad Request
http_status_code: 400
date: Tue, 19 Jul 2022 12:24:01 GMT
content-type: application/json
content-length: 278
connection: keep-alive
x-amzn-requestid: 0f6aef43-xxxxxxxxxxxxx
x-amz-apigw-id: Vg5Pxxxxxxxxxx
x-amzn-trace-id: Root=1-62d6a261-xxxxxxxxx

回复正文:

<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Size of a request header field exceeds server limit.</p>
</body></html>

帮助表示赞赏。

    标签: amazon amazon-sp-api


    【解决方案1】:

    能否请您告诉我如何获得 PII 访问权限? 实际上我需要在亚马逊卖家合作伙伴 API 中获取买家信息以便订购 api

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-20
      • 2019-03-10
      • 2021-03-22
      • 2022-11-11
      • 2020-05-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多