我正在遵循 SP 提要的用例指南。
我可以毫无问题地创建文档并将 XML 上传到其中。
但是我无法使用 createFeed (POST /feeds/2021-06-30/feeds) 端点。我发送的内容应该是有效的正文,并且我有正确的标头,但我仍然收到 403。
curl --location 'https://sellingpartnerapi-eu.amazon.com/feeds/2021-06-30/feeds' \
--header 'x-amz-access-token: {token which worked to createDocument}' \
--header 'Content-Type: application/json' \
--data '{
"feedType": "POST_ORDER_ACKNOWLEDGEMENT_DATA",
"marketplaceIds": [ "A1PA6795UKMFR9" ],
"inputFeedDocumentId": "{feed Id I got from createDocument}"
}'
我收到的错误消息并不是很有帮助:
{
code: 'Unauthorized',
message: 'Access to the resource is forbidden',
details: ''
}
我的角色是
我做错了什么或者我缺少哪些权限有什么帮助吗?
你的要求看起来不错,但是:
inputFeedDocumentId
POST_ORDER_ACKNOWLEDGEMENT_DATA
feed,这是强制性的。