# GET /api/v1/businesses/{business_id}/cash-flow-statement/outflow-breakdown

> Top categories and vendors by cash outflow

- **Tag:** businesses
- **Operation ID:** `get_cash_flow_outflow_breakdown_api_v1_businesses__business_id__cash_flow_statement_outflow_breakdown_get`

## Description

Returns the top N ledger categories and counterparties that powered cash outflows during the requested period, ranked by absolute cash leaving. Powers the 'Where the cash went' tile on /books/cash-flow.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `business_id` (path, string, required)
- `start_date` (query, string · date, required) — Start date (YYYY-MM-DD)
- `end_date` (query, string · date, required) — End date (YYYY-MM-DD)
- `limit` (query, integer, optional) — Max rows per list (categories and vendors are returned separately)

## Responses

### 200 — Successful Response

### 400 — Bad Request - Invalid input

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/businesses/{business_id}/cash-flow-statement/outflow-breakdown' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/businesses/{business_id}/cash-flow-statement/outflow-breakdown', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/businesses/{business_id}/cash-flow-statement/outflow-breakdown", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/businesses/get-cash-flow-outflow-breakdown
- OpenAPI slice: https://www.ondayzero.com/docs/reference/businesses/get-cash-flow-outflow-breakdown/openapi.json
- Other endpoints in **businesses**: https://www.ondayzero.com/docs/reference/businesses
