Update API Reference

2026-03-21 07:42:44 +00:00
parent 9602107dea
commit a0ede4d3c9

@@ -133,7 +133,7 @@ Delete a budget line by ID.
#### `POST /actuals/ingest`
Upsert an actual. Idempotent by `(fiscal_year, fiscal_period, department_id, gl_account_id)` posting the same period twice updates the amount rather than creating a duplicate.
Upsert an actual. Idempotent by `(fiscal_year, fiscal_period, department_id, gl_account_id)` - posting the same period twice updates the amount rather than creating a duplicate.
**Request body:**
```json
@@ -159,8 +159,8 @@ Designed to accept bulk ERP export feeds. POST each line individually or build a
| Parameter | Example | Description |
|---|---|---|
| `year` | `2024` | Fiscal year (required) |
| `period` | `9` | Fiscal period 112 (required) |
| `dept` | `ENG` | Department code omit to return all departments |
| `period` | `9` | Fiscal period 1-12 (required) |
| `dept` | `ENG` | Department code - omit to return all departments |
| `version` | `original` | Budget version (defaults to `original`) |
---
@@ -213,9 +213,9 @@ GET /api/v1/variance?year=2024&period=9&dept=ENG
}
```
`variance_abs` = actual budget. Positive means over-budget for costs, under-budget for revenue.
`variance_abs` = actual - budget. Positive means over-budget for costs, under-budget for revenue.
`status` is `"favourable"` or `"unfavourable"` based on the account's `favour_high` flag see [Finance Concepts](Finance-Concepts).
`status` is `"favourable"` or `"unfavourable"` based on the account's `favour_high` flag - see [Finance Concepts](Finance-Concepts).
---