Skip to main content

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.

Shopping lists in FridgeRadar are scoped to a household (id_hogar) and can be populated with individual product items, each carrying optional quantity, unit, priority, and note fields. Lists move through states (e.g. activa, completada) and items can be marked as comprado as you shop. All routes require a valid Bearer token.

Create Shopping List

Creates a new shopping list for a household. You may optionally include an initial array of items in the same request.
id_hogar
integer
required
ID of the household the list belongs to.
nombre
string
Optional display name for the list (e.g. "Compras del fin de semana").
items
array
Optional array of ListaCompraDetalleCreate objects to add to the list on creation. Defaults to an empty array.
curl -X POST "https://api.fridgeradar.app/api/v1/listas-compra" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "id_hogar": 3,
    "nombre": "Compras del fin de semana",
    "items": [
      { "id_producto": 12, "cantidad": 2, "unidad": "litros", "prioridad": "alta" }
    ]
  }'
Response fields — ListaCompraResponse
id_lista
integer
required
Unique identifier for the shopping list.
id_hogar
integer
required
ID of the household that owns this list.
nombre
string | null
Display name of the list, or null if none was provided.
estado
string
required
Current state of the list, e.g. activa or completada.
fecha_creacion
string (datetime)
required
ISO 8601 timestamp of when the list was created.
items
array
Array of ListaCompraDetalleResponse objects associated with this list.

List Shopping Lists for a Household

Returns all shopping lists belonging to the specified household.
id_hogar
integer
required
ID of the household whose shopping lists to retrieve.
curl -X GET "https://api.fridgeradar.app/api/v1/listas-compra?id_hogar=3" \
  -H "Authorization: Bearer <token>"

Get One Shopping List

Retrieves a single shopping list by ID, including all its items.
id_lista
integer
required
The unique identifier of the shopping list.
curl -X GET "https://api.fridgeradar.app/api/v1/listas-compra/9" \
  -H "Authorization: Bearer <token>"

Update Shopping List

Partially updates a shopping list’s nombre or estado. Only provided fields are changed.
id_lista
integer
required
The unique identifier of the shopping list to update.
nombre
string
New display name for the list.
estado
string
New state for the list, e.g. completada.
curl -X PATCH "https://api.fridgeradar.app/api/v1/listas-compra/9" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{ "estado": "completada" }'

Delete Shopping List

Permanently deletes a shopping list and all its items. Returns 204 No Content on success.
id_lista
integer
required
The unique identifier of the shopping list to delete.
curl -X DELETE "https://api.fridgeradar.app/api/v1/listas-compra/9" \
  -H "Authorization: Bearer <token>"

Add Item to Shopping List

Adds a single product item to an existing shopping list. Returns 201 Created with the new item.
id_lista
integer
required
The unique identifier of the shopping list to add the item to.
id_producto
integer
required
ID of the product to add to the list.
cantidad
float
Optional quantity of the product needed.
unidad
string
Optional unit of measurement (e.g. "kg", "litros", "unidades").
prioridad
string
default:"media"
Shopping priority. Accepted values: alta, media, baja. Defaults to media.
nota
string
Optional free-text note for this item (e.g. brand preference).
curl -X POST "https://api.fridgeradar.app/api/v1/listas-compra/9/items" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "id_producto": 5,
    "cantidad": 1,
    "unidad": "kg",
    "prioridad": "baja",
    "nota": "Marca La Serenísima"
  }'
Response fields — ListaCompraDetalleResponse
id_detalle
integer
required
Unique identifier for this list item.
id_lista
integer
required
ID of the shopping list this item belongs to.
id_producto
integer
required
ID of the product referenced by this item.
cantidad
float | null
Quantity of the product required, or null if unspecified.
unidad
string | null
Unit of measurement, or null if unspecified.
prioridad
string
required
Shopping priority: alta, media, or baja.
comprado
boolean
required
true if the item has been purchased, false otherwise.
nota
string | null
Optional note attached to this item, or null.

Update List Item

Partially updates a shopping list item. Any combination of fields can be sent; only provided fields are changed.
id_detalle
integer
required
The unique identifier of the item to update.
cantidad
float
Updated quantity.
unidad
string
Updated unit of measurement.
prioridad
string
Updated priority: alta, media, or baja.
comprado
boolean
Set to true to mark the item as purchased.
nota
string
Updated note for this item.
curl -X PATCH "https://api.fridgeradar.app/api/v1/listas-compra/items/34" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{ "comprado": true }'

Delete List Item

Permanently removes a single item from a shopping list. Returns 204 No Content on success.
id_detalle
integer
required
The unique identifier of the item to delete.
curl -X DELETE "https://api.fridgeradar.app/api/v1/listas-compra/items/34" \
  -H "Authorization: Bearer <token>"

Build docs developers (and LLMs) love