API Reference
Subscription
/api/v1/console/subscription JWTGet 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/subscription" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/subscription/notice JWTGet 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/subscription/notice" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers
/api/v1/console/subscription/plans JWTGet 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/subscription/plans" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers