【问题标题】:ebay json api testing tool not finding sku in callsebay json api 测试工具在调用中找不到 sku
【发布时间】:2018-01-31 03:44:24
【问题描述】:

我正在使用 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 个潜在问题可能导致它。

  1. 沙盒 API 有问题并且有问题(不太可能但可能)
  2. 这与国家有关,但我也不确定是不是这个。
  3. 因为我使用 SOAP API 使用 fixedpriceitem 调用添加产品,所以它与 JSON API 不匹配

有没有其他人遇到过这个问题,并且知道可能发生了什么?

【问题讨论】:

    标签: c# json api soap ebay-api


    【解决方案1】:

    这不是直接的答案,但可能会让你朝着正确的方向前进。

    我将尝试解释我是如何检索 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.

    【讨论】:

    • 嗨@karol Flis 感谢您的帮助,是的,我在使用 SOAP API 时没有遇到问题,但我想使用 JSON API,这就是我遇到问题的地方。 JSON API 在请求中根本不使用 ItemID 字段。 Here is the docs page
    【解决方案2】:

    好吧,对于可能遇到此问题的其他人来说,SOAP API 和 Inventory API 似乎不兼容。

    我无法准确确认这一点,但 Inventory API JSON 调用是正确的,但它们返回的测试产品具有我在 SOAP API 调用中指定的 SKU。

    如果其他人可以提供意见以确认此问题或准确概述正在发生的事情,那就太好了。

    干杯

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-01
      • 2022-01-22
      • 1970-01-01
      • 2016-05-14
      • 2023-02-13
      • 2020-05-05
      • 1970-01-01
      • 2014-03-19
      相关资源
      最近更新 更多