我正在尝试使用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现在需要品牌、MPN、EAN和UPC,但是当我将这些添加到我的代码中时,我得到以下错误:
<ShortMessage>No product found for ProductListingDetails.<EAN> <5707725100255>. </ShortMessage>
我认为这是因为eBay在它的产品数据库中查找企业网,看看它是否存在并且是一个已知的产品。
如果我删除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更改为‘not apply’
<UPC>Does not apply</UPC>
<EAN>Does not apply</EAN>
但是我得到了一个错误:
<ShortMessage>No product found for ProductListingDetails.<UPC> <Does not apply>. </ShortMessage>
沙盒接口上的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
我也尝试过删除<ListIfNoProduct>true</ListIfNoProduct>
,但似乎没有什么不同。
我也看了这篇文章:
eBay SDK AddItem new ProductDetails EAN Requirements CANNOT List Or Revise
我怎样才能让这个产品上市呢?我做错了什么?
发布于 2015-08-27 07:13:38
我在这方面遇到了很多问题,但对我有效的是:如果你有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放在<ItemSpecifics>
标签中。对不起,我正在使用XML,所以我不能给你它的确切的C#表示。
希望这能有所帮助。
编辑:
选中,并且5707725100255
是EAN号码,而不是UPC。编辑了我的答案。
https://stackoverflow.com/questions/32141947
复制相似问题