Shopping lists in FridgeRadar are scoped to a household (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_hogar) so every member of the home can view and contribute to the same list. You can create a list with an optional name and seed it with items in a single request, or build it incrementally by adding items one by one. Each item carries a priority level (alta, media, or baja) and can be marked as purchased (comprado: true) when it lands in the cart. All endpoints require a valid bearer token.
Creating a shopping list
POST /api/v1/listas-compra
Send a ListaCompraCreate body. You may optionally include an initial array of items to create the list and its contents in one shot.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
id_hogar | int | ✅ | — | The household this list belongs to |
nombre | str | ❌ | null | A human-readable list name |
items | array | ❌ | [] | Optional seed items (see item fields below) |
201 Created with a ListaCompraResponse:
Listing all shopping lists for a household
GET /api/v1/listas-compra?id_hogar={id}
ListaCompraResponse objects, each including its nested items array.
Getting a single shopping list
GET /api/v1/listas-compra/{id_lista}
Adding items to an existing list
POST /api/v1/listas-compra/{id_lista}/items
Use a ListaCompraDetalleCreate body to append a single item to a list.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
id_producto | int | ✅ | — | Product catalogue ID |
cantidad | float | ❌ | null | Amount to buy |
unidad | str | ❌ | null | Unit of measure (e.g. "kg", "unidad") |
prioridad | str | ❌ | "media" | "alta", "media", or "baja" |
nota | str | ❌ | null | Free-text note about the item |
201 Created with a ListaCompraDetalleResponse.
Marking an item as purchased
PATCH /api/v1/listas-compra/items/{id_detalle}
Use ListaCompraDetalleUpdate to update any attribute of a list item. Set comprado: true to check an item off when it goes into the cart. All fields are optional.
| Field | Type | Description |
|---|---|---|
cantidad | float | null | Revise the quantity |
unidad | str | null | Revise the unit |
prioridad | str | null | Change priority |
comprado | bool | null | true = item has been purchased |
nota | str | null | Update the note |
Removing an item from a list
DELETE /api/v1/listas-compra/items/{id_detalle}
Returns 204 No Content on success.
Updating a list’s name or state
PATCH /api/v1/listas-compra/{id_lista}
Use ListaCompraUpdate to rename a list or change its estado (e.g. marking it as completed).
Deleting a shopping list
DELETE /api/v1/listas-compra/{id_lista}
Returns 204 No Content. This also removes all associated items.
Practical workflow: from creation to checkout
Create the list
Create a named list for your household, optionally seeding it with the items you already know you need.
Add items as you think of them
Append items to the list over time, using priority to flag what is most urgent.