The Products API manages the master catalog of food items that can be donated, tracked, and distributed through the Banco Alimentos system. Each product has a name, a food category, and a unit of measure. All endpoints require a valid JWT token and the appropriate permission authority.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alvarezlautaro/BancoAlimentos/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Endpoints
List all products
Bearer token with the
PRODUCTO_VER authority.200 OK
Get product by ID
Bearer token with the
PRODUCTO_VER authority.Internal numeric identifier of the product.
200 OK
Filter products by category
Bearer token with the
PRODUCTO_VER authority.One of the
Categoria enum values (see table below).200 OK
Create product
Bearer token with the
PRODUCTO_CREAR authority.Product name. Must not be blank and must not exceed 55 characters.
Food category. Must be a valid
Categoria enum value (see table below).Unit of measure. Must be a valid
UnidadMedida enum value (see table below).201 Created
Full update
Bearer token with the
PRODUCTO_ACTUALIZAR authority.Internal numeric identifier of the product to update.
ProductoRequestDTO fields as Create product.
Response — 200 OK — returns the updated ProductoResponseDTO.
Partial update
Bearer token with the
PRODUCTO_ACTUALIZAR authority.Internal numeric identifier of the product.
ProductoRequestDTO fields as the full update.
Response — 200 OK — returns the updated ProductoResponseDTO.
Delete product
Bearer token with the
PRODUCTO_ELIMINAR authority.Internal numeric identifier of the product to delete.
200 OK
Data models
ProductoRequestDTO
| Field | Type | Required | Constraints |
|---|---|---|---|
nombre | string | ✅ | Not blank; max 55 characters |
categoria | Categoria | ✅ | Must be a valid enum value |
unidadMedida | UnidadMedida | ✅ | Must be a valid enum value |
ProductoResponseDTO
Internal numeric identifier assigned by the system.
Display name of the product.
Food category of the product.
Unit of measure used for this product.
Enum: Categoria
| Value | Description |
|---|---|
CEREALES_Y_DERIVADOS | Cereals and grain-derived products |
LEGUMBRES | Legumes (lentils, chickpeas, beans, etc.) |
CONSERVAS | Canned and preserved foods |
LACTEOS | Dairy products |
CARNES_Y_PROTEINAS | Meat and other protein sources |
FRUTAS_Y_VERDURAS | Fruits and vegetables |
ACEITES_Y_GRASAS | Oils and fats |
AZUCARES_Y_DULCES | Sugars and sweets |
INFUSIONES_Y_BEBIDAS | Infusions and beverages |
CONDIMENTOS_Y_SALSAS | Condiments and sauces |
PANIFICADOS | Bakery and bread products |
ALIMENTOS_INFANTILES | Infant and toddler foods |
ALIMENTOS_ESPECIALES | Special dietary foods |
PRODUCTOS_DE_HIGIENE | Hygiene products |
PRODUCTOS_DE_LIMPIEZA | Cleaning products |
OTROS | Other / uncategorized items |
Enum: UnidadMedida
| Value | Description |
|---|---|
UNIDAD | Individual unit |
KILOGRAMO | Kilogram |
GRAMO | Gram |
LITRO | Litre |
MILILITRO | Millilitre |
PAQUETE | Package |
CAJA | Box |
BOLSA | Bag |
LATA | Can / tin |
BOTELLA | Bottle |