【问题标题】:Amazon SP API Feeds API processing report: Invalid product typeAmazon SP API Feeds API 处理报告:产品类型无效
【发布时间】:2021-07-20 13:41:04
【问题描述】:

我一直在使用提要 API。我已经能够创建提要文档、加密负载并将其上传到返回的 URL、创建提要,然后检查其状态。一旦状态达到DONE 状态,我也能够得到处理报告:处理报告如下所示:

{
  "header": {
    "sellerId": "A1HGLY0OQBKE5U",
    "version": "2.0",
    "feedId": "50042018828"
  },
  "issues": [
    {
      "messageId": 1,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 2,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 3,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 4,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 5,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 6,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 7,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 8,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 9,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 10,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 11,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 12,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 13,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 14,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 15,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 16,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 17,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 18,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    },
    {
      "messageId": 19,
      "code": "4000003",
      "severity": "ERROR",
      "message": "The Amazon product type specified is invalid or not supported."
    }
  ],
  "summary": {
    "errors": 19,
    "warnings": 0,
    "messagesProcessed": 19,
    "messagesAccepted": 0,
    "messagesInvalid": 19
  }
}

有效载荷是这样的:

{
  "header": {
    "sellerId": "A1HGLY0OQBKE5U",
    "version": "2.0"
  },
  "messages": [
    {
      "messageId": 1,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "Awesome Bronze Car",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "sk77"
    },
    {
      "messageId": 2,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "Sleek Steel Chair",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "sk80"
    },
    {
      "messageId": 3,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "Aerodynamic Iron Gloves",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "sk81"
    },
    {
      "messageId": 4,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "Sleek Copper Clock",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "sk86"
    },
    {
      "messageId": 5,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "Mediocre Plastic Wallet",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "sk88"
    },
    {
      "messageId": 6,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-6088C959"
    },
    {
      "messageId": 7,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-20D88EFC"
    },
    {
      "messageId": 8,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-0BAF36BA"
    },
    {
      "messageId": 9,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-CD28D4F0"
    },
    {
      "messageId": 10,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-9A544946"
    },
    {
      "messageId": 11,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-F2FD045F"
    },
    {
      "messageId": 12,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-0138EE43"
    },
    {
      "messageId": 13,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-D334BA28"
    },
    {
      "messageId": 14,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-8650D0FD"
    },
    {
      "messageId": 15,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] 1 L Le Parfait Jar",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "SLLPJ-8D93E1C3"
    },
    {
      "messageId": 16,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "Gorgeous Copper Hat",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "sk94"
    },
    {
      "messageId": 17,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "[Sample] Tiered Wire Basket",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "TWB"
    },
    {
      "messageId": 18,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "Heavy Duty Cotton Gloves",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "sk98"
    },
    {
      "messageId": 19,
      "operationType": "UPDATE",
      "productType": "SHOES",
      "attributes": {
        "item_name": [
          {
            "value": "Ergonomic Steel Lamp",
            "language_tag": "en_US",
            "marketplace_id": "A21TJRUUN4KGV"
          }
        ],
        "fulfillment_availability": [
          {
            "fulfillment_channel_code": "AMAZON_NA",
            "quantity": 10
          }
        ]
      },
      "sku": "sk103"
    }
  ]
}

可以看出,我使用的是产品类型SHOES。在之前的尝试中,我使用了产品类型LUGGAGE,因为在用例指南中使用了它。但亚马逊仍然不喜欢这样。有人可以指导我查看有效产品类型的列表吗?

【问题讨论】:

    标签: python amazon-product-api amz-sp-api


    【解决方案1】:

    我遇到了同样的问题并解决了这个问题,我只是发送https://sellingpartnerapi-na.amazon.com/definitions/2020-09-01/productTypes?marketplaceIds=A2EUQ1WTGCTBG2 以获取 productType 是 PRODUCT。

    您可以参考https://github.com/amzn/selling-partner-api-docs/blob/main/references/product-type-definitions-api/definitionsProductTypes_2020-09-01.md#searchdefinitionsproducttypes在没有关键字参数的卖家中心查看productType是什么。

    因此,您可以使用 "productType": "PRODUCT" 再次尝试。

    【讨论】:

      猜你喜欢
      • 2023-02-14
      • 2022-08-03
      • 1970-01-01
      • 2022-08-03
      • 1970-01-01
      • 1970-01-01
      • 2021-06-25
      • 2022-10-16
      • 1970-01-01
      相关资源
      最近更新 更多