API Reference
Bank
/api/v1/console/accounting/bank-accounts JWT API KeyThe branch's bank-account containers
- 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
| Active boolean | Null returns both; false returns only retired containers. |
| 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/bank-accounts" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/accounting/bank-accounts JWT API KeyCreate a container
The general-ledger code is not on the request: it comes from the schema default (`1030`) and a different one needs a database edit.
- 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
{
"name": "string",
"accountNumber": "string",
"currencyCode": "string"
}| name string | — |
| accountNumber string | The bank's own account number, as printed. Optional. |
| currencyCode string | The container's transaction currency. Null takes the branch's base currency — the single-currency case that every seeded install lives in. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/bank-accounts" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"accountNumber": "string",
"currencyCode": "string"
}'Request body (JSON)
Headers
/api/v1/console/accounting/bank-accounts/{id} JWT API KeyOne container, its book balance and its reconciliation counts
The book balance is `Σ debitBase − Σ creditBase` on the container's GL code and arrives with the disclosure that it is only as complete as what has been posted — a required field of the payload, not a caption the console might forget.
- 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/bank-accounts/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/accounting/bank-accounts/{id}/statement-imports JWT API KeyImport a pasted statement.,
Idempotent by occurrence: re-importing the same paste adds nothing, a file that genuinely contains two identical transactions on one day imports both the first time, and a grown export adds only its new rows. Every unusable row comes back in `skipped` with a machine reason rather than being dropped.
- 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
{
"csv": "string"
}| csv string | The statement CSV, headers included. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/bank-accounts/{id}/statement-imports" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"csv": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/bank-statement-lines JWT API KeyBrowse statement lines.,
- 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
| BankAccountId string (uuid) | Restrict to one container. Optional, but the reconciliation screen always sends it. |
| Status string | `pending | matched | excluded`. Optional. |
| From string (date) | Inclusive lower bound on the bank's own value date. |
| To string (date) | Inclusive upper bound on the bank's own value date. |
| 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/bank-statement-lines" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/accounting/bank-statement-lines/{id}/exclude JWT API Key`pending → excluded`
Excluding is not deleting: the row stays, the import stays idempotent against it, and the judgement is audited.
- 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 | Why this line is being set aside. Recorded in the audit row. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/bank-statement-lines/{id}/exclude" \
-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/bank-statement-lines/{id}/match JWT API Key`pending → matched`
A card or e-wallet deposit match posts the clearing relief ( / CR 1040 or 1045, the fee inside tolerance to 6010) and a delivery payout its difference from the batch (ACC-2); every other match posts nothing.
- 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.- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"matchType": "string",
"matchedRef": "string",
"settledGrossIqd": 0
}| matchType string | One of `order_deposit | wallet_deposit | supplier_payment | payroll | settlement | manual`. A value outside the vocabulary is `VALIDATION` — the enum is a closed engineering vocabulary and the database refuses an unknown value outright. |
| matchedRef string | The matched document's id, or — for `manual` — the operator's own reference. Required and non-empty: a match with no reference is an assertion nobody can check later. |
| settledGrossIqd integer (int64) | For a card or e-wallet deposit: the gross the acquirer settled in it, from its own settlement report (comeback r2-acc5, final audit ACC-F4). The deposit then relieves that gross from the clearing account and books the difference to what arrived as the acquirer's fee (6010) — a fee booked per settlement, whether or not an end-of-day report explains the deposit. Null keeps the end-of-day reading. Must be at least what arrived, and the fee within the match tolerance. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/bank-statement-lines/{id}/match" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"matchType": "string",
"matchedRef": "string",
"settledGrossIqd": 0
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/bank-statement-lines/{id}/reopen JWT API Key`matched | excluded → pending`, clearing the match
Audited under `MATCH_BANK_LINE`, which says "also covers reopen-to-pending" — the verb catalogue is closed, so the reopen shares the verb and distinguishes itself by its before/after pair.
- 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.- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | Why the earlier decision is being undone. Recorded in the audit row. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/bank-statement-lines/{id}/reopen" \
-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/bank-statement-lines/{id}/suggestions JWT API KeyRanked match suggestions for one pending line.,
Read-only and capped at three. Nothing is auto-committed, and any document already matched to another line is withheld before scoring — one document explains one line.
- 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/bank-statement-lines/{id}/suggestions" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers