amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
611 stars 735 forks source link

[BUG] Listing Item API causes error 20005 in amazon #2929

Closed Rian55 closed 2 years ago

Rian55 commented 2 years ago

I tried to list an item to amazon and I managed to successfully submit listing item put request.

My response:

{'errors': None,
 'headers': {'Date': 'Wed, 03 Aug 2022 10:07:10 GMT', 'Content-Type': 'application/json', 'Content-Length': '114', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'e64271c3-95b4-4a96-be77-9c720182948f', 'x-amzn-RateLimit-Limit': '5.0', 'x-amz-apigw-id': 'WSBQBFeEjoEFciA=', 'X-Amzn-Trace-Id': 'Root=1-62ea48cc-5760fc8518eb687718a843ef'},
 'next_token': None,
 'pagination': None,
 'payload': {'issues': [],
             'sku': 'EWP-SATURN-CER-002',
             'status': 'ACCEPTED',
             'submissionId': '783125fe1d2848df8de3834e5c22af87'},
 'rate_limit': '5.0'}

But after it was uploaded to amazon I found it in "Complete Your Draft" section with 20005 error. In this section, product name that I assigned in json document was seen but in edit draft's product identity section Item Name was empty. After I manually entered it external product ID gave me "Product ID entered is not valid" error. I checked this product ID in Add Product section of amazon and this id was valid there.

My request body:

{
  "productType": "BUCKLE",
  "requirements": "LISTING_PRODUCT_ONLY",
  "status": "DISCOVERABLE",
  "attributes": {
    "condition_type": [
      {
        "value": "new_new",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "item_name": [
      {
        "value": "Test Item 003",
        "language_tag": "en_US",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "list_price": [
      {
        "currency": "GBP",
        "value_with_tax": 70.00,
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "purchasable_offer": [
      {
        "currency": "GBP",
        "our_price": [
          {
            "schedule": [
              {
                "value_with_tax": 71.00
              }
            ]
          }
        ]
      }
    ],
    "product_tax_code": [
      {
        "value": "A_GEN_TAX",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "main_product_image_locator": [
      {
        "media_location": "https://seller-central-storage.s3.eu-central-1.amazonaws.com/EWP-SATURN-CER-002.jpg",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "fulfillment_availability": [
      {
        "fulfillment_channel_code": "DEFAULT",
        "quantity": 13
      }
    ],
    "size": [
      {
        "value": 41,
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "country_of_origin": [
      {
        "value": "UK",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "batteries_required": [
      {
        "value": false,
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "item_package_dimensions": [
      {
        "length": {
          "value": 10,
          "unit": "centimeters"
        },
        "width": {
          "value": 10,
          "unit": "centimeters"
        },
        "height": {
          "value": 10,
          "unit": "centimeters"
        },
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "model_name": [
      {
        "value": "Samba",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "item_type_name": [
      {
        "value": "Watch, Winder, Blender, Lamp",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "care_instructions": [
      {
        "value": "none",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "supplier_declared_material_regulation": [
      {
        "value": "not_applicable",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "product_description": [
      {
        "value": "Can you ever have too much Adrenaline? No",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "brand": [
      {
        "value": "Brand",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "fabric_type": [
      {
        "value": "Cotton",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "merchant_suggested_asin": [
      {
        "value": "B337KG2XN3",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "manufacturer": [
      {
        "value": "Manufacturer",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "color": [
      {
        "value": "Cranberry",
        "language_tag": "en_GB",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "outer": [
      {
        "material": [
          {
            "value": "Leather",
            "language_tag": "en_GB"
          }
        ],
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "department": [
      {
        "value": "None",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "externally_assigned_product_identifier": [
      {
        "value": "7192643414863",
        "type": "ean",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "age_range_description": [
      {
        "value": "Adult",
        "language_tag": "en_GB",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "item_package_weight": [
      {
        "value": "10",
        "unit": "pounds",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "closure": [
      {
        "type": [
          {
            "value": "Buckle, Slip-On",
            "language_tag": "en_GB"
          }
        ],
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "recommended_browse_nodes": [
      {
        "value": "2458745547",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "bullet_point": [
      {
        "value": "Fully adjustable straps \n\nS",
        "language_tag": "en_GB",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "target_gender": [
      {
        "value": "male",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "weave_type": [
      {
        "value": "Cross",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ],
    "supplier_declared_dg_hz_regulation": [
      {
        "value": "unknown",
        "marketplace_id": "A1F83G8C2ARO7P"
      }
    ]
  }
}

Update: Changing item_name's language tag from en_US to en_GB fixed item name issue, but external id issue remains

Update2 Removing merchant_suggested_asin solved external id issues. Hope this case helps someone

Rian55 commented 2 years ago

Update: Changing item_name's language tag from en_US to en_GB fixed item name issue, but external id issue remains

Update2 Removing merchant_suggested_asin solved external id issues. Hope this case helps someone