Contele Fleet
  1. dashboard
Contele Fleet
  • Introdução a API
  • Rotas
    • Introdução a API Trackings
    • Endpoints
      • others
        • healthcheck
        • get sheet data
      • reports
        • get routes reports by group
        • get routes reports by Imei
        • get reports km
        • get driver by day
        • get driver routes in a period
        • get driver routes compiled in a period
        • get driver report
        • get trackings in a period
        • get productivity report
      • bounds
        • bound vehicle with imei
        • bound driver with imei
        • list driver bound per period
      • driver
        • get driver by a given date
      • migration
        • create bound vehicle with imei
        • create bound driver default with imei
      • last-tracking
        • get last tracking by plate number
        • get last tracking by imei
        • get tracking by vehicle id
      • planned-route
        • create planned routes by geojson
        • create planned routes by geojson
        • edit routes
        • edit planned routes
        • delete routes
        • get detailed planned route
      • new-planned-route
        • create planned route
        • get planned route to update
        • update planned route
      • vehicles
        • get vehicles list
      • trackings
        • create bound vehicle with imei
      • tracker
        • change tracker of vehicle
  • Abastecimentos
    • Endpoints
      • healthcheck
        • health-check
      • fuels
        • create fuels
        • get all info to dashboard
        • list fuels on period
        • delete fuel by id
        • update fuel by id
  • Multas
    • Endpoints
      • others
        • healthcheck
      • fines
        • list fines
        • create fine
        • update fine
        • delete fine
        • get fine
      • infractions
        • list infractions
      • cost
        • cost per month
        • fines per driver
      • dashboard
        • get fines dashboard
          GET
  • Manutenção
    • others
      • healthcheck
    • Maintenance
      • list maintenances
      • get maintenance
      • create maintenance
      • update maintenance
      • update maintenance date from calendar
      • update maintenance date from calendar
      • delete maintenance
    • Planning Plan
      • list plans
      • get plan by id
      • list vehicles in plan
      • list items in plan
      • create new plan
      • update plan
      • delete plan
    • Maintenance Dashboard
      • get all info to dashboard
  • Mapa
    • Ultimos Pontos (Last Points)
      • Get last points
      • get specific tracker from cache
      • get specific module info from db
    • lastbreakroutepoint
      • Get last break route points
      • get trackings by period
  • Checklist
    • metrics
      • get dashboard summary from forms
    • attachments
      • insert_form_template_attachment
      • list_form_template_attachment
      • insert_attachment
      • select_attachment
    • custom-filters
      • list_custom_filter
      • create_custom_filter
      • remove_custom_filter
    • form-template
      • create form template
      • create form template
      • copy form templates
      • update form template status
      • update form template status
      • update form template status
      • update form template settings
    • forms
      • create new form
      • update form status
      • update form status
      • list forms
      • list forms without token
    • checklists
      • list checklists
    • answers
      • list answers
      • create new answer
  1. dashboard

get fines dashboard

GET
https://cgv-prd-fines-api.contele.io/api/v1/get_fines_dashboard
dashboard
Última modificação:2024-11-19 20:43:40

Requisição

Parâmetros Query
start_date
string 
requerido
start date
end_date
string 
requerido
end date
driver_ids
array[number]
opcional
driver ids
vehicle_ids
array[number]
opcional
vehicle ids
fine_status_ids
array[number]
opcional
fine status ids
seriousness_ids
array[number]
opcional
seriousness ids
fine_hour_range
array[string]
opcional
fine hour range
Parâmetros Header
x-api-key
string 
requerido
Esta chave é obtida através do sistema por meio do gerenciamento da OpenAPI
Padrão:
{{api_key}}

Exemplos de Requisição

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://cgv-prd-fines-api.contele.io/api/v1/get_fines_dashboard?start_date&end_date' \
--header 'x-api-key;'

Respostas

