Product Stock Uses
PATCH
Update Product Stock Use
Update an existing product stock use record.
Required Permission:
Edit Product Stock Use
PATCH
/product-stock-uses/{id}
Request Body
JSONRequest Parameters
| Parameter | Type | Required | Validation | Description |
|---|---|---|---|---|
| date | Date | Optional | date, Y-m-d | The date of use |
| branch_id | Integer | Optional | integer, exists:branches | The branch ID (defaults to user's branch) |
| note | String | Optional | string | Notes about the stock use |
| items | Array | Required | array, min:1 | List of items used |
| items.*.product_stock_id | Integer | Required | integer, exists:product_stocks,id | The Product Stock ID |
| items.*.quantity | Decimal | Required | numeric, min:0.001 | Quantity used |
Response
200 OKStatus Code
HTTP status code (200)
Message
Human-readable description
Data
Updated product stock use details