# POST /api/v1/businesses/{business_id}/cfo-portal/cash-forecast/one-time-items

> Create a one-time payment item

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

## Description

Create a one-time payment item for the cash forecast.

**Request Body:**
- ``label``: Short description (e.g. "Q2 estimated tax").
- ``amount_cents``: Positive = cash in, negative = cash out.
- ``applies_on``: ISO date the cash event lands on.
- ``notes``: Optional free-form notes.

**Effect:** The item appears in the forecast week whose Sunday
window contains ``applies_on``. The forecast's ``one_time_cents``
column on that week is incremented by ``amount_cents``.

## Authentication

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

## Parameters

- `business_id` (path, string, required)

## Request body

Schema: `CashForecastOneTimeItemCreate`

- `label` (string · required)
- `amount_cents` (integer · required) — Positive = cash in, negative = cash out. Integer cents.
- `applies_on` (string · date · required) — Date the cash event lands. The week index is derived from this date relative to the forecast's first Sunday.
- `notes` (string)

## Responses

### 201 — Successful Response

Schema: `CashForecastOneTimeItem`

- `label` (string · required)
- `amount_cents` (integer · required) — Positive = cash in, negative = cash out. Integer cents.
- `applies_on` (string · date · required) — Date the cash event lands. The week index is derived from this date relative to the forecast's first Sunday.
- `notes` (string)
- `id` (string · required)
- `business_id` (string · required)
- `created_by_user_id` (string)
- `created_at` (string · date-time · required)
- `updated_at` (string · date-time · required)

### 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 POST 'https://api.ondayzero.com/api/v1/businesses/{business_id}/cfo-portal/cash-forecast/one-time-items' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "label": "string",
  "amount_cents": 0,
  "applies_on": "2026-01-01"
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/businesses/{business_id}/cfo-portal/cash-forecast/one-time-items', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "label": "string",
  "amount_cents": 0,
  "applies_on": "2026-01-01"
}),
});
const data = await response.json();
```

### Python

```python
import httpx

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

payload = {
  "label": "string",
  "amount_cents": 0,
  "applies_on": "2026-01-01"
}

response = httpx.post("https://api.ondayzero.com/api/v1/businesses/{business_id}/cfo-portal/cash-forecast/one-time-items", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/cfo-portal/cfo-portal-create-one-time-item
- OpenAPI slice: https://www.ondayzero.com/docs/reference/cfo-portal/cfo-portal-create-one-time-item/openapi.json
- Other endpoints in **cfo-portal**: https://www.ondayzero.com/docs/reference/cfo-portal
