Contele Fleet
  1. fines
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
          GET
        • create fine
          POST
        • update fine
          PUT
        • delete fine
          DELETE
        • get fine
          GET
      • infractions
        • list infractions
      • cost
        • cost per month
        • fines per driver
      • dashboard
        • get fines dashboard
  • 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. fines

update fine

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

Requisição

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}}
Parâmetros Bodyapplication/json
fine_id
string 
requerido
organization_id
integer 
requerido
vehicle_id
integer 
requerido
driver_id
integer 
requerido
fine_details
object 
opcional
ait_number
string 
requerido
fine_date
string <date>
requerido
fine_hour
string <time>
requerido
due_date
string <date>
opcional
driver_indication_deadline
string <date>
opcional
fine_status_id
integer 
opcional
driver_indication_status_id
integer 
opcional
infraction_id
integer 
requerido
amount_paid
number 
opcional
discounted_amount_from_driver
number 
opcional
vehicle_status_id
integer 
opcional
fine_vehicle_location
string 
opcional
system_vehicle_location
string 
opcional
system_vehicle_position
string 
opcional
fine_files
string 
opcional
activated
boolean 
opcional
vehicle_status
integer 
opcional
cost_center
integer 
opcional
observation
string 
opcional
Exemplo
{
    "fine_id": "string",
    "organization_id": 0,
    "vehicle_id": 0,
    "driver_id": 0,
    "fine_details": {
        "ait_number": "string",
        "fine_date": "2019-08-24",
        "fine_hour": "14:15:22Z",
        "due_date": "2019-08-24",
        "driver_indication_deadline": "2019-08-24",
        "fine_status_id": 0,
        "driver_indication_status_id": 0,
        "infraction_id": 0,
        "amount_paid": 0,
        "discounted_amount_from_driver": 0,
        "vehicle_status_id": 0,
        "fine_vehicle_location": "string",
        "system_vehicle_location": "string",
        "system_vehicle_position": "string",
        "fine_files": "string",
        "activated": true,
        "vehicle_status": 0,
        "cost_center": 0,
        "observation": "string"
    }
}

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 PUT 'https://cgv-prd-fines-api.contele.io/api/v1/update_fine' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "fine_id": "string",
    "organization_id": 0,
    "vehicle_id": 0,
    "driver_id": 0,
    "fine_details": {
        "ait_number": "string",
        "fine_date": "2019-08-24",
        "fine_hour": "14:15:22Z",
        "due_date": "2019-08-24",
        "driver_indication_deadline": "2019-08-24",
        "fine_status_id": 0,
        "driver_indication_status_id": 0,
        "infraction_id": 0,
        "amount_paid": 0,
        "discounted_amount_from_driver": 0,
        "vehicle_status_id": 0,
        "fine_vehicle_location": "string",
        "system_vehicle_location": "string",
        "system_vehicle_position": "string",
        "fine_files": "string",
        "activated": true,
        "vehicle_status": 0,
        "cost_center": 0,
        "observation": "string"
    }
}'

Respostas

🟢200OK
application/json
fine data
Body
fine_id
string 
opcional
organization_id
integer 
opcional
vehicle_id
integer 
opcional
ait_number
string 
opcional
fine_date
string <date>
opcional
fine_hour
string <time>
opcional
driver_id
integer 
opcional
due_date
string <date>
opcional
driver_indication_deadline
string <date>
opcional
fine_status_id
integer 
opcional
driver_indication_status_id
integer 
opcional
infraction_id
integer 
opcional
amount_paid
integer 
opcional
discounted_amount_from_driver
integer 
opcional
vehicle_status_id
integer 
opcional
fine_vehicle_location
string 
opcional
system_vehicle_location
string 
opcional
system_vehicle_position
object 
opcional
lat
number 
opcional
lng
number 
opcional
fine_files
string 
opcional
activated
integer 
opcional
created
string <date>
opcional
vehicle_status
string 
opcional
vehicle_name
string 
opcional
vehicle_plate_number
string 
opcional
infraction_code
string 
opcional
article
integer 
opcional
infraction
string 
opcional
seriousness
integer 
opcional
points_on_driver_license
integer 
opcional
default_amount
integer 
opcional
cost_center
integer 
opcional
Exemplo
{
    "fine_id": "string",
    "organization_id": 0,
    "vehicle_id": 0,
    "ait_number": "string",
    "fine_date": "2019-08-24",
    "fine_hour": "14:15:22Z",
    "driver_id": 0,
    "due_date": "2019-08-24",
    "driver_indication_deadline": "2019-08-24",
    "fine_status_id": 0,
    "driver_indication_status_id": 0,
    "infraction_id": 0,
    "amount_paid": 0,
    "discounted_amount_from_driver": 0,
    "vehicle_status_id": 0,
    "fine_vehicle_location": "string",
    "system_vehicle_location": "string",
    "system_vehicle_position": {
        "lat": 0,
        "lng": 0
    },
    "fine_files": "string",
    "activated": 0,
    "created": "2019-08-24",
    "vehicle_status": "string",
    "vehicle_name": "string",
    "vehicle_plate_number": "string",
    "infraction_code": "string",
    "article": 0,
    "infraction": "string",
    "seriousness": 0,
    "points_on_driver_license": 0,
    "default_amount": 0,
    "cost_center": 0
}
Modificado em 2024-11-19 20:43:40
Página anterior
create fine
Próxima página
delete fine
Built with