The Product Features API allows you to manage product characteristics and specifications in the Venddor platform. This documentation outlines the available endpoints and their supported HTTP methods.
https://www.venddor.com.br/api
This endpoint allows you to retrieve all product features or create a new feature.
Method | Description | Usage |
---|---|---|
GET | Retrieve all product features | Returns a list of all available product features |
POST | Create a new product feature | Requires a JSON body with feature details |
{ "feature_name": "Storage Capacity", "description": "Available storage space on the device", "feature_type": "S", "categories_ids": [16, 18], "display_on_product": true, "display_on_catalog": true, "display_on_header": false, "position": 10, "prefix": "", "suffix": "GB", "variants": [ "64", "128", "256", "512", "1024" ], "status": "A" }
{ "features": [ { "feature_id": 21, "feature_name": "Storage Capacity", "description": "Available storage space on the device", "feature_type": "S", "position": 10, "suffix": "GB", "status": "A" }, { "feature_id": 22, "feature_name": "Color", "description": "Product color options", "feature_type": "M", "position": 20, "status": "A" }, { "feature_id": 23, "feature_name": "Waterproof", "description": "Water resistance capability", "feature_type": "C", "position": 30, "status": "A" } ], "params": { "page": 1, "items_per_page": 10, "total_items": 3 } }
This endpoint allows you to work with a specific product feature identified by its ID.
Parameter | Type | Description |
---|---|---|
id* | integer | The unique identifier of the product feature |
Method | Description | Usage |
---|---|---|
GET | Retrieve a specific product feature | Returns detailed information about the specified feature |
PUT | Update a product feature | Requires a JSON body with fields to update |
DELETE | Delete a product feature | Permanently removes the feature from the system |
{ "feature_id": 21, "feature_name": "Storage Capacity", "description": "Available storage space on the device", "feature_type": "S", "categories_ids": [16, 18], "display_on_product": true, "display_on_catalog": true, "display_on_header": false, "position": 10, "prefix": "", "suffix": "GB", "variants": [ "64", "128", "256", "512", "1024" ], "status": "A", "timestamp": "2025-04-15T10:15:30Z" }
{ "variants": [ "64", "128", "256", "512", "1024", "2048" ], "display_on_header": true, "position": 5 }
This endpoint allows you to retrieve all features associated with a specific product.
Parameter | Type | Description |
---|---|---|
id* | integer | The unique identifier of the product |
{ "product_id": 143, "product": "Premium Wireless Headphones", "features": [ { "feature_id": 22, "feature_name": "Color", "value": "Black", "variant_id": 0 }, { "feature_id": 24, "feature_name": "Battery Life", "value": "24", "variant_id": 0, "suffix": "hours" }, { "feature_id": 23, "feature_name": "Waterproof", "value": "Y", "variant_id": 0 } ] }
type
query parameter to retrieve features of a specific type. For example, /products/143/features?type=S
will return only selectable features.
Type Code | Description |
---|---|
S |
Selectable - Feature with predefined variants that the user can select from (e.g., storage capacity) |
M |
Multiple Select - Feature that allows selecting multiple values (e.g., compatible devices) |
C |
Checkbox - Feature with a yes/no (true/false) value (e.g., waterproof, wireless) |
T |
Text - Feature with free-form text value (e.g., description, model number) |
N |
Number - Feature with a numeric value that may have a prefix or suffix (e.g., weight, dimensions) |
D |
Date - Feature with a date value (e.g., release date, warranty expiration) |
Product features have multiple display options that control where and how they appear on your store:
Display Option | Description |
---|---|
display_on_product |
Feature is displayed on the product details page |
display_on_catalog |
Feature is displayed in product listings and catalog views |
display_on_header |
Feature is highlighted in the product header section |
filter_in_search |
Feature can be used as a filter in product search results |
S
, you must include the variants
array with all possible values. These values will be available for selection when assigning the feature to products.