API Reference

Subscription

3 endpoints· Auth: JWT
get/api/v1/console/subscription JWT

Get subscription

The live agreement with its frozen price and next invoice total, the modules switched on now (with any time-bound grants and when they lapse), the recent invoices and the balance owed.

`sort`/`dir` order the invoices table (number, period_start, due_on, total, amount_due, status) within the twelve most recent; an unknown key is a 422.

Signed-in user only
Not open to API keys or OAuth tokens.
Organisation admin
Only an organisation administrator, signed in.

Query parameters

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/subscription" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/subscription/notice JWT

Get notice

The one thing the administrator should hear about their account right now — past due, an overdue invoice, a trial or a cancellation within two weeks — or nothing. What the console shell asks on every screen, so a debt is heard about before the suspension rather than from it.

Signed-in user only
Not open to API keys or OAuth tokens.
Organisation admin
Only an organisation administrator, signed in.

Responses

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

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/subscription/plans JWT

Get plans

The plans on sale — price per branch, branch ceiling and the modules each switches on — with the caller's current plan flagged. What the console's upgrade screen compares when a module is not included. Read-only: an upgrade is requested from the vendor, not bought here.

Signed-in user only
Not open to API keys or OAuth tokens.
Organisation admin
Only an organisation administrator, signed in.

Responses

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

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu