API Reference
Budgets
Budgets per account and period, and budget against actual.
/api/v1/console/accounting/budgets JWT API KeyGet budgets
- Capability (any)
view_glormanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Query parameters
| FiscalYear integer (int32) | One fiscal (calendar) year; null for all. |
| Status string | draft | approved | archived; null for all. |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/accounting/budgets JWT API KeyA blank draft: every account at 0
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Request body
{
"fiscalYear": 0,
"name": "string",
"notes": "string"
}| fiscalYear integer (int32) | — |
| name string | — |
| notes string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"fiscalYear": 0,
"name": "string",
"notes": "string"
}'Request body (JSON)
Headers
/api/v1/console/accounting/budgets/{id} JWT API KeyGet id
- Capability (any)
view_glormanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/accounting/budgets/{id} JWT API KeyUpdate id
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"fiscalYear": 0,
"name": "string",
"notes": "string"
}| fiscalYear integer (int32) | — |
| name string | — |
| notes string | — |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"fiscalYear": 0,
"name": "string",
"notes": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/budgets/{id} JWT API KeyRetire a draft (with a reason)
An approved budget is archived, never deleted.
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/accounting/budgets/{id}/approve JWT API KeyApprove a draft; the year's previously approved budget is archived with it
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}/approve" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/accounting/budgets/{id}/archive JWT API KeyCreate archive
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}/archive" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/budgets/{id}/copy JWT API KeyA copy of any budget of this branch as a new draft — how an approved budget is changed
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"fiscalYear": 0,
"name": "string",
"notes": "string"
}| fiscalYear integer (int32) | The draft's fiscal year; defaults to the source budget's. |
| name string | The draft's name; defaults to the source budget's. |
| notes string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}/copy" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"fiscalYear": 0,
"name": "string",
"notes": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/budgets/{id}/lines JWT API KeySet any number of a draft's account × month cells in one write
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"lines": [
{
"accountCode": "string",
"month": 0,
"amount": 0
}
]
}| lines BudgetLineInput[] | — |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}/lines" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"lines": [
{
"accountCode": "string",
"month": 0,
"amount": 0
}
]
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/budgets/{id}/spread JWT API KeyCreate spread
Spread one account's annual amount over the twelve months — evenly or by last year's pattern — and write it (or, with `apply: false`, only preview it). The split is the server's.
- Capability (any)
view_glormanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"accountCode": "string",
"annualAmount": 0,
"method": "string",
"apply": false
}| accountCode string | — |
| annualAmount integer (int64) | — |
| method string | even | last_year |
| apply boolean | False previews the split without writing it. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}/spread" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"accountCode": "string",
"annualAmount": 0,
"method": "string",
"apply": false
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/budgets/{id}/vs-actual JWT API KeyGet vs-actual
Budget against the P&L for one month or year-to-date through a month: sections, subtotals, net profit, direction-aware variances and the KPI strip — every figure the server's.
- Capability (any)
view_glormanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Query parameters
| Month integer (int32) | 1 … 12. Defaults to the current month in the current year, December otherwise. |
| Mode string | month | ytd. Defaults to month. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}/vs-actual" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers
/api/v1/console/accounting/budgets/{id}/vs-actual/export JWT API KeyThe same report as a workbook (or PDF) — the same read, rendered
- Capability (any)
view_glormanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Query parameters
| Month integer (int32) | — |
| Mode string | — |
| Format string | xlsx (default) | pdf. |
| Lang string | — |
| Digits string | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/{id}/vs-actual/export" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers
/api/v1/console/accounting/budgets/from-actuals JWT API KeyA draft filled from a past year's P&L, account × month, grown by a percentage
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Request body
{
"fiscalYear": 0,
"name": "string",
"sourceFiscalYear": 0,
"growthPct": 0,
"notes": "string"
}| fiscalYear integer (int32) | — |
| name string | — |
| sourceFiscalYear integer (int32) | The year whose ledger is read; defaults to the year before Panoptes.Application.DTOs.Requests.Accounting.CreateBudgetFromActualsRequest.FiscalYear. |
| growthPct number (double) | Growth in percent, −100 … 500 (e.g. 7.5 for +7.5%). 0 copies last year as it was. |
| notes string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/budgets/from-actuals" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"fiscalYear": 0,
"name": "string",
"sourceFiscalYear": 0,
"growthPct": 0,
"notes": "string"
}'Request body (JSON)
Headers