问题描述
我一直在使用 Feeds 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,{
"messageId": 3,{
"messageId": 4,{
"messageId": 5,{
"messageId": 6,{
"messageId": 7,{
"messageId": 8,{
"messageId": 9,{
"messageId": 10,{
"messageId": 11,{
"messageId": 12,{
"messageId": 13,{
"messageId": 14,{
"messageId": 15,{
"messageId": 16,{
"messageId": 17,{
"messageId": 18,{
"messageId": 19,"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"
},"attributes": {
"item_name": [
{
"value": "Sleek Steel Chair","sku": "sk80"
},"attributes": {
"item_name": [
{
"value": "Aerodynamic Iron gloves","sku": "sk81"
},"attributes": {
"item_name": [
{
"value": "Sleek copper Clock","sku": "sk86"
},"attributes": {
"item_name": [
{
"value": "Mediocre Plastic Wallet","sku": "sk88"
},"attributes": {
"item_name": [
{
"value": "[Sample] 1 L Le Parfait Jar","sku": "sllPJ-6088C959"
},"sku": "sllPJ-20D88EFC"
},"sku": "sllPJ-0BAF36BA"
},"sku": "sllPJ-CD28D4F0"
},"sku": "sllPJ-9A544946"
},"sku": "sllPJ-F2FD045F"
},"sku": "sllPJ-0138EE43"
},"sku": "sllPJ-D334BA28"
},"sku": "sllPJ-8650D0FD"
},"sku": "sllPJ-8D93E1C3"
},"attributes": {
"item_name": [
{
"value": "Gorgeous copper Hat","sku": "sk94"
},"attributes": {
"item_name": [
{
"value": "[Sample] Tiered Wire Basket","sku": "TWB"
},"attributes": {
"item_name": [
{
"value": "Heavy Duty Cotton gloves","sku": "sk98"
},"attributes": {
"item_name": [
{
"value": "Ergonomic Steel Lamp","sku": "sk103"
}
]
}
可以看出,我使用的是产品类型 SHOES
。在之前的尝试中,我使用了产品类型 LUGGAGE
,因为它在用例指南中使用过。但亚马逊仍然不喜欢这样。有人可以指导我查看有效产品类型的列表吗?
解决方法
我遇到了同样的问题并解决了这个问题,我只是发送 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" 再试一次。