question

panku5545 avatar image
0 Likes"
panku5545 asked

we are not able to add item in eBay site using production API

we are not able to add item to the eBay site using production API. we are getting the following error

The item specific Type is missing. Add Type to this listing, enter a valid value, and then try again.21919303
<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>XXXXXXXXXXX</eBayAuthToken>
  </RequesterCredentials>
  <ErrorLanguage>en_US</ErrorLanguage>
  <WarningLevel>High</WarningLevel>
  <Item>
    <Title>test-800</Title>
    <Description>test 800</Description>
    <PrimaryCategory>
      <CategoryID>176971</CategoryID>
    </PrimaryCategory>
    <StartPrice>200</StartPrice>
    <CategoryMappingAllowed>true</CategoryMappingAllowed>
    <ConditionID>1000</ConditionID>
    <Country>US</Country>
    <Currency>USD</Currency>
    <DispatchTimeMax>3</DispatchTimeMax>
    <ListingDuration>GTC</ListingDuration>
    <ListingType>FixedPriceItem</ListingType>
    <PictureDetails>
      <GalleryType>Gallery</GalleryType>
      <PictureURL>https://eznetcrm.net/img/eZnetLogo.png</PictureURL>
    </PictureDetails>
    <PostalCode>32746</PostalCode>
    <ProductListingDetails>
      <UPC></UPC>
      <BrandMPN>
        <Brand>HP</Brand>
        <MPN>845418-B21</MPN>
      </BrandMPN>
      <IncludeStockPhotoURL>true</IncludeStockPhotoURL>
      <IncludePrefilledItemInformation>true</IncludePrefilledItemInformation>
      <UseFirstProduct>true</UseFirstProduct>
      <UseStockPhotoURLAsGallery>true</UseStockPhotoURLAsGallery>
      <ReturnSearchResultOnDuplicates>true</ReturnSearchResultOnDuplicates>
    </ProductListingDetails>
    <Quantity>5</Quantity>
    <ItemSpecifics>
      <NameValueList>
<Name>Brand</Name>
<Value>HP</Value>
  </NameValueList>
  <NameValueList>
<Name>MPN</Name>
<Value>845418-B21</Value>
  </NameValueList>
    </ItemSpecifics>
    <ReturnPolicy>
      <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
      <RefundOption>MoneyBack</RefundOption>
      <ReturnsWithinOption>Days_30</ReturnsWithinOption>
      <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
    </ReturnPolicy>
    <ShippingDetails>
      <ShippingType>Flat</ShippingType>
      <ShippingServiceOptions>
        <ShippingServicePriority>1</ShippingServicePriority>
        <ShippingService>USPSMedia</ShippingService>
       <ShippingServiceAdditionalCost>0</ShippingServiceAdditionalCost>
        <ShippingServiceCost>0</ShippingServiceCost>
      </ShippingServiceOptions>
    </ShippingDetails>
    <Site>US</Site>
  </Item>
</AddItemRequest>

we are using the above code to add an item but not able to add it. what we are doing wrong please help us.


additemcalladd itemebaylistingitem-specifics
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
sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered

Hi @panku5545,

It seems like you are using incorrect item specification in the request. To get the latest ItemSpecifics/Aspects for a category, please use the GetItemAspectsForCategory call of taxonomy API.

Ref: https://developer.ebay.com/api-docs/commerce/taxonomy/resources/category_tree/methods/getItemAspectsForCategory


Sample Request URL:https://api.ebay.com/commerce/taxonomy/v1/category_tree/0/get_item_aspects_for_category?category_id=176971

For getting the all of the latest and supported category hierarchy for a eBay marketplace, please follow the steps mentioned below


1. Firstly, you need to call GetDefaultCategoryTreeId to retrieve a reference to the default category tree associated with the specified eBay marketplace ID.
Ref:https://developer.ebay.com/api-docs/commerce/taxonomy/resources/category_tree/methods/getDefaultCategoryTreeId

2. After getting the category_tree_id make a GetCategoryTree call to retrieve the complete category tree that is identified by the category_tree_id parameter.
Ref: https://developer.ebay.com/api-docs/commerce/taxonomy/resources/category_tree/methods/getCategoryTree

3. Make GetItemAspectsForCategory call for the category to get the latest VariationSpecifics/Aspects.To learn more about the category tree structure, please take an overview of the Taxonomy API by going through the link given below:
Ref: https://developer.ebay.com/api-docs/commerce/taxonomy/static/overview.html


Best Regards ,
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.