The orders endpoints handle the full customer order lifecycle — from submitting a cart to checking whether a delivery or pickup order is ready. Two endpoints cover this flow: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 /ordenar creates a new order and assigns it a daily sequential ID, and GET /estado/{id} lets customers poll the preparation status of their order in real time.
POST /ordenar
Place a new customer order. The order is inserted into thepedidos_activos collection and assigned a sequential ID based on the total number of orders placed today (both active and historical).
Request body
Customer information object.
List of items in the customer’s cart. Each element represents one menu item.
Response
Always
"success" on a successful order submission.The sequential order number assigned to this order for the current day.
The order ID is calculated as the count of all orders placed today (across both
pedidos_activos and historial_ventas) plus one. IDs reset each day and are not globally unique across dates.Example
RequestGET /estado/
Check the current preparation status of an order using its numeric ID.Path parameters
The order ID returned by
POST /ordenar.Response
Current state of the order. One of:
"preparando", "listo", or "no_encontrado".Human-readable message describing the order state.
Possible responses
status | detalle | Meaning |
|---|---|---|
"preparando" | "Preparando..." | Order is in pedidos_activos — still being prepared |
"listo" | "¡Tu orden está en camino! 🛵" | Order was dispatched as a Domicilio delivery |
"listo" | "¡Tu orden está lista para recoger! 🍔" | Order was dispatched as a Sucursal pickup |
"no_encontrado" | "Buscando..." | ID was not found in either collection |