---
title: "Gets parcels stats per state for a workflow for the current tenant"
method: GET
path: "/api/v{version}/parcels/stats/{workflowId}"
tags: ["orders"]
---

# Gets parcels stats per state for a workflow for the current tenant

`GET /api/v{version}/parcels/stats/{workflowId}`

Retrieves the number of parcels per state for the workflow identified by its id. Permissions requises : SupplierAdminRole, SupplierParcelsManagerRole.

## Path parameters

- `version` string, required
- `workflowId` string, uuid, required

## Query parameters

- `parcelTypes` string[]
- `isReturn` boolean

## Headers

- `X-Tenant` string, required

## Response `200`

OK

- SupplierParcelsStatsResponseItem[]
  - `state` StateDto
    - `id` string, uuid
    - `name` string, nullable
    - `description` string, nullable
    - `isBlocking` boolean, nullable
    - `isLocked` boolean, nullable
    - `visibleFor` 0 | 1 | 2 | 4 | 8
    - `editableBy` 0 | 1 | 2 | 4 | 8
    - `color` string, nullable
  - `parcelCount` integer

---

[API](https://skmtc.net/zrexpress/apis/zrexpress-api.md) · [All operations](https://skmtc.net/zrexpress/apis/zrexpress-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zrexpress/zrexpress-api/versions/99b075e0b641/schema)
