# GET /api/v1/bills/upcoming

> List upcoming (expected) bills

- **Tag:** bills
- **Operation ID:** `list_upcoming_bills_api_v1_bills_upcoming_get`

## Description

Forecast rows for bills the business expects — recurring contractor payments, retainers. These are estimates: they carry no journal entries and are excluded from AP totals, aged payables and the balance sheet.

## Authentication

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

## Parameters

- `status` (query, string, optional) — Filter by status: expected, converted, dismissed.
- `vendor_id` (query, string, optional) — Filter by vendor.
- `date_from` (query, string · date, optional) — Only occurrences expected on or after this date.
- `date_to` (query, string · date, optional) — Only occurrences expected on or before this date.
- `limit` (query, integer, optional) — Maximum rows to return.

## Responses

### 200 — Successful Response

Schema: `SuccessEnvelope_UpcomingBillListResponse_`

- `success` (boolean)
- `message` (string)
- `code` (string)
- `data` (UpcomingBillListResponse)

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 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/bills/upcoming' \
  -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/bills/upcoming', {
  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/bills/upcoming", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/bills/list-upcoming-bills
- OpenAPI slice: https://www.ondayzero.com/docs/reference/bills/list-upcoming-bills/openapi.json
- Other endpoints in **bills**: https://www.ondayzero.com/docs/reference/bills
