Contents
On this page
Get Shopping List - Plugixa Recipe
GET /plugixa-recipe/v1/shopping-lists/{id}
Read one shopping list with every line on it.
Needs a signed-in user who can open Plugixa Recipe: the plugixa_recipe_manage capability, or WordPress’s edit_posts (Contributor and up). Needs Plugixa Recipe Pro with the Shopping Lists app on. Each user only ever sees and changes their own lists: another user’s list answers 404.
Request
GET https://your-site.example/wp-json/plugixa-recipe/v1/shopping-lists/9
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The shopping list’s id |
Responses
200 OK. data is the list.
{
"success": true,
"message": "",
"data": {
"id": "9",
"user_id": "1",
"name": "Saturday shop",
"status": "active",
"created_at": "2026-11-12 09:30:00",
"modified_at": null,
"items": [
{
"id": "55",
"shopping_list_id": "9",
"recipe_id": "12",
"ingredient_name": "flour",
"quantity": "2",
"unit": "cups",
"is_checked": false,
"sort_order": "0",
"added_at": "2026-11-12 09:30:00"
},
{
"id": "56",
"shopping_list_id": "9",
"recipe_id": "12",
"ingredient_name": "milk",
"quantity": "1 1/2",
"unit": "cups",
"is_checked": false,
"sort_order": "1",
"added_at": "2026-11-12 09:30:00"
}
]
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
string |
The list’s id |
data.user_id |
string |
The owner: always the caller |
data.status |
string |
active unless you set something else; personal marks the list the front end keeps |
data.items[] |
object[] |
In the order stored |
data.items[].ingredient_name, quantity, unit |
string |
The line |
data.items[].recipe_id |
string|null |
The recipe it came from |
data.items[].is_checked |
boolean |
Ticked off |
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
No shopping list with that id belonging to the caller. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-recipe/v1/shopping-lists/9" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-recipe/v1/shopping-lists/9');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const auth = 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`);
const response = await fetch('https://your-site.example/wp-json/plugixa-recipe/v1/shopping-lists/9', {
headers: {
'Authorization': auth,
},
});
const { data } = await response.json();
Quick Links
Share