ebay json api 测试工具未在调用中找到 sku
ebay json api testing tool not finding sku in calls
我正在使用 ebay 的沙箱 api,但我总是 运行 出错。
所以你可以使用 API 测试 tool here.
现在我的产品在我的 ebay 活动列表页面的沙盒上。
但是当我使用 API 测试工具并尝试使用此调用 https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/{SKU}
时,它会在响应主体
中给出以下错误
{
"errors": [
{
"errorId": 25710,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "We didn't find the entity you are requesting. Please verify the request"
}
]
}
现在我读了一些书,他们说只要我使用库存跟踪方法 item.InventoryTrackingMethod = InventoryTrackingMethodCodeType.SKU;
设置为 SKU,它就应该可以工作。所以我不确定为什么不是。
我认为有 3 个潜在问题可能会导致它。
- 沙箱 API 有问题并且有错误(不太可能但可能)
- 跟国家有关,但我也不确定是不是这个。
- 因为我使用 SOAP API 使用 fixedpriceitem 调用添加产品,它与 JSON API
不匹配
有没有其他人遇到过这个问题,知道可能是怎么回事?
这不是直接的答案,但可能会让您朝着正确的方向前进。
我将尝试解释我如何检索 SKU(但在使用 SOAP 时)。
当我通过 GetMyEbaySelling 调用获取 Active/SoldList 件商品时。
优先于 Item 的主要标识符始终是 Item.ItemID(如果存在)。
您是否在使用多版本列表?
您是否尝试过将 ItemID 作为主要标识符传递,然后在您的 ItemID 下为给定变体找到正确的 SKU?
For multiple-variation listings, a SKU value is actually required for each product variation within the listing. However, the SKU value for each product variation is actually specified at the variation level (Item.Variations.Variation.SKU) field, and the Item.SKU) field should not be included in the call request.
好的,对于可能 运行 这个问题的其他人来说,似乎 SOAP API 和清单 API 不兼容。
我无法准确确认这一点,但库存 API JSON 调用是正确的,但他们返回的测试产品具有我在 SOAP API 调用中指定的 SKU。
如果其他人可以提供意见来确认此问题或准确概述发生了什么,那就太好了。
干杯
我正在使用 ebay 的沙箱 api,但我总是 运行 出错。 所以你可以使用 API 测试 tool here.
现在我的产品在我的 ebay 活动列表页面的沙盒上。
但是当我使用 API 测试工具并尝试使用此调用 https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/{SKU}
时,它会在响应主体
{
"errors": [
{
"errorId": 25710,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "We didn't find the entity you are requesting. Please verify the request"
}
]
}
现在我读了一些书,他们说只要我使用库存跟踪方法 item.InventoryTrackingMethod = InventoryTrackingMethodCodeType.SKU;
设置为 SKU,它就应该可以工作。所以我不确定为什么不是。
我认为有 3 个潜在问题可能会导致它。
- 沙箱 API 有问题并且有错误(不太可能但可能)
- 跟国家有关,但我也不确定是不是这个。
- 因为我使用 SOAP API 使用 fixedpriceitem 调用添加产品,它与 JSON API 不匹配
有没有其他人遇到过这个问题,知道可能是怎么回事?
这不是直接的答案,但可能会让您朝着正确的方向前进。
我将尝试解释我如何检索 SKU(但在使用 SOAP 时)。
当我通过 GetMyEbaySelling 调用获取 Active/SoldList 件商品时。 优先于 Item 的主要标识符始终是 Item.ItemID(如果存在)。
您是否在使用多版本列表? 您是否尝试过将 ItemID 作为主要标识符传递,然后在您的 ItemID 下为给定变体找到正确的 SKU?
For multiple-variation listings, a SKU value is actually required for each product variation within the listing. However, the SKU value for each product variation is actually specified at the variation level (Item.Variations.Variation.SKU) field, and the Item.SKU) field should not be included in the call request.
好的,对于可能 运行 这个问题的其他人来说,似乎 SOAP API 和清单 API 不兼容。
我无法准确确认这一点,但库存 API JSON 调用是正确的,但他们返回的测试产品具有我在 SOAP API 调用中指定的 SKU。
如果其他人可以提供意见来确认此问题或准确概述发生了什么,那就太好了。
干杯