POST api/v1/producto
Request Information
URI Parameters
None.
Body Parameters
ProductoCreateRequestDto| Name | Description | Type | Additional information |
|---|---|---|---|
| CodigoProveedor | string |
Required String length: inclusive between 0 and 50 |
|
| NombreProducto | string |
Required String length: inclusive between 0 and 500 |
|
| Codigo | string |
String length: inclusive between 0 and 50 |
|
| PrecioLista | decimal number |
Range: inclusive between 0 and 1.79769313486232E+308 |
|
| PrecioCompra | decimal number |
Range: inclusive between 0 and 1.79769313486232E+308 |
|
| PrecioVenta | decimal number |
Range: inclusive between 0 and 1.79769313486232E+308 |
|
| Stock | integer |
None. |
|
| Pedidos | integer |
None. |
|
| Vendidas | integer |
None. |
|
| Separadas | integer |
None. |
|
| Inventario | integer |
None. |
|
| StockMinimo | integer |
None. |
|
| StockMaximo | integer |
None. |
|
| CodMarca | integer |
None. |
|
| CodModelo | integer |
None. |
|
| CodBarras | string |
String length: inclusive between 0 and 100 |
|
| Categoria | string |
String length: inclusive between 0 and 200 |
Request Formats
application/json, text/json
Sample:
{
"codigoProveedor": "sample string 1",
"nombreProducto": "sample string 2",
"codigo": "sample string 3",
"precioLista": 1.0,
"precioCompra": 1.0,
"precioVenta": 1.0,
"stock": 1,
"pedidos": 1,
"vendidas": 1,
"separadas": 1,
"inventario": 1,
"stockMinimo": 1,
"stockMaximo": 1,
"codMarca": 1,
"codModelo": 1,
"codBarras": "sample string 4",
"categoria": "sample string 5"
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.