Skip to main content
GET
/
api
/
DashBoard
/
Resumen
Get Dashboard Summary
curl --request GET \
  --url https://api.example.com/api/DashBoard/Resumen
{
  "status": true,
  "value": {
    "totalVentas": 123,
    "totalIngresos": "<string>",
    "totalProductos": 123,
    "ventasUltimaSemana": [
      {
        "fecha": "<string>",
        "total": 123
      }
    ]
  },
  "msg": "<string>"
}
Retrieves summary statistics for the dashboard including total sales, revenue, products, and sales trends for the last week.

Endpoint

GET /api/DashBoard/Resumen

Response

Returns a dashboard summary containing key metrics and weekly sales data.
status
boolean
required
Indicates if the request was successful
value
object
Dashboard summary data
msg
string
Error message if status is false

Example Request

curl -X GET "https://api.example.com/api/DashBoard/Resumen" \
  -H "Content-Type: application/json"

Example Response

{
  "status": true,
  "value": {
    "totalVentas": 156,
    "totalIngresos": "$45,230.50",
    "totalProductos": 89,
    "ventasUltimaSemana": [
      {
        "fecha": "2026-03-01",
        "total": 12
      },
      {
        "fecha": "2026-03-02",
        "total": 18
      },
      {
        "fecha": "2026-03-03",
        "total": 15
      },
      {
        "fecha": "2026-03-04",
        "total": 22
      },
      {
        "fecha": "2026-03-05",
        "total": 20
      }
    ]
  },
  "msg": null
}

Error Response

{
  "status": false,
  "value": null,
  "msg": "Error retrieving dashboard summary"
}

Build docs developers (and LLMs) love