API Reference
Kitchen Transfers
/api/v1/console/central-kitchen/kitchen-transfers JWT API KeyThe branch's recent warehouse→kitchen requests, newest first
Readable by either party: a chef needs to see whether the rice was approved, and an approver needs to see what is waiting. Reading a queue is not deciding it.
- Capability (any)
transfer_to_kitchenorapprove_transfer- API key scope
cap:transfer_to_kitchenorcap:approve_transfer(the key's owner must also hold the capability)- Plan feature
central_kitchenmust be on the branch's plan, or the call answers 403.
Query parameters
| Status string | One of `requested` | `approved` | `rejected` — the three rungs this leg uses (FR-KDS-089). Optional; null lists all three. |
| InventoryItemId string (uuid) | Narrow to one item. Optional. |
| 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/central-kitchen/kitchen-transfers" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/central-kitchen/kitchen-transfers JWT API KeyAsk for stock
Opens at `requested` and moves nothing, unless the caller also holds `approve_transfer` — in which case the document is created already `approved`, the stock move is applied and the `TRANSFER_TO_KITCHEN` audit row is written, all in one transaction. The response says which happened.
Named `Create` rather than `Request`: `ControllerBase.Request` is the ambient `HttpRequest`, and an action that shadows it makes every later reference to `Request` in this class resolve to the wrong thing.
- Capability
transfer_to_kitchen- API key scope
cap:transfer_to_kitchen(the key's owner must also hold the capability)- Plan feature
central_kitchenmust be on the branch's plan, or the call answers 403.
Request body
{
"inventoryItemId": "00000000-0000-0000-0000-000000000000",
"quantity": 0,
"sourceLocationId": "00000000-0000-0000-0000-000000000000",
"destLocationId": "00000000-0000-0000-0000-000000000000",
"notes": "string"
}| inventoryItemId string (uuid) | The branch's own `InventoryItem`. An item belonging to another branch is `NOT_FOUND`, never `FORBIDDEN` — absence and cross-tenant invisibility are the same answer here so a caller cannot probe another branch's item ids. |
| quantity number (double) | How much to move, in the item's stock unit. Must be greater than zero. <br>`decimal`, matching `numeric(18,6)` on the ledger. A `double` here would let 0.1 + 0.2 disagree with the balance the movement claims to have caused. |
| sourceLocationId string (uuid) | Which book the stock leaves. Null resolves to the branch's canonical warehouse location. <br>Nameable rather than hardcoded because FR-KDS-088 is explicit that a branch may declare any number of locations and that no code path may infer a book from a string literal. A kitchen-kind source is refused: a kitchen-to-kitchen move is not this door. |
| destLocationId string (uuid) | Which kitchen the stock arrives at. Null resolves to the branch's canonical kitchen location, which is created on first use if the branch has never declared one. |
| notes string | Free text carried onto the document. Optional. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/central-kitchen/kitchen-transfers" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"inventoryItemId": "00000000-0000-0000-0000-000000000000",
"quantity": 0,
"sourceLocationId": "00000000-0000-0000-0000-000000000000",
"destLocationId": "00000000-0000-0000-0000-000000000000",
"notes": "string"
}'Request body (JSON)
Headers
/api/v1/console/central-kitchen/kitchen-transfers/{id}/approve JWT API KeyApprove a pending request and move the stock.,
`approve_transfer`, and deliberately not `transfer_to_kitchen`: this is the step that turns a request into a stock effect, and the separation is the control.
- Capability
approve_transfer- API key scope
cap:approve_transfer(the key's owner must also hold the capability)- Plan feature
central_kitchenmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/central-kitchen/kitchen-transfers/{id}/approve" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/central-kitchen/kitchen-transfers/{id}/reject JWT API KeyRefuse a pending request
Moves no stock.,.
- Capability
approve_transfer- API key scope
cap:approve_transfer(the key's owner must also hold the capability)- Plan feature
central_kitchenmust 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 POST "https://staging-api.panoptesos.com/api/v1/console/central-kitchen/kitchen-transfers/{id}/reject" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"reason": "string"
}'Path parameters
Request body (JSON)
Headers