🟢200OK
application/json
fines dashboard
Body
response
object 
opcional
top_summary
object 
opcional
seriousness_type_graphic_data
object 
opcional
infraction_type_chart_data
array [object {3}] 
opcional
fine_status_chart_data
array [object {3}] 
opcional
normal_fines_nic_fines_chart_data
object 
opcional
vulnerable_drivers_ranking_data
array [object {9}] 
opcional
infractions_type_top_summary
object 
opcional
average_amount_paid_per_infractions_graphic_data
object 
opcional
cost_per_infractions_chart_data
array [object {3}] 
opcional
cost_per_group_of_vehicles_chart_data
array [object {3}] 
opcional
infractions_type_ranking_data
array [object {3}] 
opcional
fines_status_top_summary
object 
opcional
nic_fines_normal_fines_chart_data
object 
opcional
paid_late_fines_chart_data
object 
opcional
appealing_and_pending_fines_chart_data
object 
opcional
seriousness_fines_top_summary
object 
opcional
value_paid_by_seriousness_type_graphic_data
object 
opcional
value_by_seriousness_type_chart_data
object 
opcional
metrics_by_seriousness
object 
opcional
Exemplo
{
    "response": {
        "top_summary": {
            "total_fines_quantity": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "total_fines_cost": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "total_points": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "total_drivers": {
                "value": 0,
                "prev_period_percent_diff": 0
            }
        },
        "seriousness_type_graphic_data": {
            "property1": [
                0
            ],
            "property2": [
                0
            ]
        },
        "infraction_type_chart_data": [
            {
                "infraction": "string",
                "count": 0,
                "percent_change": 0
            }
        ],
        "fine_status_chart_data": [
            {
                "fine_status_id": "string",
                "count": 0,
                "percent_change": 0
            }
        ],
        "normal_fines_nic_fines_chart_data": {
            "normal_fines": 0,
            "nic_fines": 0,
            "normal_fines_percentage": 0,
            "nic_fines_percentage": 0
        },
        "vulnerable_drivers_ranking_data": [
            {
                "driver_id": 0,
                "total_points": 0,
                "quantity_of_fines": 0,
                "total_cost": 0,
                "light": 0,
                "medium": 0,
                "serious": 0,
                "very_serious": 0,
                "undefined": 0
            }
        ],
        "infractions_type_top_summary": {
            "total_fines_quantity": 0,
            "total_fines_cost": 0,
            "total_fines_quantity_percent_change": 0,
            "total_fines_cost_percent_change": 0
        },
        "average_amount_paid_per_infractions_graphic_data": {
            "average_amounts": [
                0
            ],
            "infractions_quantity": [
                0
            ]
        },
        "cost_per_infractions_chart_data": [
            {
                "infraction": "string",
                "cost": 0,
                "percent_change": 0
            }
        ],
        "cost_per_group_of_vehicles_chart_data": [
            {
                "group": "string",
                "cost": 0,
                "percent_change": 0
            }
        ],
        "infractions_type_ranking_data": [
            {
                "infraction_id": "string",
                "cost": 0,
                "quantity": 0
            }
        ],
        "fines_status_top_summary": {
            "fines_total_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "nic_total_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "total_value_cancelled_fines": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "total_fines_quantity": 0,
            "total_fines_value": 0,
            "pending_fines_value": 0
        },
        "nic_fines_normal_fines_chart_data": {
            "nic_fines": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "normal_fines": {
                "value": 0,
                "prev_period_percent_diff": 0
            }
        },
        "paid_late_fines_chart_data": {
            "paid_fines_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "late_fines_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            }
        },
        "appealing_and_pending_fines_chart_data": {
            "appealing_paid_fines_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "appealing_not_paid_fines_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            }
        },
        "seriousness_fines_top_summary": {
            "very_serious_fines_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "serious_fines_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "medium_fines_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "light_fines_value": {
                "value": 0,
                "prev_period_percent_diff": 0
            }
        },
        "value_paid_by_seriousness_type_graphic_data": {
            "property1": [
                0
            ],
            "property2": [
                0
            ]
        },
        "value_by_seriousness_type_chart_data": {
            "very_serious_fines": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "serious_fines": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "normal_fines": {
                "value": 0,
                "prev_period_percent_diff": 0
            },
            "light_fines": {
                "value": 0,
                "prev_period_percent_diff": 0
            }
        },
        "metrics_by_seriousness": {
            "1": {
                "top_summary": {
                    "total_quantity": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_value": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_points": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_drivers": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    }
                },
                "infractions_per_month": [
                    0
                ],
                "drivers_ranking": [
                    {
                        "total_quantity": 0,
                        "total_value": 0,
                        "total_points": 0,
                        "infraction_id": "string",
                        "driver_id": 0,
                        "vehicle_id": 0
                    }
                ]
            },
            "2": {
                "top_summary": {
                    "total_quantity": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_value": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_points": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_drivers": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    }
                },
                "infractions_per_month": [
                    0
                ],
                "drivers_ranking": [
                    {
                        "total_quantity": 0,
                        "total_value": 0,
                        "total_points": 0,
                        "infraction_id": "string",
                        "driver_id": 0,
                        "vehicle_id": 0
                    }
                ]
            },
            "3": {
                "top_summary": {
                    "total_quantity": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_value": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_points": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_drivers": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    }
                },
                "infractions_per_month": [
                    0
                ],
                "drivers_ranking": [
                    {
                        "total_quantity": 0,
                        "total_value": 0,
                        "total_points": 0,
                        "infraction_id": "string",
                        "driver_id": 0,
                        "vehicle_id": 0
                    }
                ]
            },
            "4": {
                "top_summary": {
                    "total_quantity": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_value": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_points": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    },
                    "total_drivers": {
                        "value": 0,
                        "prev_period_percent_diff": 0
                    }
                },
                "infractions_per_month": [
                    0
                ],
                "drivers_ranking": [
                    {
                        "total_quantity": 0,
                        "total_value": 0,
                        "total_points": 0,
                        "infraction_id": "string",
                        "driver_id": 0,
                        "vehicle_id": 0
                    }
                ]
            }
        }
    }
}
Modificado em 2024-11-19 20:43:40
Página anterior
fines per driver
Próxima página
healthcheck
Built with