eBay Trading APIVersion 1453
 

CategoryType

Container for data on one listing category. Many of the CategoryType fields are returned getCategoryTree or getCategorySubtree methods of the Taxonomy API. Add/Revise/Relist calls only use the CategoryID field to specify which eBay category in which to list the item.

Type that uses CategoryType:

Calls that use CategoryType:

Fields

CategoryID ( string ) [0..1]
This string value is the unique identifier of an eBay category. In GetItem and related calls, see the CategoryName field for the text name of the category. The parent category of this eBay category can be retrieved through the Taxonomy API's getCategoryTree or getCategorySubtree methods and inspecting the parentCategoryTreeNodeHref field in the response.
Note: When listing in categoryID 173651 (Auto Performance Tuning Devices & Software), use of catalog products is required. For more information, see Tuning devices and software. In an Add call, the PrimaryCategory.CategoryID is conditionally required unless the seller successfully uses the ProductListingDetails container to find an eBay catalog product match. When the seller successfully uses an eBay catalog product to create a listing, the listing title, listing description, item specifics, listing category, and stock photo defined in the catalog product is used to create the listing.

In an Add/Revise/Relist call, the SecondaryCategory.CategoryID is conditionally required if a Secondary Category is used. Using a Secondary Category can incur a listing fee.

For ReviseItem only: Previously, removing the listing from a secondary category was only possible within 12 hours of the listing's scheduled end time when an auction listing had no active bids or a multiple-quantity, fixed-price listing had no items sold, but this restriction no longer exists. Now, the secondary category can be dropped for any active listing at any time, regardless of whether an auction listing has bids or a fixed-price listing has sales. To drop a secondary category, the seller passes in a value of 0 in the SecondaryCategory.CategoryID field.
See the Field Index to learn which calls use CategoryID.

CategoryName ( string ) [0..1]
This string value is the display name of the eBay primary category, as it would appear on the eBay site. In GetItem, this will be a fully-qualified category name (e.g., Collectibles:Decorative Collectibles:Hummel, Goebel).
See the Field Index to learn which calls use CategoryName.

Keywords ( string ) [0..1]
Not used by any call.

This field is deprecated.
See the Field Index to learn which calls use Keywords.

NumOfItems ( int ) [0..1]
Not used by any call.

This field is deprecated.
See the Field Index to learn which calls use NumOfItems.