The Inventory Object
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)
Available Endpoints
CRUD Operations
- List all inventory records -
GET /api/v1/inventory - Get inventory record -
GET /api/v1/inventory/{id} - Create inventory record -
POST /api/v1/inventory - Update inventory record -
PUT /api/v1/inventory/{id} - Delete inventory record -
DELETE /api/v1/inventory/{id}
Stock Operations
- Decrease stock -
PUT /api/v1/inventory/decrease-stock
Filtering & Search
The list endpoint supports multiple filters:GET /api/v1/inventory/product/{productId}- Get inventory by productGET /api/v1/inventory/low-stock- Get low stock itemsGET /api/v1/inventory/out-of-stock- Get out of stock itemsGET /api/v1/inventory/available- Get available stockGET /api/v1/inventory/pagination- List with pagination