Saltar al contenido principal

ReportIndexList

Lista de reportes con metadatos de paginación

reports object[]
  • Array [
  • idstring

    Identificador único del reporte

    Example: rep_1B2M2Y8AsgTpgAmY7PhCfg
    starts_atstring<date-time>

    Fecha y hora de inicio del período del reporte

    Example: 2025-06-01T00:00:00Z
    ends_atstring<date-time>

    Fecha y hora de fin del período del reporte

    Example: 2025-06-30T23:59:59Z
    contentobjectnullable

    Contenido del reporte en formato específico según el tipo de reporte

    created_atstring<date-time>

    Fecha y hora de creación del reporte

    Example: 2025-07-01T10:30:00Z
    generated_by objectnullable

    Usuario de la empresa que generó el reporte

    idstring

    Identificador único del usuario

    Example: cu_1B2M2Y8AsgTpgAmY7PhCfg
    emailstring

    Email del usuario

    Example: usuario@empresa.com
  • ]
  • metadata object
    pageinteger

    Página actual

    Example: 1
    per_pageinteger

    Entradas por página

    Example: 20
    totalinteger

    Total de entradas

    Example: 45
    order_bystring

    Orden de los resultados (ej. "created_at DESC")

    Example: created_at DESC
    filtersobject

    Filtros aplicados a la consulta

    Example: {"status":{"=":"pending"}}
    ReportIndexList
    {
    "reports": [
    {
    "id": "rep_1B2M2Y8AsgTpgAmY7PhCfg",
    "starts_at": "2025-06-01T00:00:00Z",
    "ends_at": "2025-06-30T23:59:59Z",
    "content": {},
    "created_at": "2025-07-01T10:30:00Z",
    "generated_by": {
    "id": "cu_1B2M2Y8AsgTpgAmY7PhCfg",
    "email": "usuario@empresa.com"
    }
    }
    ],
    "metadata": {
    "page": 1,
    "per_page": 20,
    "total": 45,
    "order_by": "created_at DESC",
    "filters": {
    "status": {
    "=": "pending"
    }
    }
    }
    }