Create production run

POST /api/v1/inventory/production/runs

Create a new production run from a recipe. Costs are computed immediately.

Operation ID: create_run_api_v1_inventory_production_runs_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

recipe_id string required

Recipe to base the run on.

name string
total_units integer required

Number of finished units to produce.

unit_sale_price integer

Expected sale price per unit in cents.

Responses

201 Successful Response

id string required
business_id string required
recipe_id string required
name string
total_units integer required
unit_sale_price integer required
status string required
cost_snapshot CostBreakdown
created_at string required
updated_at string required

400 Bad Request - Invalid input

404 Not Found - Resource does not exist

422 Validation Error - Invalid data format