> ## Documentation Index
> Fetch the complete documentation index at: https://dev.puppetvendors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Order Counts

> Get a count of orders grouped by fulfillment status

<Note>
  **V2 Preview** — This endpoint is part of the V2 API preview. Breaking changes may occur.
</Note>

## Overview

Return the number of orders in each fulfillment status for the authenticated vendor. Useful for building dashboard summary cards and status badges.

### Use Cases

* **Dashboard counters** — Show "5 pending, 2 partial, 45 fulfilled" at a glance
* **Alert badges** — Highlight statuses that need attention (e.g. on-hold or error)

## Headers

<ParamField header="x-access-token" type="string" required>
  A valid vendor JWT. Requires `orders:read` scope.
</ParamField>

## Response

```json 200 theme={null}
{
  "success": true,
  "data": {
    "pending": 5,
    "partial": 2,
    "fulfilled": 45,
    "onHold": 1,
    "error": 0,
    "cancelled": 3
  }
}
```

### Error Responses

```json 401 theme={null}
{ "success": false, "error": { "message": "Invalid or expired token" } }
```

```json 403 theme={null}
{ "success": false, "error": { "message": "Insufficient scope", "code": "FORBIDDEN" } }
```

## Example

```bash theme={null}
curl -X GET "https://staging-api.puppetvendors.com/orders/counts" \
  -H "x-access-token: YOUR_VENDOR_JWT"
```
