Skip to main content
Published: November 20 2006, 1:42:00 PMUpdated: August 01 2022, 12:15:26 PM

Question: I have specified an valid category ID in my AddItem call, why I am getting the following warning?

<?xml version="1.0" encoding="UTF-8" ?>
Invalid store category ID
Invalid store category ID, 2, since it is non-leaf. So item has been listed to the 'Other' store category
2, since it is non-leaf. So item has been listed to the 'Other' store category




   Answer: AddItem returns Invalid store category ID warning because Storefront property is not appropriately defined in your request:
       If  Storefront container is empty as:
      OR  StoreCategory2ID property is defined but StoreCategoryID is missing from the request:  
      OR Non-leaf StoreCategoryID value
      OR Non-existing StoreCategoryID

Detailed Description

To solve this wraning, you need to :

 1. make GetStore call to get your store's categoryIDs and its structure:
     <?xml version="1.0" encoding="utf-8"?>
     <GetStoreRequest xmlns="urn:ebay:apis:eBLBaseComponents">

  <?xml version="1.0" encoding="UTF-8" ?> 
<GetStoreResponse xmlns="urn:ebay:apis:eBLBaseComponents">
- <Store>
  <Logo />

  <Name>Category 1></Name>
  <Name>second level store</Name>
  <Name>Category 3</Name>
  <Name>Category 4</Name>
     2. Consruct an AddItem call by plugging in CategoryIDs with the correct store categoryID valures returned in GetStore. The valid CategoryIDs for primary StoreCategoryID tag in this sample are :     


  Please keep in mind that  <CategoryID>2</CategoryID>  is not an valid value for the primary StoreCategoryID since it's not a leaf category.

 Additional Resources


How well did this answer your question?
Answers others found helpful