eBay errorId 25002 API_INVENTORY“发生用户错误。添加至少 1 张照片。”

问题描述 投票:0回答:1

我的代码将创建一个生成授权代码,然后在沙盒和生产中交换访问令牌、createOrReplaceInventoryItem、getOffer、deleteOffer、createOffer。

但是当我尝试发布优惠时,我收到 25002 API_INVENTORY 错误。怎么解决?

回复:

{"errors":[{"errorId":25002,"domain":"API_INVENTORY","subdomain":"Selling","category":"REQUEST","message":"A user error has occurred. Add at least 1 photo. More photos are better! Show off your item from every angle and zoom in on details.","parameters":[{"name":"0","value":"Add at least 1 photo. More photos are better! Show off your item from every angle and zoom in on details."},{"name":"1","value":"Add at least 1 photo. More photos are better! Show off your item from every angle and zoom in on details."}]}]}

我的 createOrReplaceInventory 数据负载具有有效的 imageURL:

data = {
    # "title": title,
    "product": {
        "isbn": [ISBN],
        "title": eBay_title,
        "description": description,
        "publisher": publisher,
        "edition": edition,
        "aspects": {
            "Language": [language],
            "Book Title": [title],
            "Author": [author],
            "Publisher":[publisher]
        },
        "imageURLs": [
            "https://i.ebayimg.com/images/g/MtcAAOSwkD1mxd1u/s-l1600.jpg"
            ]
    },
    "condition": condition,
    "conditionDescription": first_paragraph,
    "price": {
        "value": price,
        "currency": "USD"
    },
    "packageWeightAndSize": {
        "weight": {
            "value": 6.0,
            "unit": "POUND"
        },
        "dimensions": {
            "length": 12,
            "width": 8,
            "height": 2,
            "unit": "INCH"
        },
        "packageType": "LETTER"
    },
    "itemSpecifics": {
        "nameValueList": [
            {
                "name": "Publisher",
                "value": publisher
            },
            {
                "name": "Author",  # Ensure Author is included here
                "value": author
            }
        ]
    },
    "availability": {
        "shipToLocationAvailability": {
            "quantity": 1,
            "shipToLocationAvailabilityPerShipToLocation": [
                {
                    "quantity": 1,
                    "shippingLocationType": "WAREHOUSE",
                    "merchantLocationKey": merchantLocationKey
                }
            ]
        },
        "pickupAtLocationAvailability": [
            {
                "availabilityType": "IN_STOCK",
                "fulfillmentTime": {
                    "unit": "DAY",
                    "value": 1
                },
                "merchantLocationKey": merchantLocationKey,
                "quantity": 1
            }
        ]
    }
}

我的包符合publishOffer文档。我可以在生产中使用默认 ISBN“978-3-16-148410-0”进行发布。

rest
1个回答
0
投票

此问题的答案“imageURLs”拼写错误应该是“imageUrls”

© www.soinside.com 2019 - 2024. All rights reserved.