Product features in the Venddor API allow you to define specific characteristics of your products, such as size, color, material, or any other attribute. This document provides a comprehensive list of all supported fields for product features.
The following table lists all available fields for product feature objects:
| Field Name | Description | Default Value | Supported Values |
|---|---|---|---|
| company_id* | Store or vendor to which the feature belongs | Default company ID | Valid company ID |
| description* | Feature name | '' | string |
| feature_type* | Feature type | — |
C—Check box: SingleM—Check box: MultipleS—Select box: TextN—Select box: NumberE—Select box: Brand/ManufacturerT—Others: TextO—Others: NumberD—Others: DateG—Group of features
|
| purpose | Determines what the feature will be used for. Usually inferred from feature_type | Depends on feature_type |
find_products—help customers find products via filtersgroup_catalog_item—variations as separate productsgroup_variation_catalog_item—variations as one productorganize_catalog—brand, author, etc.describe_product—additional non-filterable information
|
| feature_style | Determines the appearance of this feature on the storefront. Usually inferred from feature_type | Depends on feature_type |
textcheckboxmultiple_checkboxdropdown (for variations)dropdown_images (for variations)dropdown_labels (for variations)brand (for brands)
|
| filter_style | Determines the appearance of a filter by this feature, and what values this feature accepts. Usually inferred from feature_type | Depends on feature_type |
checkboxdatecolorslider (numbers)
|
| categories_path | Categories to which the feature can be applied | '' | Comma-separated string of category IDs |
| comparison | Determines whether to show this feature on a product comparison page or not | N |
Y—yesN—no
|
| display_on_catalog | Determines whether to show this feature in the product catalog or not | N |
Y—yesN—no
|
| display_on_product | Determines whether to show this feature on a detailed product page or not | N |
Y—yesN—no
|
| display_on_header | Determines whether to show this feature under the product header or not | N |
Y—yesN—no
|
| feature_id | The unique ID of the feature | Set automatically | integer |
| full_description | Feature description | '' | string |
| group_position | Position in group | 0 | integer |
| parent_id | ID of the parent group (0 if there is no parent group) | 0 | integer |
| position | The position of this feature in the feature list | 0 | integer |
| prefix | The prefix of the feature name | '' | string |
| status | Status | A |
A—activeD—disabledH—hidden
|
| suffix | The suffix of the feature name | '' | string |
| value | Feature value | — | Value depending on the feature type |
| value_int | Feature integer value | — | integer |
| variant_id (only for types with variants) | ID of the selected variant | — | integer |
| variants (only for types with variants) | Available feature value variants | — | object with variant ID as key and variant data as value |
For features with variants, each variant contains the following fields:
| Field Name | Description | Default Value | Supported Values |
|---|---|---|---|
| description | Variant description | '' | string |
| feature_id | ID of the feature the variant is assigned to | — | integer |
| feature_type | Type of the feature the variant is assigned to | — | Valid feature type (see above) |
| image_pair | For Brand/Manufacturer only: Images | NULL | Valid image pair |
| lang_code | Language code | Default language code | Valid language code |
| meta_description | For Brand/Manufacturer only: Meta description | '' | string |
| color | For "filter_style": "color" only: the color hex code | '' | string |
| meta_keywords | For Brand/Manufacturer only: Meta keywords | '' | string |
| page_title | For Brand/Manufacturer only: Page title | '' | string |
| position | Variant position | 0 | integer |
| selected | ID of the selected variant | Set automatically | integer |
| url | For Brand/Manufacturer only: URL | '' | string |
| variant | Variant name | — | string |
| variant_id | Variant ID | Set automatically | integer |
{
"company_id": 1,
"description": "Size",
"feature_type": "S",
"purpose": "find_products",
"feature_style": "dropdown",
"filter_style": "checkbox",
"categories_path": "10,15,23",
"status": "A",
"display_on_product": "Y",
"display_on_catalog": "Y",
"comparison": "Y",
"position": 10,
"variants": {
"1": {
"variant": "Small",
"position": 10
},
"2": {
"variant": "Medium",
"position": 20
},
"3": {
"variant": "Large",
"position": 30
}
}
}
{
"company_id": 1,
"description": "Color",
"feature_type": "S",
"purpose": "find_products",
"feature_style": "dropdown",
"filter_style": "color",
"categories_path": "10,15,23",
"status": "A",
"display_on_product": "Y",
"display_on_catalog": "Y",
"comparison": "Y",
"position": 20,
"variants": {
"1": {
"variant": "Red",
"color": "#FF0000",
"position": 10
},
"2": {
"variant": "Blue",
"color": "#0000FF",
"position": 20
},
"3": {
"variant": "Green",
"color": "#00FF00",
"position": 30
}
}
}