question

shukrarai avatar image
0 Likes"
shukrarai asked

StoresFixedPrice skip primary category for FixedPriceItem

Hi There,

I would like to add items to my store. 

I have downloaded all my store categories and putting the store category in Storefront.StoreCategoryID.

The problem is I cannot skip PrimaryCategory.CategoryID and if I put my ebay store's category id in here it gives exception (category not valid).

I do not want to download all thousands of category from ebay to replace my a few store category. 

 

I hope I made my question clear. Could you please advise the right path for the solution to my problem?

 

Many Thanks.

 

 

Below is the sample XML

 

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

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

  <RequesterCredentials>

    <eBayAuthToken>XYZ</eBayAuthToken>

  </RequesterCredentials>

  <Version>815</Version>

  <ErrorLanguage>en_US</ErrorLanguage>

  <WarningLevel>High</WarningLevel>

  <Item>

    <ItemID></ItemID>

    <DispatchTimeMax>2</DispatchTimeMax>

    <ListingDuration>GTC</ListingDuration>

    <PrimaryCategory>

      <CategoryID>4170012017</CategoryID>

    </PrimaryCategory>

    <Country>AU</Country>

    <Currency>AUD</Currency>

    <CategoryMappingAllowed>true</CategoryMappingAllowed>

    <InventoryTrackingMethod>SKU</InventoryTrackingMethod>

    <ListingType>FixedPriceItem</ListingType>

    <Location>Crows Nest NSW, Australia</Location>

    <PaymentMethods>PayPal</PaymentMethods>

    <PayPalEmailAddress>ttest@casdl.com.au</PayPalEmailAddress>

    <ReturnPolicy>

      <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>

      <RefundOption>Exchange</RefundOption>

      <Description>7 days after the buyer receives it</Description>

      <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>

    </ReturnPolicy>

    <ShippingDetails>

      <ShippingServiceOptions>

        <FreeShipping>false</FreeShipping>

        <ShippingService>AU_StandardDelivery</ShippingService>

        <ShippingServiceCost currencyID="AUD">20</ShippingServiceCost>

        <ShippingServiceAdditionalCost currencyID="AUD">20</ShippingServiceAdditionalCost>

      </ShippingServiceOptions>

    </ShippingDetails>

    <PictureDetails>

      <PictureURL>http://www.shoppinglane.com.au/temp/media/4906/5566_12_586_364.jpg</Pict...

    </PictureDetails>

    <ConditionID>1000</ConditionID>

    <ConditionDescription>Brand New: A brand-new, unused, unopened, undamaged item. See the seller's listing for full details</ConditionDescription>

    <Quantity>10</Quantity>

    <SKU>4906-4737</SKU>

    <StartPrice>75</StartPrice>

    <Title>More Than Words - Gift Hamper</Title>

    <Description>&lt;ul&gt;

    &lt;li&gt;More Than Words - Gift Hamper&lt;br /&gt;

    

        disease.&lt;/p&gt;</Description>

  </Item>

</AddFixedPriceItemRequest>

 

addfixedpriceitemfixedpriceitemstoresfixedprice
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
devanathan.developersupport@ebay.com avatar image
0 Likes"
devanathan.developersupport@ebay.com answered

zHello shukrarai,

It is not possible to skip or replace PrimaryCategory.CategoryID with you custom StoreCategories.

eBay custom store categories categories are the aisles and shelves that let you organize and display your items to buyers in you store page. When you create a new listing, you can assign it to one of your Store categories in addition to a standard eBay category.

It is not possible to skip/replace eBay's PrimaryCategory.CategoryID with custom store categoryID.

It is not required to call GetCategories call all the time to retrieve eBay categories. Set up an admin function to run on a scheduled basis.   Make a call to GetCategories for the first time with DetailLevel ReturnAll, download the entire structure and store it in your database.  Once you have that, make a call with no DetailLevel and get just the CategoryVersion.  Compare this with the CategoryVersion in your database.  If there is a change, then make a call to GetCategories with DetailLevel ReturnAll and get the new structure.

Best Regards,
Devanathan Sampath
eBay Developer Support

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.