我正在尝试使用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.<EAN> <5707725100255>. </ShortMessage>
我认为这是因为ebay在其产品数据库中查找EAN以查看它是否已退出并且是已知产品。
如果我删除EAN,我会收到错误:
<ShortMessage>No product found for ProductListingDetails.<EAN> <5707725100255>. </ShortMessage>
我猜是因为它正在使用UPC,如果我删除了EAN和UPC,我会收到错误:
<ShortMessage>No product found for ProductListingDetails.<BrandMPN> <, NRK0033>. </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.<UPC> <Does not apply>. </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
如何才能将此产品列入清单?我做错了什么?