grocy_stock_add
Add a specified amount of a product to stock using its product ID or barcode, with an optional dry-run preview before confirming the write.
Instructions
Add amount of a product to stock. POST /api/stock/products/{productId}/add or the by-barcode path. Provide product_id or barcode. Omit confirm for a dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| price | No | ||
| amount | Yes | ||
| barcode | No | Product barcode. Provide this or product_id. | |
| confirm | No | Set to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected. | |
| product_id | No | Product id. Provide this or barcode. | |
| location_id | No | ||
| best_before_date | No | ||
| stock_label_type | No | ||
| transaction_type | No | ||
| shopping_location_id | No |