简体   繁体   English

eBay API {sku} 找不到或在系统中不可用

[英]eBay API {sku} could not be found or is not available in the system

According to documentation createOrReplaceProductCompatibility根据文档createOrReplaceProductCompatibility

I've added as required but for some reason I'm getting response我已按要求添加,但出于某种原因我收到了回复

{
    "errors": [
        {
            "errorId": 25702,
            "domain": "API_INVENTORY",
            "subdomain": "Selling",
            "category": "REQUEST",
            "message": "15955 could not be found or is not available in the system",
            "parameters": [
                {
                    "name": "text1",
                    "value": "15955"
                }
            ]
        }
    ]
}

What I'm doing is going with request to我正在做的是请求

PUT https://api.ebay.com/sell/inventory/v1/inventory_item/15955/product_compatibility

And my headers contains我的标题包含

Authorization:Bearer ....
Content-Language:en-US

Body:身体:

{
    "compatibleProducts": [
        {
            "productFamilyProperties": {
                "Year": "2019",
                "Make": "Chevrolet",
                "Model": "Blazer",
                "Trim": "Base Sport Utility 4-Door",
                "Engine": "2.5L 2457CC 153Cu. In. l4 GAS DOHC Naturally Aspirated"
            }
        }
    ] 
}

POSTMAN: POSTMAN: 在此处输入图像描述

This looks to me as you are using regular items instead of inventory items.这在我看来是因为您使用的是常规物品而不是库存物品。

First go with migrating-listings .首先是带有迁移列表的go。 This will switch your items to inventory items, and then you will be able to find the items over SKU.这会将您的商品切换为库存商品,然后您将能够通过 SKU 找到这些商品。

One more way to check is to go with:另一种检查方法是使用以下命令访问 go:

GET https://api.ebay.com/sell/inventory/v1/inventory_item?limit=100&offset=1000

It should return you它应该返回你

{
    "total": 0,
    "size": 0
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM