Skip to main content
Published: May 29 2008, 8:04:00 PMUpdated: November 28 2020, 4:14:28 PM

Is there a way to determine the url to my store and its custom categories?

Detailed Description

You can make a call to GeteBayDetails and get the url for your store as below:

<?xml version="1.0" encoding="utf-8"?>
<GeteBayDetailsRequest xmlns="urn:ebay:apis:eBLBaseComponents">

Relevant portion of the Response:
<?xml version="1.0" encoding="utf-8"?>
<GeteBayDetailsResponse xmlns="urn:ebay:apis:eBLBaseComponents">

To the URL, you need to add your store name.  For instance, if your store name is GreatTreasures, the url to your store would be: 

Q.  What is the URL  for a store category?

A. This is the format available at the time of writing this article.  Please keep in mind that this can change:<storename>_<CategoryName>(_<ChildCategoryName)>+)_W0QQcolZ2QQdirZQ2d1QQfsubZ<LeafCategoryID>QQftidZ2QQtZkm

<storename> is the user's store name
<CategoryName> is the root category
If there are child categories then after the under score add the ChildCategoryName till we reach the leaf
<LeafCategoryID> is the Store CategoryID for the leaf
Also, we replace replace space in category name with - (hyphen)

Lets take an example.  Lets assume that you have the following category structure:

Category                Store CategoryID
test                               1
test1 (child of test)        2

Now lets say you need the url for test1, then this would be url:

Q.  What is the  store URL for displaying the store items in  "Gallery" view and sort "Best Match" preselected

A.  Here are the steps for formatting store URL with the view set to "Gallery" view and "Best Match" sort. Please keep in mind that this can be changed
          1. Make GetStore API call to obtain the following values:

          2. Format URL for displaying Store category with the view set to "Gallery" view and "Best Match" sort :

              Where <Store.Name> is the user's store name returned in GetStore API call
                         <ChiledCatetory.Name> is the Child Store category name
                         <ChildCategory.CategoriyID> is the Child Store CategoryID
                        You will need to replace space in store name and category name with - (hyphen)

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