GET and PATCH endpoints for the kitchen display and order completion
The kitchen view provides a real-time list of orders that are waiting to be prepared. The kitchen workflow has two steps:
A transaction with at least one plato_id item automatically sets estado_cocina to pendiente.
Once the kitchen has finished preparing the order, call the complete endpoint to mark it terminado.
When estado_cocina becomes terminado and the transaction is also fully paid, the transaction automatically closes (estado → cerrado).
Both endpoints emit real-time WebSocket events so connected kitchen displays update without polling. Subscribe to the pedidos-actualizados and pedido-completado events on the cocina namespace.
Returns all transactions whose estado_cocina is pendiente, ordered by date and time ascending (oldest first). Each transaction is enriched with its full list of items and their extras.Authentication: Required
Required role: Any authenticated user
Marks the kitchen order for a transaction as terminado. If the transaction is also fully paid, it will automatically close.Authentication: Required
Required role: Any authenticated user