API Reference
Module Vocabularies
/api/v1/console/delivery/channel-types JWT API KeySales-channel classes
`delivery_app` is the load-bearing code — it is what makes an order on-account and receivable-bearing, so a branch missing it would settle every aggregator order into the cash drawer.
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/delivery/channel-types" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/delivery/channel-types JWT API KeyAdd a sales-channel type
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/channel-types" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/delivery/channel-types/{id} JWT API KeyEdit a sales-channel type
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/delivery/channel-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/delivery/channel-types/{id} JWT API KeyEdit a sales-channel type
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/delivery/channel-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/delivery/channel-types/{id} JWT API KeyTombstone a sales-channel type entered in error.,
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/delivery/channel-types/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/delivery/channel-types/{id}/active JWT API KeyRetire or un-retire a sales-channel type
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/channel-types/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/document-types JWT API KeyThe employee-file document set
Requirements are jurisdictional.
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/hr/document-types" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/hr/document-types JWT API KeyAdd an employee document type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/document-types" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/hr/document-types/{id} JWT API KeyEdit an employee document type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/hr/document-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/document-types/{id} JWT API KeyEdit an employee document type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/hr/document-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/document-types/{id} JWT API KeyTombstone an employee document type entered in error.,
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/hr/document-types/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/hr/document-types/{id}/active JWT API KeyRetire or un-retire an employee document type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/document-types/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/leave-types JWT API KeyLeave entitlements
Jurisdictional, hence per branch.
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/hr/leave-types" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/hr/leave-types JWT API KeyAdd a leave type
`annual` is the one code HRM branches on — only annual leave draws the annual balance down — so a merchant-added type is pure data unless its metadata says otherwise.
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/leave-types" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/hr/leave-types/{id} JWT API KeyEdit a leave type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/hr/leave-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/leave-types/{id} JWT API KeyEdit a leave type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/hr/leave-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/leave-types/{id} JWT API KeyTombstone a leave type entered in error.,
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/hr/leave-types/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/hr/leave-types/{id}/active JWT API KeyRetire or un-retire a leave type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/leave-types/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/violation-types JWT API KeyThe disciplinary vocabulary.,
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/hr/violation-types" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/hr/violation-types JWT API KeyAdd a violation type
Note the split this sits on the merchant side of: the type is what an employer extends, while the action taken is a code branch, because only one of those four reaches a payslip.
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/violation-types" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/hr/violation-types/{id} JWT API KeyEdit a violation type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/hr/violation-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/violation-types/{id} JWT API KeyEdit a violation type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/hr/violation-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/violation-types/{id} JWT API KeyTombstone a violation type entered in error.,
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/hr/violation-types/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/hr/violation-types/{id}/active JWT API KeyRetire or un-retire a violation type
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/violation-types/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/inventory/units JWT API KeyThe branch's units of measure
Each branch owns its own.
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/inventory/units" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/inventory/units JWT API KeyAdd a unit
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)- Public scope
write:inventory
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/units" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/inventory/units/{id} JWT API KeyEdit a unit
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)- Public scope
write:inventory
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/inventory/units/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/inventory/units/{id} JWT API KeyEdit a unit
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)- Public scope
write:inventory
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/inventory/units/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/inventory/units/{id} JWT API KeyTombstone a unit entered in error
Refused once any item uses it.
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/inventory/units/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/inventory/units/{id}/active JWT API KeyRetire or un-retire a unit
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)- Public scope
write:inventory
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/units/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/inventory/variance-reasons JWT API KeyWhy a transfer line arrived differently from how it shipped
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/inventory/variance-reasons" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/inventory/variance-reasons JWT API KeyAdd a variance reason
The list has to cover the over-receipt case as honestly as the shortage: an operator with no fitting row files a variance as something else, and the loss signal is destroyed at the point of capture — which is the failure this table exists to prevent.
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)- Public scope
write:inventory
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/variance-reasons" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/inventory/variance-reasons/{id} JWT API KeyEdit a variance reason
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)- Public scope
write:inventory
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/inventory/variance-reasons/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/inventory/variance-reasons/{id} JWT API KeyEdit a variance reason
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)- Public scope
write:inventory
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/inventory/variance-reasons/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/inventory/variance-reasons/{id} JWT API KeyTombstone a variance reason entered in error.,
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/inventory/variance-reasons/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/inventory/variance-reasons/{id}/active JWT API KeyRetire or un-retire a variance reason
- Capability
manage_inventory_items- API key scope
cap:manage_inventory_items(the key's owner must also hold the capability)- Public scope
write:inventory
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/variance-reasons/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/production/capacity-types JWT API KeyThe batch-capacity pools a batch dish draws from.,
Codes are UPPER_SNAKE and the service enforces that: `OrderService` builds its capacity-demand dictionary with `StringComparer.Ordinal`, so a lower-cased row would draw zero capacity with no error anywhere.
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/production/capacity-types" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/production/capacity-types JWT API KeyAdd a capacity type
- Capability
edit_batch- API key scope
cap:edit_batch(the key's owner must also hold the capability)
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/production/capacity-types" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/production/capacity-types/{id} JWT API KeyEdit a capacity type
- Capability
edit_batch- API key scope
cap:edit_batch(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/production/capacity-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/production/capacity-types/{id} JWT API KeyEdit a capacity type
- Capability
edit_batch- API key scope
cap:edit_batch(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/production/capacity-types/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/production/capacity-types/{id} JWT API KeyTombstone a capacity type entered in error.,
- Capability
edit_batch- API key scope
cap:edit_batch(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/production/capacity-types/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/production/capacity-types/{id}/active JWT API KeyRetire or un-retire a capacity type
- Capability
edit_batch- API key scope
cap:edit_batch(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/production/capacity-types/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/settings/payment-methods JWT API KeyThe branch's payment rails, platform-wide ones included.,
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/settings/payment-methods" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/settings/payment-methods JWT API KeyAdd a branch-local payment rail
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/settings/payment-methods" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/settings/payment-methods/{id} JWT API KeyEdit a branch-local rail
A platform-wide rail is `CONFLICT`.
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/settings/payment-methods/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/settings/payment-methods/{id} JWT API KeyEdit a branch-local rail
A platform-wide rail is `CONFLICT`.
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/settings/payment-methods/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/settings/payment-methods/{id} JWT API KeyTombstone a rail entered in error.,
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/settings/payment-methods/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/settings/payment-methods/{id}/active JWT API KeyRetire or un-retire a rail
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/settings/payment-methods/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/settings/revoke-reasons JWT API KeyWhy an API key was revoked
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
Query parameters
| Active boolean | Filter on the picker flag. Null returns both. <br>FR-PLT-120 makes `active = false` the <b>retirement</b> of a value that has history: it leaves every picker while every row already pointing at it keeps resolving its `name` and `nameAr`. A picker asks for `true`; the settings screen asks for both, because a retired row is still something an operator must be able to see and un-retire. |
| IncludeDeleted boolean | Include tombstoned rows. Gated on the vocabulary's write capability in the service. <br>A tombstone means "this row was entered in error" and is a different state from Panoptes.Application.DTOs.Requests.Platform.ListVocabularyRowsRequest.Active (FR-PLT-120). Defaulting it on would put a mistake back into every picker it was hidden from. |
| 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/settings/revoke-reasons" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/settings/revoke-reasons JWT API KeyAdd a revoke reason
- Capability
manage_api_keys- API key scope
cap:manage_api_keys(the key's owner must also hold the capability)
Request body
{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| code string | The stable machine key, unique per `(branchId, code)` among live rows (FR-PLT-121). <br>Case is normalised by the service <b>per vocabulary</b> and not by a single global rule: `uom` and `leave_type` are lower-case (`kg`, `annual`), while `payment_method`, `capacity_type` and `role` are upper-case (`CASH`, `CHICKEN_QUARTER`, `OWNER`) because live code compares those with `StringComparer.Ordinal` against upper-case literals. Send it in either case; the service decides. |
| name string | — |
| nameAr string | Arabic label. <b>Required</b> — FR-ALL-017 makes `nameAr` NOT NULL on every one of the eleven tables, because "a picker that falls back to English for some rows is broken in the language most operators read". |
| sortOrder integer (int32) | Position in the picker. FR-PLT-121 orders every vocabulary by `(active, sortOrder)`. |
| active boolean | Whether the row appears in pickers straight away. Defaults to true. |
| metadata string | The per-vocabulary `jsonb` payload (FR-ALL-016). <br>Its keys are the vocabulary's business, not this DTO's: `payment_method` carries `{"settlesAs":"cash"}`, which is what decides whether a tender is expected in the physical drawer at shift count; `uom` carries `{"dimension":"mass","toBase":1000}`; `leave_type` carries `{"paid":true}`. A JSON <b>object</b>, sent as a raw document. Null or blank becomes `{}` — the column is NOT NULL. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/settings/revoke-reasons" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Request body (JSON)
Headers
/api/v1/console/settings/revoke-reasons/{id} JWT API KeyEdit a revoke reason
- Capability
manage_api_keys- API key scope
cap:manage_api_keys(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/settings/revoke-reasons/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/settings/revoke-reasons/{id} JWT API KeyEdit a revoke reason
- Capability
manage_api_keys- API key scope
cap:manage_api_keys(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}| name string | — |
| nameAr string | Arabic label. May be changed, never blanked (FR-ALL-017 makes it NOT NULL). |
| sortOrder integer (int32) | — |
| active boolean | The FR-PLT-120 retirement switch. `false` withdraws the row from pickers and leaves every historical reference resolvable — it is <b>not</b> a delete and never becomes one. |
| metadata string | Replace the `jsonb` payload wholesale. A JSON object; never merged. |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/settings/revoke-reasons/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"sortOrder": 0,
"active": false,
"metadata": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/settings/revoke-reasons/{id} JWT API KeyTombstone a revoke reason entered in error.,
- Capability
manage_api_keys- API key scope
cap:manage_api_keys(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/settings/revoke-reasons/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/settings/revoke-reasons/{id}/active JWT API KeyRetire or un-retire a revoke reason
- Capability
manage_api_keys- API key scope
cap:manage_api_keys(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Optional note, recorded on the audit row. <br>Not mandatory, unlike the tombstone's reason: retirement is reversible and loses nothing, so demanding prose for it would train operators to type "x" — which is worse than no field, because it looks like a reason in the log. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/settings/revoke-reasons/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers