Skip to main content
GET
/
api
/
management-control
/
maintenance
/
costs
curl -X GET "https://api.example.com/api/management-control/maintenance/costs?TypeFilter=3&Page=1&PagSize=50" \
  -H "Authorization: Bearer <your-token>"
{
  "currentPage": 1,
  "gridName": "Costos de Mantenimiento",
  "gridId": 234567,
  "totalRecordsReturned": 50,
  "totalPages": 8,
  "totalRecords": 392,
  "dataRecord": {
    "fields": [
      {
        "id": 1,
        "label": "Equipo",
        "name": "equipo",
        "order": 1,
        "type": "string",
        "visible": true,
        "width": 150
      },
      {
        "id": 2,
        "label": "Tipo de Mantenimiento",
        "name": "tipo_mantenimiento",
        "order": 2,
        "type": "string",
        "visible": true,
        "width": 180
      },
      {
        "id": 3,
        "label": "Costo Total",
        "name": "costo_total",
        "order": 3,
        "type": "decimal",
        "visible": true,
        "width": 120
      },
      {
        "id": 4,
        "label": "Fecha",
        "name": "fecha",
        "order": 4,
        "type": "datetime",
        "visible": true,
        "width": 120
      }
    ],
    "rows": [
      {
        "equipo": "EQ-1001",
        "tipo_mantenimiento": "Preventivo",
        "costo_total": 5400.00,
        "fecha": "2026-03-01T08:30:00Z"
      },
      {
        "equipo": "EQ-1002",
        "tipo_mantenimiento": "Correctivo",
        "costo_total": 12500.50,
        "fecha": "2026-03-02T14:15:00Z"
      }
    ]
  }
}
Representa la grilla Información de Costos Mantenimiento (Resumen).

Authentication

This endpoint requires authentication. Include a valid JWT token in the Authorization header:
Authorization: Bearer <your-token>

Query Parameters

TypeFilter
integer
required
Tipo de filtro:
  • 1 - PreviousDay (día anterior)
  • 2 - PreviousMonth (mes anterior)
  • 3 - CurrentMonth (mes actual)
  • 4 - LastYear (año anterior)
  • 5 - FullMonthByYear (mes y año en concreto)
  • 6 - Custom
  • 7 - AllRecords
Month
integer
Mes en concreto a buscar. Rango de valores válidos: 1-12.Requerido cuando TypeFilter es 5 (FullMonthByYear).
Year
integer
Año en concreto. Valores válidos a partir del año anterior.Requerido cuando TypeFilter es 5 (FullMonthByYear).
Page
integer
default:"1"
Número de página. Se inicia con 1.
PagSize
integer
Número de registros a obtener por página.

Response

currentPage
integer
Página actual de los resultados.
gridName
string
Nombre de la grilla.
gridId
long
Identificador único de la grilla.
totalRecordsReturned
integer
Número de registros devueltos en la página actual.
totalPages
integer
Número total de páginas disponibles.
totalRecords
integer
Número total de registros en la grilla.
dataRecord
object
Contiene los datos de la grilla.
curl -X GET "https://api.example.com/api/management-control/maintenance/costs?TypeFilter=3&Page=1&PagSize=50" \
  -H "Authorization: Bearer <your-token>"
{
  "currentPage": 1,
  "gridName": "Costos de Mantenimiento",
  "gridId": 234567,
  "totalRecordsReturned": 50,
  "totalPages": 8,
  "totalRecords": 392,
  "dataRecord": {
    "fields": [
      {
        "id": 1,
        "label": "Equipo",
        "name": "equipo",
        "order": 1,
        "type": "string",
        "visible": true,
        "width": 150
      },
      {
        "id": 2,
        "label": "Tipo de Mantenimiento",
        "name": "tipo_mantenimiento",
        "order": 2,
        "type": "string",
        "visible": true,
        "width": 180
      },
      {
        "id": 3,
        "label": "Costo Total",
        "name": "costo_total",
        "order": 3,
        "type": "decimal",
        "visible": true,
        "width": 120
      },
      {
        "id": 4,
        "label": "Fecha",
        "name": "fecha",
        "order": 4,
        "type": "datetime",
        "visible": true,
        "width": 120
      }
    ],
    "rows": [
      {
        "equipo": "EQ-1001",
        "tipo_mantenimiento": "Preventivo",
        "costo_total": 5400.00,
        "fecha": "2026-03-01T08:30:00Z"
      },
      {
        "equipo": "EQ-1002",
        "tipo_mantenimiento": "Correctivo",
        "costo_total": 12500.50,
        "fecha": "2026-03-02T14:15:00Z"
      }
    ]
  }
}

Caching

This endpoint implements response caching with a duration of 900 seconds (15 minutes). Subsequent identical requests within this period will return cached data.

Build docs developers (and LLMs) love