1

我一直在使用提要 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,因为它在用例指南中使用过。但亚马逊仍然不喜欢这样。有人可以指导我找到有效产品类型的列表吗?

4

1 回答 1

4

我遇到了同样的问题并解决了这个问题,我只是发送https: // sellpartnerapi-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”。

于 2021-07-20T20:59:22.740 回答