Inventory
Get Inventory by Product
Path Parameters
Product ID to retrieve inventory for
Response
Product unique identifier
Total quantity across all warehouses
Inventory breakdown by warehouse
Warehouse ID
Warehouse name
Available quantity in this warehouse
Reserved quantity (for pending orders)
Available quantity (quantity - reserved)
Minimum stock level
Maximum stock level
Reorder point threshold
Create Inventory Record
Request Body
Product ID
Warehouse ID
Initial quantity
Minimum stock level for alerts
Maximum stock level
Quantity threshold to trigger reorder
Physical location within warehouse (e.g., “Aisle 3, Shelf B”)
Response
Created inventory record ID
Success message
Update Inventory
Path Parameters
Inventory record ID to update
Request Body
New quantity (for adjustments)
Operation type:
adjustment: Manual adjustmentreceive: Receiving stockship: Shipping stocktransfer: Transfer between warehousesreturn: Customer return
Quantity to add (positive) or subtract (negative)
Reason for the inventory change
Reference number (PO number, transfer number, etc.)
Update minimum stock level
Update maximum stock level
Update reorder point
Update physical location
Response
Success message
Quantity before update
Quantity after update
Inventory transaction record ID
Inventory Movements
All inventory updates create transaction records for audit purposes. These movements track:- Operation Type: What caused the inventory change
- User: Who made the change
- Timestamp: When the change occurred
- Quantity Change: Amount added or removed
- Reference: Related document numbers
- Reason: Explanation for the change
Common Operations
Receive Stock
Add inventory when receiving new stock from suppliers
Ship Stock
Reduce inventory when fulfilling orders
Adjust
Manual adjustments for physical counts or corrections
Transfer
Move inventory between warehouses
Low Stock Alerts
The system automatically monitors inventory levels:- Warning: When quantity falls below
reorder_point - Critical: When quantity falls below
min_stock - Overstocked: When quantity exceeds
max_stock