postman 获取目录项:拒绝访问请求的资源

zrfyljdw  于 2023-02-19  发布在  Postman
关注(0)|答案(1)|浏览(244)

我尝试在Postman中调用getCatalogItem,但是

{
    "errors": [
        {
            "message": "Access to requested resource is denied.",
            "code": "Unauthorized",
            "details": ""
        }
    ]
}

在遵循https://developer-docs.amazon.com/sp-api/docs/connecting-to-the-selling-partner-api中提供的说明和示例之后,我通过Postman向sellers/v1/marketplaceParticipations发送marketplaceParticipations请求时收到以下信息

{
    "payload": [
        {
            "marketplace": {
                "id": "AHRY1CZE9ZY4H",
                "countryCode": "US",
                "name": "Amazon.com Invoicing Shadow Marketplace",
                "defaultCurrencyCode": "USD",
                "defaultLanguageCode": "en_US",
                "domainName": "invoicing-shadow-marketplace.amazon.com"
            },
            "participation": {
                "isParticipating": true,
                "hasSuspendedListings": false
            }
        },
        {
            "marketplace": {
                "id": "ATVPDKIKX0DER",
                "countryCode": "US",
                "name": "Amazon.com",
                "defaultCurrencyCode": "USD",
                "defaultLanguageCode": "en_US",
                "domainName": "www.amazon.com"
            },
            "participation": {
                "isParticipating": true,
                "hasSuspendedListings": true
            }
        }
    ]
}

但是当我尝试调用任何其他API端点时,我得到的是Access to requested resource is denied.The Response and API Call in Postmanaccess key as x-amz-access-tokenaws auth signature
我正在调用https://api.amazon.com/auth/O2/token以获取访问密钥Here the postman request

ct3nt3jp

ct3nt3jp1#

请确保您具有进行该调用所需的权限。documentation提示您需要
批准您的开发人员配置文件中的产品列表角色。
以及
在应用程序注册页面中为您的应用程序选择的产品列表角色。

相关问题