For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

How to identify the required item specifics

  • Answer ID 1930
  • Published 08/25/2011 10:21 PM
  • Updated 10/20/2013 06:41 AM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=1930

 Is it possible to retrieve a list of required item specifics by category ?



Detailed Description

    You can check NameRecommendation.ValidationRules.MinValues returned in GetCategorySpecifics response to identify required item specifics for a catetory of interest.

  If  MinValues is 1 or more, it means this Item Specfic is required in listing requests.  MinValues is not returned if zero ( 0 ).

 

  Here is the GetCategorySpecifics response for Men's Athletic shoes category (CategoryID: 15709), which shows that US Shoe Size (Men's), Style and Brand are the required item specifics

 <?xml version="1.0" encoding="utf-8"?>
<GetCategorySpecificsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>737</Version>
  <CategoryID>15709</CategoryID>
  <RequesterCredentials>
    <eBayAuthToken>xxxx</eBayAuthToken>
  </RequesterCredentials>
</GetCategorySpecificsRequest>

<?xml version="1.0" encoding="utf-8"?>
<GetCategorySpecificsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2011-08-26T05:54:43.212Z</Timestamp>
  <Ack>Success</Ack>
  <Version>735</Version>
  <Build>E735_CORE_BUNDLED_13668251_R1</Build>   

<Recommendations>
    <CategoryID>15709</CategoryID>
    <NameRecommendation>
      <Name>US Shoe Size (Men's)</Name>
      <ValidationRules>
        <ValueType>Text</ValueType>
        <MinValues>1</MinValues>
        <MaxValues>1</MaxValues>
        <SelectionMode>FreeText</SelectionMode>
      </ValidationRules>

      ....

     <NameRecommendation>
      <Name>Width</Name>
      <ValidationRules>
        <ValueType>Text</ValueType>
        <MaxValues>1</MaxValues>
        <SelectionMode>FreeText</SelectionMode>
      </ValidationRules>

     ....

     <NameRecommendation>
      <Name>Brand</Name>
      <ValidationRules>
        <ValueType>Text</ValueType>
        <MinValues>1</MinValues>
        <MaxValues>1</MaxValues>
        <SelectionMode>FreeText</SelectionMode>
        <VariationSpecifics>Disabled</VariationSpecifics>
      </ValidationRules>

    ....

      <NameRecommendation>
      <Name>Style</Name>
      <ValidationRules>
        <ValueType>Text</ValueType>
        <MinValues>1</MinValues>
        <MaxValues>1</MaxValues>
        <SelectionMode>FreeText</SelectionMode>
        <VariationSpecifics>Disabled</VariationSpecifics>
      </ValidationRules>

    ....

     <NameRecommendation>
      <Name>Color</Name>
      <ValidationRules>
        <ValueType>Text</ValueType>
        <MaxValues>1</MaxValues>
        <SelectionMode>SelectionOnly</SelectionMode>
      </ValidationRules>
     
   ....

   <NameRecommendation>
      <Name>Shade</Name>
      <ValidationRules>
        <ValueType>Text</ValueType>
        <MaxValues>1</MaxValues>
        <SelectionMode>FreeText</SelectionMode>
        <Relationship>
          <ParentName>Color</ParentName>
        </Relationship>
      </ValidationRules>

...

  </Recommendations>
</GetCategorySpecificsResponse>

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter