---
title: "Get Kpi"
method: GET
path: "/api/oficina/reports/kpi"
tags: ["Oficina Reports"]
---

# Get Kpi

`GET /api/oficina/reports/kpi`

Live KPI snapshot: vehicles in parque / transporte / preparação /
prontos / bloqueados. Ignores the date range (always current state).

Shares `get_logistics_kpi()` with `/logistica/kpi` — single source of
truth for the five bucket definitions. Estado=5 (Suspenso) is always
excluded regardless of the `estado_id` filter.

## Query parameters

- `pv_id` integer[]
- `estado_id` integer[] — Sales-state filter: 2=Em Stock, 3=Reservado, 4=Vendido. Empty = all non-Suspenso.
- `park_location_id` integer[] — Filter by one or more Z_ParkLocations.id (Viatura.current_park_location_id).

## Headers

- `x-api-token` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
