The Products API allows you to manage product listings 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 products or create a new product.
| Method | Description | Usage |
|---|---|---|
| GET | Retrieve all products | Use pagination parameters to limit results. See Pagination section for details. |
| POST | Create a new product | Requires a JSON body with product details. |
{
"product": "Premium Wireless Headphones",
"category_ids": [16, 42],
"price": 199.99,
"list_price": 249.99,
"status": "A",
"description": "High-quality wireless headphones with noise cancellation and premium sound",
"short_description": "Premium Bluetooth headphones",
"meta_keywords": "headphones, wireless, bluetooth, premium, audio",
"meta_description": "Experience crystal-clear sound with our premium wireless headphones",
"quantity": 100,
"weight": 0.35,
"dimensions": {
"length": 8.5,
"width": 7.2,
"height": 3.8
},
"tax_ids": [1],
"shipping_freight": 0,
"low_stock_alert": 10
}
{
"products": [
{
"product_id": 143,
"product": "Premium Wireless Headphones",
"price": 199.99,
"list_price": 249.99,
"status": "A",
"category_ids": [16, 42],
"quantity": 98,
"average_rating": 4.7
},
{
"product_id": 144,
"product": "Ultra HD Smart TV",
"price": 899.99,
"list_price": 1099.99,
"status": "A",
"category_ids": [16],
"quantity": 25,
"average_rating": 4.5
}
],
"params": {
"page": 1,
"items_per_page": 10,
"total_items": 248
}
}
This endpoint allows you to work with a specific product identified by its ID.
| Parameter | Type | Description |
|---|---|---|
| id* | integer | The unique identifier of the product |
| Method | Description | Usage |
|---|---|---|
| GET | Retrieve a specific product | Returns detailed information about the specified product |
| PUT | Update a product | Requires a JSON body with fields to update |
| DELETE | Delete a product | Permanently removes the product from the system |
This endpoint allows you to retrieve all products assigned to a specific category.
| Parameter | Type | Description |
|---|---|---|
| id* | integer | The unique identifier of the category |
status, price_from, price_to, and q (search term) using query parameters.
This endpoint allows you to retrieve details about a specific product within a specific category.
| Parameter | Type | Description |
|---|---|---|
| category_id* | integer | The unique identifier of the category |
| product_id* | integer | The unique identifier of the product |
| Status Code | Description |
|---|---|
A |
Active - Product is visible and available for purchase |
H |
Hidden - Product exists but is not visible to customers |
D |
Disabled - Product is temporarily disabled |
O |
Out of Stock - Product is visible but cannot be purchased |
fields parameter to specify only the fields you need. This can significantly improve API response times for large product catalogs.