POST api/ventas/insertar
Request Information
URI Parameters
None.
Body Parameters
VentaName | Description | Type | Additional information |
---|---|---|---|
IdVenta | integer |
None. |
|
Fecha | date |
None. |
|
IdCliente | integer |
None. |
|
IdEmpleado | integer |
None. |
|
IdSucursal | integer |
None. |
|
Total | decimal number |
None. |
|
Cliente | Cliente |
None. |
|
Empleado | Empleado |
None. |
|
Sucursal | Sucursal |
None. |
Request Formats
application/json, text/json
Sample:
{ "IdVenta": 1, "Fecha": "2025-07-08T03:46:42.7817586-05:00", "IdCliente": 1, "IdEmpleado": 1, "IdSucursal": 1, "Total": 3.0, "Cliente": { "IdCliente": 1, "Nombre": "sample string 2", "Apellido": "sample string 3", "Documento": "sample string 4", "Telefono": "sample string 5", "Email": "sample string 6" }, "Empleado": { "IdEmpleado": 1, "Nombre": "sample string 2", "Apellido": "sample string 3", "Documento": "sample string 4", "Telefono": "sample string 5", "Email": "sample string 6", "Cargo": "sample string 7", "IdSucursal": 1, "Sucursal": { "IdSucursal": 1, "Nombre": "sample string 2", "Direccion": "sample string 3", "IdCiudad": 1, "Ciudad": { "IdCiudad": 1, "Nombre": "sample string 2" } } }, "Sucursal": { "IdSucursal": 1, "Nombre": "sample string 2", "Direccion": "sample string 3", "IdCiudad": 1, "Ciudad": { "IdCiudad": 1, "Nombre": "sample string 2" } } }
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.