Update API Reference
@@ -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 1–12 (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).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user