After you place an order, a progress tracker appears on the customer menu page. It shows you where your order stands — from the moment it enters the kitchen queue to the moment it is ready for pickup or out for delivery. The tracker updates automatically without requiring a page refresh.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.
How tracking works
When an order is successfully submitted, the server responds with a numeric order ID. The frontend uses this ID to poll the/estado/{id} endpoint every 5 seconds and update the progress bar and status message based on the response.
listo status, so no further requests are made after the order is complete.
Progress stages
The progress bar moves through three stages as the order advances:30% — Order placed
30% — Order placed
The progress bar is set to 30% immediately after the order is submitted, before any polling response is received. The bar is yellow and animated, indicating the order has entered the queue and is awaiting preparation.
60% — Being prepared
60% — Being prepared
When
/estado/{id} returns "preparando", the bar advances to 60%. The status message updates to Preparando…, indicating kitchen staff have picked up the order.100% — Ready
100% — Ready
When the status changes to
"listo", the bar fills to 100% and turns green. The message changes based on how the order was placed:- Home delivery (Domicilio): “¡Tu orden está en camino! 🛵”
- In-store pickup (Sucursal): “¡Tu orden está lista para recoger! 🍔”
API status values
TheGET /estado/{id} endpoint returns a JSON object with two fields: status and detalle.
status value | Meaning | Progress |
|---|---|---|
"preparando" | Order is in the active queue (pedidos_activos) | 60% |
"listo" | Order has been marked ready and moved to historial_ventas | 100% |
"no_encontrado" | Order ID not found in either collection | No change |
detalle field contains the human-readable message displayed below the progress bar.
Order ID
The numeric order ID shown in the tracker is assigned by the server at the time of submission. It is calculated as the total number of orders placed today (across bothpedidos_activos and historial_ventas) plus one, making it a sequential daily counter.