grocy_stock_consume
Consume a specified amount of a product from stock by product ID or barcode; omit confirmation to preview the transaction as a dry run.
Instructions
Consume amount of a product from stock. POST consume, by product_id or barcode. Omit confirm for a dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| spoiled | No | ||
| recipe_id | No | ||
| product_id | No | Product id. Provide this or barcode. | |
| location_id | No | ||
| exact_amount | No | ||
| stock_entry_id | No | ||
| transaction_type | No | ||
| allow_subproduct_substitution | No |