POST /api/v1/inventory
Create a new inventory record for tracking product stock levels.Request Body
ID of the product to create inventory for
Initial quantity of the product available in stock
Minimum stock level threshold for low stock alerts
Request
Response
Unique identifier for the newly created 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)
Response Example
Status Codes
201- Inventory record created successfully