Driver Performance
2 API calls in this section.
Get Driver Performance
/delivery/driver-performance?driver_id=&period_start=&period_end=&period_type=daily&tenant_id=&language=enRetrieves performance metrics for drivers. Returns historical metrics from the database if available, otherwise calculates metrics on demand from delivery and exception data. Requires view:tenant or manage:operations:tenant permission.
1curl --request GET "$ONDI_BASE_URL/delivery/driver-performance?driver_id=&period_start=&period_end=&period_type=daily&tenant_id=&language=en" \2 --header "Authorization: Bearer {{access_token}}"Query parameters
driver_idOptionalOptional ID of a specific driver to get performance for. If not provided, returns metrics for all drivers.
period_startOptionalStart date for the period (ISO format). Defaults to 30 days ago for daily, 90 days for weekly, 12 months for monthly.
period_endOptionalEnd date for the period (ISO format). Defaults to current date.
period_typeOptionaldaily
Type of period for metrics aggregation: daily, weekly, or monthly.
tenant_idOptionalTenant ID (optional if in auth token)
languageOptionalen
Preferred language for response messages
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
Get Driver Performance Detail
/delivery/driver-performance/detail?driver_id=uuid&tenant_id=&language=enGet detailed performance for a single driver including current month, previous month comparison, and 6-month history for charts.
1curl --request GET "$ONDI_BASE_URL/delivery/driver-performance/detail?driver_id=uuid&tenant_id=&language=en" \2 --header "Authorization: Bearer {{access_token}}"Query parameters
driver_idOptionaluuid
Required. Driver ID to get detail for.
tenant_idOptionalTenant ID
languageOptionalen
Response language
Headers
AuthorizationOptionalBearer {{access_token}}