List All Inventory
GET /api/v1/inventory
Retrieve a list of all inventory records in the system.Response
Array of inventory records
Unique identifier for the inventory record
ID of the associated product
Current quantity of the product available in stock
Minimum stock level threshold for low stock alerts
Timestamp of when the inventory was last restocked (ISO 8601 format)
Get Inventory by Product
GET /api/v1/inventory/product/
Retrieve the inventory record for a specific product.The unique identifier of the product
Get Low Stock Items
GET /api/v1/inventory/low-stock
Retrieve all inventory records where quantity is at or below the minimum stock level.This endpoint returns items where
quantityAvailable <= minimumStockLevelGet Out of Stock Items
GET /api/v1/inventory/out-of-stock
Retrieve all inventory records where quantity is zero.Get Available Stock
GET /api/v1/inventory/available
Retrieve all inventory records with available stock (quantity > 0).List with Pagination
GET /api/v1/inventory/pagination
Retrieve inventory records with pagination support.The page number to retrieve (zero-based)
The number of records per page
Response Example
All list endpoints return an array of inventory records:Status Codes
200- Success404- Inventory record not found (for product-specific queries)