The Menu API exposes the live, orderable product catalogue to any authenticated user, regardless of role. It is the primary data source for the customer cart and the operator’s order-creation screen. Unlike the admin-facingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ytabeloved/ordervista/llms.txt
Use this file to discover all available pages before exploring further.
/api/products endpoint, GET /api/menu applies three visibility filters automatically: the category must be active, the product must be active, and the product must have at least one unit in stock. The response contains two top-level arrays — categories and products — so that front-end clients can render a categorised menu without additional requests.
GET /api/menu
Returns all active, in-stock products alongside their active categories. Auth required: Yes — any authenticated user (all roles)Request body
None.Query parameters
None.Response 200 OK
An array of active category objects filtered from the full
CATEGORIAS table.An array of active, in-stock product objects that belong to an active category. Each object is sourced from a JOIN between
PRODUCTOS and CATEGORIAS.Only products that satisfy all three of the following conditions are included in the response:
- The product’s
activoflag istrue. - The product’s parent category has
activo = true. - The product’s
stockis greater than0.
GET /api/products (Administrator only) to view the complete, unfiltered product list.Error responses
| Status | mensaje | Cause |
|---|---|---|
401 | "Token no proporcionado" / "Token inválido" | Missing or invalid JWT. |
500 | "Error al obtener el menú" | Unexpected server-side error. |