POST api/Pedido/ganancias
No documentation available.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| request | No documentation available. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"FechaInicio": "2026-07-01T09:01:37.9604753-05:00",
"FechaFin": "2026-07-01T09:01:37.9604753-05:00",
"IdEmpresa": 3
}
application/xml, text/xml
Sample:
<ReporteGananciaRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mantenimiento.Negocio.Poco"> <FechaFin>2026-07-01T09:01:37.9604753-05:00</FechaFin> <FechaInicio>2026-07-01T09:01:37.9604753-05:00</FechaInicio> <IdEmpresa>3</IdEmpresa> </ReporteGananciaRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
No documentation available.
Response body formats
application/json, text/json
Sample:
{
"Resumen": {
"$id": "2",
"VentasTotales": 1.0,
"CostosTotales": 2.0,
"UtilidadTotal": 3.0,
"MargenUtilidad": 4.0,
"TicketPromedio": 5.0
},
"VentasVsCostos": {
"$id": "3",
"$values": [
{
"$id": "4",
"Fecha": "2026-07-01T09:01:37.9624887-05:00",
"Venta": 2.0,
"Costo": 3.0,
"Utilidad": 4.0
},
{
"$ref": "4"
},
{
"$ref": "4"
}
]
},
"TopProductos": {
"$id": "5",
"$values": [
{
"$id": "6",
"IdProducto": 1,
"Nombre": "sample string 2",
"Utilidad": 3.0
},
{
"$ref": "6"
},
{
"$ref": "6"
}
]
},
"Categorias": {
"$id": "7",
"$values": [
{
"$id": "8",
"IdCategoria": 1,
"Categoria": "sample string 2",
"Utilidad": 3.0
},
{
"$ref": "8"
},
{
"$ref": "8"
}
]
},
"Detalle": {
"$id": "9",
"$values": [
{
"$id": "10",
"IdFichaPedido": 1,
"Codigo": "sample string 2",
"FechaRegistro": "2026-07-01T09:01:37.9645015-05:00",
"VentaTotal": 4.0,
"CostoTotal": 5.0,
"Utilidad": 6.0,
"Margen": 7.0
},
{
"$ref": "10"
},
{
"$ref": "10"
}
]
}
}
application/xml, text/xml
Sample:
<ReporteGananciaResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mantenimiento.Negocio.Poco">
<Categorias>
<ReporteCategoriaDTO>
<Categoria>sample string 2</Categoria>
<IdCategoria>1</IdCategoria>
<Utilidad>3</Utilidad>
</ReporteCategoriaDTO>
<ReporteCategoriaDTO>
<Categoria>sample string 2</Categoria>
<IdCategoria>1</IdCategoria>
<Utilidad>3</Utilidad>
</ReporteCategoriaDTO>
<ReporteCategoriaDTO>
<Categoria>sample string 2</Categoria>
<IdCategoria>1</IdCategoria>
<Utilidad>3</Utilidad>
</ReporteCategoriaDTO>
</Categorias>
<Detalle>
<ReporteGananciaDetalleDTO>
<Codigo>sample string 2</Codigo>
<CostoTotal>5</CostoTotal>
<FechaRegistro>2026-07-01T09:01:37.9645015-05:00</FechaRegistro>
<IdFichaPedido>1</IdFichaPedido>
<Margen>7</Margen>
<Utilidad>6</Utilidad>
<VentaTotal>4</VentaTotal>
</ReporteGananciaDetalleDTO>
<ReporteGananciaDetalleDTO>
<Codigo>sample string 2</Codigo>
<CostoTotal>5</CostoTotal>
<FechaRegistro>2026-07-01T09:01:37.9645015-05:00</FechaRegistro>
<IdFichaPedido>1</IdFichaPedido>
<Margen>7</Margen>
<Utilidad>6</Utilidad>
<VentaTotal>4</VentaTotal>
</ReporteGananciaDetalleDTO>
<ReporteGananciaDetalleDTO>
<Codigo>sample string 2</Codigo>
<CostoTotal>5</CostoTotal>
<FechaRegistro>2026-07-01T09:01:37.9645015-05:00</FechaRegistro>
<IdFichaPedido>1</IdFichaPedido>
<Margen>7</Margen>
<Utilidad>6</Utilidad>
<VentaTotal>4</VentaTotal>
</ReporteGananciaDetalleDTO>
</Detalle>
<Resumen>
<CostosTotales>2</CostosTotales>
<MargenUtilidad>4</MargenUtilidad>
<TicketPromedio>5</TicketPromedio>
<UtilidadTotal>3</UtilidadTotal>
<VentasTotales>1</VentasTotales>
</Resumen>
<TopProductos>
<ReporteProductoRentableDTO>
<IdProducto>1</IdProducto>
<Nombre>sample string 2</Nombre>
<Utilidad>3</Utilidad>
</ReporteProductoRentableDTO>
<ReporteProductoRentableDTO>
<IdProducto>1</IdProducto>
<Nombre>sample string 2</Nombre>
<Utilidad>3</Utilidad>
</ReporteProductoRentableDTO>
<ReporteProductoRentableDTO>
<IdProducto>1</IdProducto>
<Nombre>sample string 2</Nombre>
<Utilidad>3</Utilidad>
</ReporteProductoRentableDTO>
</TopProductos>
<VentasVsCostos>
<ReporteGananciaDiariaDTO>
<Costo>3</Costo>
<Fecha>2026-07-01T09:01:37.9624887-05:00</Fecha>
<Utilidad>4</Utilidad>
<Venta>2</Venta>
</ReporteGananciaDiariaDTO>
<ReporteGananciaDiariaDTO>
<Costo>3</Costo>
<Fecha>2026-07-01T09:01:37.9624887-05:00</Fecha>
<Utilidad>4</Utilidad>
<Venta>2</Venta>
</ReporteGananciaDiariaDTO>
<ReporteGananciaDiariaDTO>
<Costo>3</Costo>
<Fecha>2026-07-01T09:01:37.9624887-05:00</Fecha>
<Utilidad>4</Utilidad>
<Venta>2</Venta>
</ReporteGananciaDiariaDTO>
</VentasVsCostos>
</ReporteGananciaResponse>