# Products

## Add Product

<mark style="color:green;">`POST`</mark> `https://ventiapi.azurewebsites.net/api/product/addproduct`

This method is used to create a base product in Ventiapp. If the required fields are not available, the service will throw an error.

#### Headers

| Name           | Type   | Description    |
| -------------- | ------ | -------------- |
| Authentication | string | Bearer + token |

#### Request Body

| Name             | Type    | Description                                                                                                 |
| ---------------- | ------- | ----------------------------------------------------------------------------------------------------------- |
| SKU              | string  | SKU Identificador del producto, este ID es requerido. Si no lo tiene, se recomienda que sea el ID de su ERP |
| title            | string  | Título del producto                                                                                         |
| price            | number  | Precio base del producto, este se utiliza cuando se genera una nueva publicación                            |
| weight           | number  | Peso del producto en gramos                                                                                 |
| height           | number  | Alto del producto en centímetros                                                                            |
| width            | number  | Ancho del producto en centímetros                                                                           |
| depth            | number  | Profundidad del producto en centímetros                                                                     |
| brand            | string  | Marca del producto                                                                                          |
| EAN              | string  | Identificador EAN13 del producto                                                                            |
| UPC              | string  | Identificador UPC del producto                                                                              |
| longDescription  | string  | Descripción larga del producto (default)                                                                    |
| shortDescription | string  | Descripción corta del producto                                                                              |
| baseStock        | integer | Cantidad se inventario base, este se utiliza cuando se genera una nueva publicación                         |
| images           | array   | Array de strings con url de las imágenes                                                                    |

{% tabs %}
{% tab title="200 Producto creado correctamente" %}

```javascript
{
    "productId": 3182093,
    "sku": "AA123",
    "price": 99.99,
    "title": "Olla a presion Gris",
    "ean": null,
    "upc": "41123123",
    "longDescription": "Descripcion larga de prueba",
    "shortDescription": "Descripción corta de prueba",
    "baseStock": 66,
    "images": ["url imagen 1","url imagen 2"],
    "brand": "Greycon",
    "weight": 2400,
    "height": 30,
    "width": 20,
    "depth": 20
}
```

{% endtab %}
{% endtabs %}
