【问题标题】:How do you change/update a listing image using the Amazon SP-API?您如何使用 Amazon SP-API 更改/更新列表图像?
【发布时间】:2022-03-08 04:53:45
【问题描述】:

我一直在尝试对 SP-API (https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/use-case-guides/listings-items-api-use-case-guide/listings-items-api-use-case-guide_2020-09-01.md#tutorial-partially-update-a-listing) 的列表项部分使用 patchListingsItem 操作。

但是我不确切知道如何格式化更改图像的请求正文。

这是更新产品标题的正文:

{
  "productType":"LUGGAGE",
  "patches":[
    {
      "op":"replace",
      "path":"/attributes/item_name",
      "value":[
        {
          "value": "AmazonBasics 16\" Underseat Spinner Carry-On",
          "language_tag": "en_US",
          "marketplace_id": "ATVPDKIKX0DER"
        }
      ]
    }
  ]
}

我缺少图像更新补丁请求的正确“路径”和“值”。

【问题讨论】:

    标签: amz-sp-api


    【解决方案1】:

    第一次调用获取定义产品类型 本指南遵循:https://developer-docs.amazon.com/sp-api/docs/product-type-definitions-api-v2020-09-01-reference#get-definitions2020-09-01producttypesproducttype 得到这样的回应: “属性组”:{ “图片”: { “标题”:“图像”, "description": "Indiquez le contenu média, comme les images de produits", “属性名称”:[ "main_product_image_locator", "other_product_image_locator_1", "other_product_image_locator_2", "other_product_image_locator_3", "other_product_image_locator_4", "other_product_image_locator_5", "other_product_image_locator_6", "other_product_image_locator_7", "other_product_image_locator_8", “swatch_product_image_locator” ] },

    【讨论】:

    • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 1970-01-01
    • 2022-06-29
    • 2022-06-27
    • 1970-01-01
    • 1970-01-01
    • 2016-02-23
    • 1970-01-01
    • 1970-01-01
    • 2017-07-08
    相关资源
    最近更新 更多