The Inventory endpoints let you maintain a real-time picture of everything inside a household’s pantry. Each item is linked to a specific shelf (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EstefanoARG/FridgeRadar/llms.txt
Use this file to discover all available pages before exploring further.
id_estante), carries optional purchase and expiry dates, and is automatically assigned an estado_caducidad color code (verde, amarillo, rojo, or vencido) so your UI can surface expiring products at a glance. All endpoints require a valid Bearer token.
List inventory items
The numeric ID of the household whose inventory you want to list.
Filter items by expiry status. Accepted values:
verde, amarillo, rojo, vencido.?estado= to narrow results to a specific freshness band — useful for building “things about to expire” dashboards.
GET /api/v1/inventario/hogar/{id_hogar} → 200 OK — returns an array of InventarioResponse objects.
Add an item to inventory
The household that will own this inventory entry.
InventarioCreate
ID of the product (from the product catalog) being added to the pantry.
ID of the shelf within the household where the item is physically stored.
Quantity of the product. Accepts decimals (e.g.
0.5 for half a pack). Defaults to 1.0.Purchase date in
YYYY-MM-DD format. Optional — used for reporting and movement history.Expiry date in
YYYY-MM-DD format. When provided, the API computes estado_caducidad automatically.Whether the packaging has been opened. Defaults to
false. Some products spoil faster once opened.Free-text notes about the item (e.g. “opened bag, keep sealed”). Optional.
id_usuario_agrego. Returns 201 Created with the full InventarioResponse.
POST /api/v1/inventario/hogar/{id_hogar} → 201 Created
Get a single inventory item
The unique ID of the inventory entry to retrieve.
id_inventario, returning the complete InventarioResponse including the computed expiry status.
GET /api/v1/inventario/{id_inventario} → 200 OK
Update an inventory item
ID of the inventory entry to update.
InventarioUpdate (all fields optional)
Move the item to a different shelf within the same household.
New quantity after consumption or restocking.
Corrected or updated expiry date in
YYYY-MM-DD format.Update the opened/unopened state of the item’s packaging.
Replace or clear the free-text notes on this item.
PATCH /api/v1/inventario/{id_inventario} → 200 OK
Delete an inventory item
ID of the inventory entry to permanently remove.
DELETE /api/v1/inventario/{id_inventario} → 204 No Content
Response schema — InventarioResponse
Every write operation and single-item read returns an InventarioResponse object. The list endpoint returns an array of the same shape.
Unique identifier for this inventory entry.
Household that owns this entry.
Product catalog ID of the stored item.
Shelf within the household where the item is stored.
ID of the user who originally added the item.
Current quantity on hand.
Purchase date (
YYYY-MM-DD), or null if not recorded.Expiry date (
YYYY-MM-DD), or null if not set.Whether the item’s packaging is currently open.
Free-text notes attached to this entry.
Computed freshness band:
verde (fresh), amarillo (expiring soon), rojo (very close to expiry), or vencido (expired).ISO 8601 timestamp of when the entry was first created.