Skip to main content
Published: August 25 2011, 10:21:00 PMUpdated: November 28 2020, 1:58:09 PM

 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