How It Works
- Create a recipe that defines which inventory items a menu item uses
- Specify quantities - how much of each ingredient is consumed per menu item
- Automatic deduction - when the menu item is ordered, inventory is reduced automatically
Create Recipe
Define or update the ingredient recipe for a menu item.Endpoint
Request Body
UUID of the menu item
Behavior
- Replaces existing recipe: This endpoint deletes any existing ingredients for the menu item and creates new ones
- Validates ownership: Ensures menu item and inventory items belong to the same branch
Response
Returns the created recipe ingredients.Example Request
Example Response
Get Recipe
Retrieve the ingredient recipe for a menu item.Endpoint
Path Parameters
UUID of the menu item
Response
Request success status
Example Request
Example Response
Recipe Example
Here’s a complete example of setting up automatic deductions for a “Hamburguesa Clásica”:- 0.15 kg of carne molida is deducted
- 1 unit of pan is deducted
- 0.03 kg of queso is deducted
Important Notes
- Recipes are branch-specific - menu items and inventory items must belong to the same branch
- Creating a recipe replaces any existing recipe for that menu item
- Automatic deductions create
consumptiontype movements - Stock can go negative if not enough inventory is available