Reference architecture

Pattern When to use Notes
Pull (API polling) Small scale, nightly sync Simpler; use updated_since cursors
Push (webhooks) Near‑real‑time updates Validate signature; enqueue work; ack fast
Hybrid Most production setups Events for realtime; periodic backfill for safety

Core entities & IDs

Data map (download below)

Start with vehicles, drivers, trips, fuel, and maintenance. Specify type, format, cardinality, and system of record.

Webhook events

Event Payload Typical action
vehicle.location.updated vehicle_id, lat, lon, speed, ts Update live board, delay ETA
trip.status.changed trip_id, status, site_id, ts Advance ERP order, notify customer
fuel.transaction.created vehicle_id, liters, amount, ts Reconcile against fuel cards
service.work_order.due vehicle_id, task, due_date, meter Create ERP work order
alert.geofence.event vehicle_id, geofence_id, enter/exit, ts Mark arrival/departure, dwell

Auth & security

Retries & backoff

Implementation phases

Sample webhook signature (HMAC)

POST /webhooks/telematics HTTP/1.1 X-Signature: t=1698570000,s=sha256=ab12… Idempotency-Key: 2c1f3b76-… Content-Type: application/json {“event”:”trip.status.changed”,”id”:”evt_123″,”data”:{“trip_id”:”T-9001″,”status”:”arrived”,”site_id”:”CUST-77″,”ts”:”2025-10-29T14:01:00Z”}}

💬 FAQs

Events for operational updates; ETL for analytics/backfill. Hybrid is typical.
Mapping table with both external IDs; unique indexes; soft‑delete.
Batch writes; queues; circuit breakers; per‑tenant throttles.
Record/replay staging events; inject clock skew; test retry/idempotency.