Update Supplier Inventory
PUT/api/supplier-inventories/1
Updates a supplier inventory record. Sets source to 'user'. Provide either quantity OR in_stock (not both).
Authentication: Requires Bearer token.
Fields:
- supplier_id (required, sometimes on update): ID of the supplier
- product_id (required, sometimes on update): ID of the product
- warehouse_id (required, sometimes on update): ID of the warehouse
- quantity (required if in_stock not provided): Stock quantity (must be non-negative number)
- in_stock (required if quantity not provided): Boolean stock flag — true means in stock with unspecified quantity
- discontinued (optional): Boolean, marks item as discontinued
- eta (optional): Expected availability date (ISO date)
- source (required, sometimes on update): One of: user, api
Request
Responses
- 200
Successful response