【问题标题】:getCatalogItem: Access to requested resource is deniedgetCatalogItem:拒绝访问请求的资源
【发布时间】:2023-02-14 18:23:51
【问题描述】:

我想打电话获取目录项在邮递员中,但越来越

{
    "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 Postman access key as x-amz-access-token aws auth signature

我打电话给https://api.amazon.com/auth/O2/token 获取访问密钥Here the postman request

【问题讨论】:

    标签: postman amazon-sp-api


    【解决方案1】:

    确保您具有进行该调用所需的权限。 documentation 说你需要

    批准您的开发者资料中的产品列表角色。

    在您的应用程序的应用程序注册页面中选择的产品列表角色。

    【讨论】:

      猜你喜欢
      • 2017-06-18
      • 1970-01-01
      • 1970-01-01
      • 2022-08-05
      • 1970-01-01
      • 2017-10-07
      • 2021-02-10
      • 1970-01-01
      • 2022-08-11
      相关资源
      最近更新 更多