Contents
Low Stock Items - Plugixa Inventory
GET /plugixa-inventory/v1/items/low-stock
List published items whose on hand is at or below their reorder level, lowest first.
The user needs the plugixa_inventory_view capability (administrators have every inventory capability). With Pro Roles and permissions enforcing, their role must also allow reading items.
Request
GET https://your-site.example/wp-json/plugixa-inventory/v1/items/low-stock?limit=20
Query parameters
| Name | Type | Default | Description |
|---|---|---|---|
limit |
integer |
10 |
How many items, 1 to 100. Out-of-range values are clamped. |
This endpoint is not paged and takes no other list parameters. Items without a reorder level (0) never appear. For a paged version with search and sorting, use List Items with low_stock=1.
Responses
200 OK. data is the list of items.
{
"success": true,
"data": [
{
"id": 42,
"name": "Printer paper A4",
"sku": "PAP-A4",
"barcode": "3045140105502",
"serial_number": "",
"item_type": "consumable",
"category_id": 3,
"default_warehouse_id": 1,
"unit_id": null,
"image_id": null,
"stock_quantity": 12.0,
"reorder_level": 20.0,
"unit_price": 6.9,
"cost_price": 4.2,
"weight": 2.5,
"weight_unit": "kg",
"weight_base": 2.5,
"track_weight": false,
"status": "published",
"description": "",
"custom_fields": null,
"assigned_user_id": null,
"created_by": 1,
"modified_by": 1,
"created_at": "2026-11-12 09:30:00",
"modified_at": "2026-11-12 09:30:00",
"deleted_at": null
}
]
}
| Field | Type | Meaning |
|---|---|---|
data[].stock_quantity |
number |
Total on hand |
data[].reorder_level |
number |
The level it is at or below |
Rows are the stored item only: no image URLs and no category, warehouse or unit names.
Errors
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-inventory/v1/items/low-stock?limit=20" \
-u "admin:$WP_APP_PASSWORD"
<?php
$query = http_build_query(['limit' => 20]);
$ch = curl_init('https://your-site.example/wp-json/plugixa-inventory/v1/items/low-stock?' . $query);
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 query = new URLSearchParams({ limit: '20' });
const response = await fetch(`https://your-site.example/wp-json/plugixa-inventory/v1/items/low-stock?${query}`, {
headers: { 'Authorization': auth },
});
const { data } = await response.json();
Quick Links
Share