EBAY SDK - 添加项目 - 错误:找不到ProductListingDetails的产品。与EAN

时间:2015-08-21 13:45:37

标签: sdk ebay ebay-api

我正在尝试使用API​​

向ebay添加产品

这是一段代码:

<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现在需要Brand,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

如何才能将此产品列入清单?我做错了什么?

0 个答案:

没有答案