API Reference

Currencies

2 endpoints· Auth: JWT or API Key
get/api/v1/console/currencies JWT API Key

The active currencies

On a shipped install this is one row: IQD, exponent `0`, cash rounding increment `250`. That is the point of the table rather than an argument against it — the exponent is what makes an amount unambiguous, and a second currency is now representable rather than an unstated assumption.

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Query parameters

IncludeInactive
boolean
Include currencies that are switched off. Off by default: a picker offering an inactive currency would let an operator denominate a document in something the install has decided it does not trade in.
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/currencies" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/currencies/{code}/active JWT API Key

Activate or deactivate a registry currency

requirement 4.4-R3 (`manage_settings`, OWNER),,.

USD ships inactive so nothing posts in it by accident; this is the one door that turns it on. Deactivation is refused while a branch keeps its books in the currency or a supplier is contracted in it.

Capability
manage_settings
API key scope
cap:manage_settings (the key's owner must also hold the capability)

Path parameters

coderequired
string
—

Request body

application/json
{
  "active": false
}
active
boolean
—

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/currencies/{code}/active" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "active": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu