Optimization KPIs over time for one warehouse
GET/operational/kpis
The KPIs of the warehouse's optimization runs between start_date and end_date, in time buckets whose size follows the range: hours under 3 days, days under 90, weeks under 365, months beyond. A range that would need more buckets than the organization's limit gets coarser buckets, and one too long even in months is refused. Each bucket's timestamp is the UTC start of the bucket; weeks start on Sunday. Only runs that finished without an error are counted.
distance_saved_pct and duration_saved_pct are fractions (0.25 means 25%), each computed only over the runs that carry an as-is baseline for it. total_optimal_distance and total_optimal_duration cover every counted run, including those without a baseline, so the saving cannot be recomputed from the two totals.
Distances are in cm, durations and computation time in seconds. A date without a timezone is UTC.
Request
Responses
- 200
- 400
- 403
- 404
- 422
Successful Response
operational.date_range_too_large: the range needs more buckets than the organization's limit, even in months.
common.permission_denied: the credential holds no operational.view.
warehouse.not_found_by_name. A warehouse outside the credential's operational.view is not found.
operational.invalid_date_range: end_date is before start_date. A malformed parameter is also a 422, with a validation.* code per field in detail.