API Reference

Schedules

Accruals and prepayments released over time.

6 endpoints· Auth: JWT or API Key
get/api/v1/console/accounting/schedules JWT API Key

Get schedules

Capability (any)
view_glormanage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Query parameters

Kind
string
accrual | prepayment; null for both.
Status
string
active | completed | cancelled; 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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/schedules" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/schedules JWT API Key

Create schedules

Create a schedule; a prepayment's funding posts with it, and months already due post at once.

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.
Idempotency
Send an Idempotency-Key header (a UUID you mint). A retry with the same key replays the first answer.

Request body

application/json
{
  "kind": "string",
  "name": "string",
  "nameAr": "string",
  "expenseAccountCode": "string",
  "totalAmount": 0,
  "periods": 0,
  "startMonth": "string",
  "fundedFrom": "string",
  "fundedOn": "2026-11-27",
  "notes": "string"
}
kind
string
accrual | prepayment
name
string
—
nameAr
string
—
expenseAccountCode
string
An expense or cost-of-sales account code of the branch's chart.
totalAmount
integer (int64)
Whole minor units of the branch base currency, greater than zero.
periods
integer (int32)
1–120 months.
startMonth
string
`yyyy-MM` — the first month recognised.
fundedFrom
string
A prepayment's funding: bank | vault | none (already on 1180). Ignored for an accrual.
fundedOn
string (date)
The business day the prepayment was paid; null means today.
notes
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/schedules" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "kind": "string",
  "name": "string",
  "nameAr": "string",
  "expenseAccountCode": "string",
  "totalAmount": 0,
  "periods": 0,
  "startMonth": "string",
  "fundedFrom": "string",
  "fundedOn": "2026-11-27",
  "notes": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/accounting/schedules/{id} JWT API Key

Get 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
accounting must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/schedules/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/schedules/{id}/cancel JWT API Key

Create cancel

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.
Idempotency
Send an Idempotency-Key header (a UUID you mint). A retry with the same key replays the first answer.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string",
  "recognizeRemainder": false
}
reason
string
—
recognizeRemainder
boolean
For a prepayment: expense what has not been amortised yet, today, so 1180 carries nothing for a schedule that no longer runs. Ignored for an accrual, whose posted months reverse themselves.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/schedules/{id}/cancel" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "reason": "string",
  "recognizeRemainder": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/schedules/{id}/months/{month}/reverse JWT API Key

Reverse one posted month, dated today in the open period

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.
Idempotency
Send an Idempotency-Key header (a UUID you mint). A retry with the same key replays the first answer.

Path parameters

idrequired
string (uuid)
—
monthrequired
string
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/schedules/{id}/months/{month}/reverse" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "reason": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/schedules/run JWT API Key

Post every month that has come due, now — the same runner the nightly job drives

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.
Idempotency
Send an Idempotency-Key header (a UUID you mint). A retry with the same key replays the first answer.

Request body

application/json
{
  "asOf": "2026-11-27"
}
asOf
string (date)
The business day to post through; null means today. Never later than today.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/schedules/run" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "asOf": "2026-11-27"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu