# GET /api/v1/businesses/{business_id}/cfo-portal/po-forecast-settings

> List open POs and which forecast column they flow through

- **Tag:** cfo-portal
- **Operation ID:** `cfo_portal_po_forecast_settings_api_v1_businesses__business_id__cfo_portal_po_forecast_settings_get`

## Description

List every open PO with its forecast attribution.

**Returns:** ``POForecastSettingsResponse`` — each row identifies
whether the PO flows through ``inventory`` (no linked bill yet) or
``ap_out`` (a ``Bill`` exists with ``source_inventory_order_id``
pointing at this PO), plus the amount and date the forecast uses.

**Why it matters:** Operators auditing the forecast can pinpoint
why a given dollar shows up in AP Out vs. Inventory Payments without
having to cross-reference the bills and PO tables manually.

## Authentication

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

## Parameters

- `business_id` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `POForecastSettingsResponse`

- `items` (array · POForecastDetail) → `POForecastDetail`
  - `po_id` (string · required)
  - `po_number` (string)
  - `vendor_name` (string)
  - `status` (string · required)
  - `total_cents` (integer)
  - `balance_cents` (integer)
  - `expected_paid_on` (string · date)
  - `is_linked_to_bill` (boolean)
  - `linked_bill_id` (string)
  - `linked_bill_due_date` (string · date)
  - `linked_bill_remaining_balance_cents` (integer)
  - `forecast_column` (string · required) (one of: inventory, ap_out)
- `total_inventory_outflow_cents` (integer)
- `total_ap_outflow_cents` (integer)

### 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}/cfo-portal/po-forecast-settings' \
  -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}/cfo-portal/po-forecast-settings', {
  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}/cfo-portal/po-forecast-settings", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/cfo-portal/cfo-portal-po-forecast-settings
- OpenAPI slice: https://www.ondayzero.com/docs/reference/cfo-portal/cfo-portal-po-forecast-settings/openapi.json
- Other endpoints in **cfo-portal**: https://www.ondayzero.com/docs/reference/cfo-portal
