The Inventory API manages theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/teofilobetancourt/Restaurant-Equis/llms.txt
Use this file to discover all available pages before exploring further.
Inventario.Insumos table — the raw supply items (insumos) that the kitchen tracks for stock control. Each insumo records a current stock level (Stock_Actual), a minimum threshold (Stock_Minimo), and a reorder point (Punto_Reorden) used to trigger procurement alerts. The API is available under /api/inventario.
Every response object includes dual field names for each attribute: a short camelCase alias (e.g.
nombre, stock, unidad) and the original PascalCase database column name (e.g. Nombre_Insumo, Stock_Actual, Unidad_Medida). Both names refer to the same value. The aliases exist for frontend compatibility with code that predates the current schema. You may use either form when building request bodies — the API accepts both.List All Inventory Items
Nombre_Insumo. No pagination or filtering is applied.
Response
Returns an array of insumo objects:Alias for
ID_Insumos. The auto-incremented primary key used in path parameters for update and delete operations.Primary key of the insumo record in the
Inventario.Insumos table.Alias for
Nombre_Insumo. Human-readable name of the supply item, e.g. "Harina de Trigo".Full name of the insumo as stored in the database. Unique across all insumos.
Alias for
Stock_Actual. Current quantity in stock as a floating-point number.Current stock level. Stored as
NUMERIC(12, 4).Alias for
Unidad_Medida. Unit of measurement, e.g. "Kg", "L", "Unidades".Unit of measurement for this insumo.
Always
0.0 in the current implementation. Reserved for future cost-tracking features.Alias for
Stock_Minimo. The minimum acceptable stock level before a restock warning is triggered.Minimum stock threshold. Stored as
NUMERIC(12, 4).The stock level at which a new purchase order should be placed. If not explicitly provided on creation, defaults to
Stock_Minimo × 1.5. Stored as NUMERIC(12, 4).Create Inventory Item
201 Created with the full insumo object. If Punto_Reorden is not provided, it is automatically set to Stock_Minimo × 1.5.
Request Body
Name of the supply item. Alias:
Nombre_Insumo. Defaults to "Insumo Nuevo" if omitted. Must be unique across all insumos.Unit of measurement. Alias:
Unidad_Medida. Defaults to "Kg" if omitted. Examples: "Kg", "L", "Unidades", "g".Starting stock quantity. Alias:
Stock_Actual. Defaults to 0 if omitted.Minimum stock threshold below which a restock is needed. Alias:
Stock_Minimo. Defaults to 0 if omitted.Stock level at which a purchase order should be initiated. If omitted, automatically computed as
stock_minimo × 1.5.Response
Returns201 Created with the full insumo object (same shape as the list response).
Example 201 response
Update Inventory Item
404 if no item with the given ID exists.
Path Parameters
The
ID_Insumos / id_inventario of the item to update.Request Body
All fields are optional. Include only the fields you want to change. Both alias and PascalCase names are accepted for each field.New name for the item. Alias:
Nombre_Insumo.Updated current stock level. Alias:
Stock_Actual.Updated unit of measurement. Alias:
Unidad_Medida.Updated minimum stock threshold. Alias:
Stock_Minimo.Response
Returns the updated insumo object (same shape as the list response).Delete Inventory Item
204 No Content on success. Raises 404 if no item with the given ID exists.
Path Parameters
The
ID_Insumos / id_inventario of the item to delete.Response
Returns204 No Content with an empty body on success.