29. Push Notification
Este módulo permite criar notificações push relacionadas à atualização de quilometragem dos veículos.
Funcionalidades Principais
Abaixo estão os atalhos para as operações mais utilizadas neste módulo:
Criar notificação de atualização de quilometragem para um veículo
Cria mensagens na fila para enviar notificações de atualização de quilometragem aos motoristas de um veículo específico.
Endpoint: /api/push-notifications/update-km
Método: POST
Parâmetros:
- vehicleId (query, obrigatório) — Identificador do veículo.
Response body:
{ "vehicleId": 0, "licensePlate": "string", "motor": "string", "version": "string", "initialYear": 0, "endYear": 0, "modelDescription": "string", "modelYear": 0, "category": "RIDE", "city": "string", "state": "string", "totalFinishedMaintenancePrice": 0, "totalMaintenance": 0, "dateOfLastPreventive": "2024-01-01T00:00:00Z", "dateOfLastCompletePreventive": "2024-01-01T00:00:00Z", "mileage": 0, "dateMileage": "2024-01-01T00:00:00Z", "lastMileageHistoryId": 0, "lastServiceRequestFinishedPreventiveId": 0, "modelId": 0, "nextMaintenancePlanPackage": 0, "nextMaintenancePlanPackageDate": "2024-01-01T00:00:00Z", "isPreventiveUpToDate": true, "nextMaintenancePlanPackageMonthYear": "string", "nextPreventiveTimeBased": "2024-01-01", "nextPreventiveMileageBased": "2024-01-01", "activeDamageReports": true, "warning": true, "danger": true, "telemetryCapable": true, "lastMileageUpdated": 0, "clientId": 0, "clientName": "string", "serviceNeedReminder": "string", "serviceNeedTypeReminder": "string", "serviceNeedDescriptionReminder": "string", "nextServicePredictions": [ { "type": "OEM_SERVICE_PLAN_NEEDS", "nextDate": "2024-01-01", "days": 0, "scheduled": true, "nextServiceStatus": "SCHEDULED" } ], "telemetryEventCount": 0, "telemetryEventStatus": "string", "damageReportEventCount": 0, "damageReportEventStatus": "string", "scheduledServices": [ { "serviceRequestId": 0, "scheduledDate": "2024-01-01", "status": "string", "types": [ "OEM_SERVICE_PLAN_NEEDS" ], "totalResponsesFromWorkshop": 0 } ], "serviceSummary": [ { "time": "2024-01-01T00:00:00Z", "typeEnum": "string", "typeText": "string", "summary": "string", "source": "string", "serviceDate": "2024-01-01", "days": 0, "severityLevel": 0, "eventType": "string", "nextServiceStatus": "SCHEDULED", "timeToService": { "value": null, "unit": null } } ]}Criar notificações de atualização de quilometragem em lote
Cria mensagens na fila para envio de notificações de atualização de quilometragem para múltiplos veículos, utilizando filtros.
Endpoint: /api/push-notifications/update-km-batch
Método: POST
Request body:
{ "plateBrandModel": "string", "licensePlate": "string", "blockId": 0, "blocks": [ 0 ], "clientId": 0, "brandId": 0, "modelId": 0, "driverId": 0, "model": "string", "initialMileage": 0, "finalMileage": 0, "initialTotalMaintenancePrice": 0, "finalTotalMaintenancePrice": 0, "mileageDateUpToDate": true, "preventiveUpToDate": true, "fleetAdministratorId": 0, "activeDamageReports": true, "warning": true, "danger": true, "fleetalityReportType": true, "useOrComparatorForQuickFilters": true, "clientsId": [ 0 ], "franchiseIds": [ 0 ], "fleetality": true, "tradingName": "string"}Response body:
{}