The kitchen endpoints are used by restaurant staff through the kitchen dashboard to manage the live state of the menu and order queue.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EduCabrera-k/Menu_Hamburguesas/llms.txt
Use this file to discover all available pages before exploring further.
POST /toggle_disponibilidad lets staff mark any menu item as unavailable or restore it, and POST /marcar_listo permanently moves a completed order from the active queue to the sales history.
POST /toggle_disponibilidad
Toggle a menu item’s availability in theinventario_stock collection. If no record exists for the item, one is created with disponible: false. If a record already exists, its value is inverted.
Request body
The menu item ID to toggle. This must match the
item_id used in the menu and cart.Response
Always
"success" when the toggle is applied.Behavior
- If the item has no existing record in
inventario_stock, a new document is inserted withdisponible: false. - If the item has an existing record, the current
disponiblevalue is inverted (true→false,false→true). - The updated availability is immediately reflected in
GET /api/stock.
Example
RequestPOST /marcar_listo
Mark an active order as complete. The order is moved frompedidos_activos to historial_ventas with a fecha_finalizado timestamp added.
Request body
The order ID to dispatch. Must correspond to an order currently in
pedidos_activos.Response
"success" if the order was found and dispatched. "error" if no order with the given ID exists in pedidos_activos.What this does
Add a completion timestamp
A
fecha_finalizado field is added to the order document with the current date and time in YYYY-MM-DD HH:MM:SS format.HTTP 404
A404 status is returned when the provided id does not match any order in pedidos_activos.