Find the answer to your question
Advanced Search
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" ?>
-
2006-11-20T020:25:19.102Z
Warning
-
Invalid store category ID
Invalid store category ID, 2, since it is non-leaf. So item has been listed to the 'Other' store category
20169
Warning
-
2, since it is non-leaf. So item has been listed to the 'Other' store category
RequestError
487
e487_core_Bundled_3843203_R1
110010661226
2006-11-20T020:25:18.727Z
2006-11-25T020:25:18.727Z
...
Summary
Answer: AddItem returns Invalid store category ID warning because Storefront property is not appropriately defined in your request:
If Storefront container is empty as:
<Storefront></Storefron>
OR StoreCategory2ID property is defined but StoreCategoryID is missing from the request:
<Storefront><StoreCategory2ID>5</StoreCategory2ID></Storefront>
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">
<Version>485</Version>
<RequesterCredentials>
<eBayAuthToken>xxx</eBayAuthToken>
</RequesterCredentials>
</GetStoreRequest>
<?xml version="1.0" encoding="UTF-8" ?>
<GetStoreResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2006-11-20T08:05:08.053Z</Timestamp>
<Ack>Success</Ack>
<Version>483</Version>
<Build>e483_intl_Bundled_3819681_R1</Build>
- <Store>
<Name>external_api_seller81</Name>
<URLPath>externalapiseller81</URLPath>
<URL>http://stores.sandbox.ebay.com.cn/externalapiseller81</URL>
<SubscriptionLevel>Basic</SubscriptionLevel>
<Logo />
....
<CustomCategories>
<CustomCategory>
<CategoryID>1</CategoryID>
<Name>??</Name>
<Order>0</Order>
</CustomCategory>
<CustomCategory>
<CategoryID>2</CategoryID>
<Name>Category 1></Name>
<Order>5</Order>
<ChildCategory>
<CategoryID>6466</CategoryID>
<Name>second level store</Name>
<Order>1</Order>
</ChildCategory>
</CustomCategory>
<CustomCategory>
<CategoryID>4</CategoryID>
<Name>Category 3</Name>
<Order>6</Order>
</CustomCategory>
<CustomCategory>
<CategoryID>5</CategoryID>
<Name>Category 4</Name>
<Order>7</Order>
</CustomCategory>
</CustomCategories>
<CustomListingHeader>
..
<AddToFavoriteStores>false</AddToFavoriteStores>
<SignUpForStoreNewsletter>false</SignUpForStoreNewsletter>
<BreadCrumb>false</BreadCrumb>
</CustomListingHeader>
<MerchDisplay>DefaultTheme</MerchDisplay>
<LastOpenedTime>2006-07-06T13:44:07.000Z</LastOpenedTime>
</Store>
</GetStoreResponse>
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 :
<CategoryID>1</CategoryID>
<CategoryID>6466</CategoryID>
<CategoryID>4</CategoryID>
<CategoryID>5</CategoryID>
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
- Documentation: StoreCategory2ID and StoreCategoryID