question

rnatmigl avatar image
0 Likes"
rnatmigl asked ·

Is possible not to include a non leaf category?

Hello,

 

I'm developing an application for a big retailer using the eBay Large Merchant Services. I'm facing a big problem and I'm not being able to find a proper solution.

 

The problem is, with the information I get from the retailer, most of the times is not possible to automatically map to a leaf category on eBay.

Also, the retailer will have about 10000 products to sell, so is not feasible to manually map each product to a leaf category.

 

I notice that is possible to automatically use catalog details from an already existing product on eBay, using for example the EAN to map into it.

 

So my questions are:

 

1 - Is there any way to map a product to a non leaf category?

 

2 - If we use the EAN (or ISBN, GTIN, etc) to map into an already existing product, will the application ignore the category included in the request? So it would not return an error in case the category passed is not a leaf?

 

 

Thanks in advance.

leaf-category-map
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered ·

Hi rnatmigl,

 

  1. There is no way to map or list your product to a non leaf category. However; if you know the parent/top categoryID,  you can make the Trading API GetCategories call request as below to get all its leaf categories

 

<?xml version="1.0" encoding="utf-8"?>

<GetCategoriesRequest xmlns="urn:ebay:apis:eBLBaseComponents">

  <RequesterCredentials>

     <eBayAuthToken>xxxx  </eBayAuthToken>

  </RequesterCredentials>

  <LevelLimit>5</LevelLimit>

  <DetailLevel>ReturnAll</DetailLevel>

  <ViewAllNodes>true</ViewAllNodes>

  <CategoryParent>20081</CategoryParent>

</GetCategoriesRequest>

 

Here is a snippet of the relevant section of GetCategories API response.

  <?xml version="1.0" encoding="utf-8"?>

<GetCategoriesResponse xmlns="urn:ebay:apis:eBLBaseComponents">

  <Timestamp>2012-08-01T17:07:41.175Z</Timestamp>

  <Ack>Success</Ack>

  <Version>785</Version>

  <Build>E785_CORE_BUNDLED_15142416_R1</Build>

  <CategoryArray>

    <Category>

      <BestOfferEnabled>true</BestOfferEnabled>

      <AutoPayEnabled>true</AutoPayEnabled>

      <CategoryID>20081</CategoryID>

      <CategoryLevel>1</CategoryLevel>

      <CategoryName>Antiques</CategoryName>

      <CategoryParentID>20081</CategoryParentID>

    </Category>

    <Category>

      <BestOfferEnabled>true</BestOfferEnabled>

      <AutoPayEnabled>true</AutoPayEnabled>

      <CategoryID>37903</CategoryID>

      <CategoryLevel>2</CategoryLevel>

      <CategoryName>Antiquities</CategoryName>

      <CategoryParentID>20081</CategoryParentID>

    </Category>

    <Category>

      <BestOfferEnabled>true</BestOfferEnabled>

      <AutoPayEnabled>true</AutoPayEnabled>

      <CategoryID>37908</CategoryID>

      <CategoryLevel>3</CategoryLevel>

      <CategoryName>The Americas</CategoryName>

      <CategoryParentID>37903</CategoryParentID>

      <LeafCategory>true</LeafCategory>

    </Category>

 

....

</GetCategoriesResponse>

 

 Note. You can also call GetCategories with DetailLevel ReturnAll to download the entire structure and store it in your database.

 

 2.  If you have an EAN and that EAN exists in eBay Catalogs, you can list it in eBay with the product information without sending CategoryID in your request. Please check the following KB for details for the same:
Title: Listing items with product information using eBay catalog

URL:https://ebaydts.com/eBayKBDetails?KBid=1829

 

 

   Please file a Developer Support Request  if you need further assistance.

 

Best Regards,

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.