【问题标题】:eBay SDK - adding an item - error: No product found for ProductListingDetails. with EANeBay SDK - 添加项目 - 错误:未找到 ProductListingDetails 的产品。与 EAN
【发布时间】:2015-11-15 11:52:18
【问题描述】:

我正在尝试使用 API 将产品添加到 eBay。

这是代码的sn-p:

<Item>
    <Currency>GBP</Currency>
    <Country>GB</Country>
    <ListingDuration>Days_30</ListingDuration>
    <PrimaryCategory>
        <CategoryID>31413</CategoryID>
    </PrimaryCategory>
    <Location>GB</Location>
    <StartPrice>42.79</StartPrice>
    <Quantity>10</Quantity>
    <ProductListingDetails>
    <BrandMPN>
      <Brand>Nourkrin</Brand>
      <MPN>NRK-0033</MPN>
    </BrandMPN>
    <UPC>5707725100255</UPC>
    <EAN>5707725100255</EAN>
    <ListIfNoProduct>true</ListIfNoProduct>

    </ProductListingDetails>

eBay 现在需要品牌、MPN、EAN 和 UPC,但是当我将这些添加到我的代码中时,我收到了错误:

<ShortMessage>No product found for ProductListingDetails.&lt;EAN&gt; &lt;5707725100255&gt;. </ShortMessage>

我认为这是因为 eBay 正在其产品数据库中查找 EAN,以查看它是否存在并且是已知产品。

如果我删除 EAN,我会收到错误:

<ShortMessage>No product found for ProductListingDetails.&lt;EAN&gt; &lt;5707725100255&gt;. </ShortMessage>

我猜是因为它使用的是 UPC,如果我删除 EAN 和 UPC,我会收到错误:

<ShortMessage>No product found for ProductListingDetails.&lt;BrandMPN&gt; &lt;, NRK0033&gt;. </ShortMessage>

和..

<LongMessage>Required field, EAN, is missing. Please add EAN to the listing and retry.</LongMessage>

我已尝试将 EAN 和 UPC 更改为“不适用”

<UPC>Does not apply</UPC>
<EAN>Does not apply</EAN>

但我得到了错误:

<ShortMessage>No product found for ProductListingDetails.&lt;UPC&gt; &lt;Does not apply&gt;. </ShortMessage>

沙盒 API 上的 AddItem 模板如下所示:

<ISBN> string </ISBN>
<UPC> string </UPC>
<EAN> string </EAN>
<BrandMPN><Brand> string </Brand>
<MPN> string </MPN>
</BrandMPN>

https://developer.ebay.com/devzone/xml/docs/Reference/ebay/AddItem.html

我也试过删除&lt;ListIfNoProduct&gt;true&lt;/ListIfNoProduct&gt;,但似乎没有任何区别。

我也看过这个帖子:

eBay SDK AddItem new ProductDetails EAN Requirements CANNOT List Or Revise

我怎样才能让这个产品上市?我做错了什么?

【问题讨论】:

    标签: ebay-api ebay-sdk


    【解决方案1】:

    我对此有很多问题,但对我有用的是:如果您有 UPC 号码,那么您必须为 EAN 传递“不适用”(但使用 EAN 然后将空字符串传递给 UPC)。

    不要将数字传递给两个字段,因为这总是会导致错误。

    所以应该这样做:

    <Item>
    <Currency>GBP</Currency>
    <Country>GB</Country>
    <ListingDuration>Days_30</ListingDuration>
    <PrimaryCategory>
        <CategoryID>31413</CategoryID>
    </PrimaryCategory>
    <Location>GB</Location>
    <StartPrice>42.79</StartPrice>
    <Quantity>10</Quantity>
    <ProductListingDetails>
      <BrandMPN>
        <Brand>Nourkrin</Brand>
        <MPN>NRK-0033</MPN>
      </BrandMPN>
      <UPC>Does not apply</UPC>
      <EAN>5707725100255</EAN>
      <ListIfNoProduct>true</ListIfNoProduct>
      ...
    </ProductListingDetails>
    <ItemSpecifics>
         //add brand and mpn here as well
    </ItemSpecifics>
    

    eBay 还建议将品牌和 MPN 也放入 &lt;ItemSpecifics&gt; 标记中。抱歉,我正在使用 C# API,所以我无法为您提供准确的 XML 表示形式。

    希望这会有所帮助。

    已编辑:

    已检查,5707725100255 是 EAN 编号而非 UPC。编辑了我的答案。

    【讨论】:

    • 感谢您的回答,我尝试将 UPC 更改为不适用,但是我收到错误:找不到 ProductListingDetails 的产品。
    • 尝试从请求中删除 UPC。
    • 好的,试过了,结果...失败没有找到 ProductListingDetails 的产品。
    • 您的 EAN 错误或品牌 + MPN 组合错误。您还向 ItemSpecifics 标签添加了品牌 + MPN 吗?
    • 是的,我添加了特定于项目的标签,这发生在我试图在 ebay 上列出的大约 8000 个项目上,在他们添加了关于 EAN/UPC/Brand 的新规则之前,一切都正常工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-31
    • 1970-01-01
    • 1970-01-01
    • 2014-07-10
    • 1970-01-01
    相关资源
    最近更新 更多